diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-02-26 14:53:55 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2013-02-27 18:27:42 -0800 |
commit | df7221ced3b7cd807f14e84c302fc09fd659fd68 (patch) | |
tree | 2e5cdc00c406f577492a7168580fa6c127b0a1f4 /tests/FrameworkPerf | |
parent | d0d209ed4d6280b6e1203eebe823f04f9db766c0 (diff) | |
download | frameworks_base-df7221ced3b7cd807f14e84c302fc09fd659fd68.zip frameworks_base-df7221ced3b7cd807f14e84c302fc09fd659fd68.tar.gz frameworks_base-df7221ced3b7cd807f14e84c302fc09fd659fd68.tar.bz2 |
Unify normal and overlay action bar layouts.
Switch the action bar to always use the overlay layout, and
make it smarter to do the right thing depending on whether the
action bar is in overlay mode or not.
This allows apps to use the system UI magic flags without
having to worry about whether the action bar is configured
in overlay mode or note -- just select a stable layout and it
will automatically go into overlay mode.
In the future this should also allow us to simplify the action
bar code, since it is all sitting on one common implementation.
For example, much of the logic in ActionBarImpl can be moved
to the root action bar layout, and that layout can be optimized
to do custom layout with all of the known elements it has.
Also fixed a little bug in the performance tests.
Change-Id: Iec0c0c0699754f0d1ce37402d786b4966e052a56
Diffstat (limited to 'tests/FrameworkPerf')
-rw-r--r-- | tests/FrameworkPerf/src/com/android/frameworkperf/FrameworkPerfActivity.java | 4 | ||||
-rw-r--r-- | tests/FrameworkPerf/src/com/android/frameworkperf/TestService.java | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/FrameworkPerf/src/com/android/frameworkperf/FrameworkPerfActivity.java b/tests/FrameworkPerf/src/com/android/frameworkperf/FrameworkPerfActivity.java index 30a968f..6633787 100644 --- a/tests/FrameworkPerf/src/com/android/frameworkperf/FrameworkPerfActivity.java +++ b/tests/FrameworkPerf/src/com/android/frameworkperf/FrameworkPerfActivity.java @@ -272,7 +272,7 @@ public class FrameworkPerfActivity extends Activity args.bgOp = mCurOpIndex; } else { args.fgOp = mCurOpIndex; - args.bgOp = mFgTestIndex; + args.bgOp = mBgTestIndex; } } Bundle bundle = new Bundle(); @@ -424,6 +424,8 @@ public class FrameworkPerfActivity extends Activity updateWakeLock(); stopService(new Intent(this, SchedulerService.class)); synchronized (mResults) { + Log.i("PerfRes", "\tTEST\tFgOps\tFgMsPerOp\tFgTime\tFgName\tBgOps\tBgMsPerOp\t" + + "BgTime\tBgName"); for (int i=0; i<mResults.size(); i++) { RunResult result = mResults.get(i); float fgMsPerOp = result.getFgMsPerOp(); diff --git a/tests/FrameworkPerf/src/com/android/frameworkperf/TestService.java b/tests/FrameworkPerf/src/com/android/frameworkperf/TestService.java index a8c43e9..5f4f006 100644 --- a/tests/FrameworkPerf/src/com/android/frameworkperf/TestService.java +++ b/tests/FrameworkPerf/src/com/android/frameworkperf/TestService.java @@ -300,7 +300,7 @@ public class TestService extends Service { threadFinished(false); } }, Process.THREAD_PRIORITY_BACKGROUND); - mForegroundThread = new RunnerThread("background", new Runnable() { + mForegroundThread = new RunnerThread("foreground", new Runnable() { @Override public void run() { boolean running; int ops = 0; |