Methods Summary |
---|
public void | inflateCachedTest(int resourceId)
// Make sure this layout is in the cache.
mInflater.inflate(resourceId, null);
mInflater.inflate(resourceId, null);
|
public void | inflateTest(int resourceId)
mView = mInflater.inflate(resourceId, null);
mResources.flushLayoutCache();
|
public boolean | isPerformanceOnly()
return false;
|
protected void | setUp()
super.setUp();
mInflater = LayoutInflater.from(mContext);
mResources = mContext.getResources();
// to try to make things consistent, before doing timing
// do an initial instantiation of the layout and then clear
// out the layout cache.
// mInflater.inflate(mResId, null, null);
// mResources.flushLayoutCache();
|
public int | startPerformance(PerformanceTestCase.Intermediates intermediates)
return 0;
|
public void | testCachedLayout1()
inflateCachedTest(R.layout.layout_one);
|
public void | testCachedLayout2()
inflateCachedTest(R.layout.layout_two);
|
public void | testCachedLayout3()
inflateCachedTest(R.layout.layout_three);
|
public void | testCachedLayout4()
inflateCachedTest(R.layout.layout_four);
|
public void | testCachedLayout5()
inflateCachedTest(R.layout.layout_five);
|
public void | testCachedLayout6()
inflateCachedTest(R.layout.layout_six);
|
public void | testLayout1()
inflateTest(R.layout.layout_one);
|
public void | testLayout2()
inflateTest(R.layout.layout_two);
|
public void | testLayout3()
inflateTest(R.layout.layout_three);
|
public void | testLayout4()
inflateTest(R.layout.layout_four);
|
public void | testLayout5()
inflateTest(R.layout.layout_five);
|
public void | testLayout6()
inflateTest(R.layout.layout_six);
|