This project is mirrored from https://github.com/LineageOS/android_frameworks_base.git. Updated .
  1. 13 Jul, 2017 1 commit
  2. 11 Jul, 2017 1 commit
  3. 29 Jun, 2017 1 commit
    • Sudheer Shanka's avatar
      Fix UserLifecycleTest. · 5f76e1fa
      Sudheer Shanka authored
      Bug: 62058707
      Test: bit MultiUserPerfTests:android.multiuser.UserLifecycleTest
      Change-Id: I8667190f001f609040a977a19aa956d7064ccc18
      5f76e1fa
  4. 28 Jun, 2017 1 commit
    • Makoto Onuki's avatar
      Parcel: Use @CriticalNative when possible. · b148b6c3
      Makoto Onuki authored
      - Change some methods from FastNative to CritcialNative
      - Change nativeGetBlobAshmemSize to CritcalNative
      
      - ParcelPerfTest.java (CorePerfTests)
      bullhead-userdebug + prep_buller.sh, mean(ns), changed methods only
      -- After
      timeGetDataCapacity_mean    166 +39.16%
      timeGetDataPosition_mean    169 +53.25%
      timeReadByte_mean           296 +39.86%
      timeReadLong_mean           284 +61.97%
      timeSetDataPosition_mean    173 +34.10%
      timeGetDataSize_mean        173 +37.57%
      timeReadInt_mean            284 +57.04%
      
      -- Before
      timeGetDataCapacity_mean    231
      timeGetDataPosition_mean    259
      timeReadByte_mean           414
      timeReadLong_mean           460
      timeSetDataPosition_mean    232
      timeGetDataSize_mean        238
      timeReadInt_mean            446
      
      Bug: 62135986
      Test: bit CtsOsTestCases:android.os.cts.ParcelTest
      Change-Id: I8c7ede25c87017ef2c7a49beaa3ac781c08ea365
      b148b6c3
  5. 16 Jun, 2017 1 commit
    • Chris Craik's avatar
      Add CursorWindow perf tests · 716cf425
      Chris Craik authored
      Test: adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk && adb shell cmd package compile -m speed -f com.android.perftests.core && adb shell am instrument -w -e class android.database.CursorWindowPerfTest com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner
      
      Change-Id: Ie4b128ad8c6bca08be7bf2b4fb0f9db3c7aa3288
      716cf425
  6. 31 May, 2017 1 commit
    • Tony Mak's avatar
      Increase the timeout and add stopping managed profile test · ec7c6963
      Tony Mak authored
      The dashbaord suggests that multiple tests are always capped at the same
      value due to the timeout. To collect the actual metric, set a larger
      timeout value, 10s for now.
      
      Also, added a test to stop managed profile user. However, the test is
      still finishing surprisingly fast because of the empty broadcast queue.
      
      
      Bug: 62096041
      
      Test: adb shell am instrument -e class android.multiuser.UserLifecycleTest -w com.android.perftests.multiuser/android.support.test.runner.AndroidJUnitRunner
      
      Change-Id: Ia52db17525d9eb960c9a8c860cdb52c0f487e5f1
      ec7c6963
  7. 16 May, 2017 1 commit
    • Seigo Nonaka's avatar
      Introduce early exit path for non resource path. · 2ea169a2
      Seigo Nonaka authored
      Developer can specify android:fontFamily with three ways, pre-defined
      font family name, e.g. "sans-serif", path to the font file in resource
      directory, e.g. "res/fonts/Roboto-Regular.ttf", or path to the XML font
      family file, e.g. "res/fonts/Roboto.xml".
      
      Resources.getFont treats font files and XML files but pre-defined family
      name is handled by TextView. Thus, we can early exit if the passed value
      is not likely resource path.
      
      This improves the inflation performance.
      The score without this patch:
      gfx-avg-frame-time-50: 6.9
      gfx-avg-frame-time-90: 9.4
      gfx-avg-frame-time-95: 10.4
      gfx-avg-frame-time-99: 16.7
      
      The score with this patch:
      gfx-avg-frame-time-50: 7.0
      gfx-avg-frame-time-90: 8.9
      gfx-avg-frame-time-95: 9.7
      gfx-avg-frame-time-99: 16.5
      
      Measured on bullhead-userdebug.
      
      The APCT perf test improves from
      String FontFamily: 200,086 -> 132,561
      File FontFamily  : 199,256 -> 161,843
      XML FontFamily   : 203,681 -> 158,553
      
      Measured on angler-userdebug.
      
      Bug: 38232467
      Test: UiBenchmark
      Change-Id: Ia601ae7207ae8c60848c9efdbb9396267a57257c
      2ea169a2
  8. 13 May, 2017 1 commit
    • John Reck's avatar
      Fix regression in getSharedPreferences performance · f3903e9f
      John Reck authored
      Only do access checks if there's a cache miss. If there's
      a cache hit then those checks have necessarily already
      passed once so we don't need to repeatedly do them
      on every access.
      
      Before:
      timeCachedGetSharedPreferences_mean=126084
      
      After:
      timeCachedGetSharedPreferences_mean=362
      
      Test: ran perf test
      Change-Id: I51f0186f8e66c05ea0e5a457930377d1460dea17
      f3903e9f
  9. 28 Feb, 2017 1 commit
    • Colin Cross's avatar
      Move SystemPerfTest out of java.* namespace · 52f6ba9a
      Colin Cross authored
      dx doesn't like classes in the java.* namespace unless it is compiling
      a core library.  Move SystemPerfTest to
      android.perftests.SystemPerfTest.
      
      Test: builds
      Change-Id: I24951d2c9a71d8bb873763d1ccd2f1a67f2be64e
      52f6ba9a
  10. 27 Feb, 2017 1 commit
    • Andrei Stingaceanu's avatar
      AutoSize TextView (part 11) - fix final APIs · ab185674
      Andrei Stingaceanu authored
      * public attr "autoSizeText" becomes "autoSizeTextType"
        (inlined with all other methods and naming)
      * documentation for autoSizetextType "uniform" re-worked:
        "The TextView scales text size both horizontally and
        vertically to fit  within the container"
      * converted comments into Javadoc for
        TextView#AUTO_SIZE_TEXT_TYPE_NONE and
        TextView#AUTO_SIZE_TEXT_TYPE_UNIFORM
      * better documented attr "autoSizePresetSizes" to specify
        it is a resource array of dimensions
      * various small fixes in comments
      
      Bug: 35755149
      Bug: 35763485
      Bug: 35764658
      Bug: 32221168
      Test: run cts-dev -m CtsWidgetTestCases -t \
            android.widget.cts.TextViewTest
      
      Change-Id: I36afd399e005521b6e85922aa9e1e4418bb960e1
      ab185674
  11. 09 Feb, 2017 1 commit
    • Andrei Stingaceanu's avatar
      AutoSize TextView (part 9) - sanitize APIs naming · fbfead24
      Andrei Stingaceanu authored
      This CL is no-op (cosmetics only)
      * renames autoSizeText type "xy" to "uniform"
      * renames attribute "autoSizeStepSizeSet" to "autoSizePresetSizes"
      * renames "AUTO_SIZE_TEXT_TYPE_XY" to "AUTO_SIZE_TEXT_TYPE_UNIFORM"
      * renames public TextView#getAutoSizeTextPresetSizes() to public
        TextView#getAutoSizeTextAvailableSizes() because this method can
        return either preset sizes or computed sizes (via min/max/step)
      
      Bug: 34923754
      Bug: 32221168
      Test: associated test renames in the same topic
      Change-Id: Ifacccf21ca014b6c0a07322fa02b7859ee53e387
      fbfead24
  12. 20 Jan, 2017 1 commit
    • Paul Duffin's avatar
      Prepare for removal of legacy-test from default targets · 1d0244a8
      Paul Duffin authored
      In preparation for removing junit classes from the Android API
      the legacy-test target will be removed from the
      TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
      dependencies on junit and/or legacy-android-test to ensure that
      modules will compile properly once it is removed.
      
      Bug: 30188076
      Test: make checkbuild
      Change-Id: If507b641624a2933e722f61e815890fcdf442265
      1d0244a8
  13. 15 Dec, 2016 1 commit
    • Chris Craik's avatar
      CriticalNative for RenderNode and DisplayListCanvas · fc29424a
      Chris Craik authored
      Bug: 33460152
      Test:  adb shell am instrument -w -e class android.view.ViewShowHidePerfTest com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner
      
      - Also FastNative for setDisplayList, simplifying upcall into field setter.
      
      - Also removes depth sweep parameter for ViewShowHideTests for now, they're not
      providing much extra info.
      
      Together with Outline/Path CL, about 25% faster visibility toggles
      
      960MHz Bullhead Before (prior to Outline/Path CL):
      
      $ adb shell am instrument -w -e class android.view.ViewShowHidePerfTest com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner | grep min
      INSTRUMENTATION_STATUS: add[Factory:NestedLinearLayoutTree,depth:6]_min=743505
      INSTRUMENTATION_STATUS: goneToVisible[Factory:NestedLinearLayoutTree,depth:6]_min=332420
      INSTRUMENTATION_STATUS: invisibleToVisible[Factory:NestedLinearLayoutTree,depth:6]_min=354154
      INSTRUMENTATION_STATUS: recordAfterAdd[Factory:NestedLinearLayoutTree,depth:6]_min=1106095
      INSTRUMENTATION_STATUS: remove[Factory:NestedLinearLayoutTree,depth:6]_min=1261290
      INSTRUMENTATION_STATUS: visibleToGone[Factory:NestedLinearLayoutTree,depth:6]_min=356153
      INSTRUMENTATION_STATUS: visibleToInvisible[Factory:NestedLinearLayoutTree,depth:6]_min=362149
      
      After (this CL + Outline/Path CL):
      
      $ adb shell am instrument -w -e class android.view.ViewShowHidePerfTest com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner | grep min
      INSTRUMENTATION_STATUS: add[Factory:NestedLinearLayoutTree,depth:6]_min=636061
      INSTRUMENTATION_STATUS: goneToVisible[Factory:NestedLinearLayoutTree,depth:6]_min=267481
      INSTRUMENTATION_STATUS: invisibleToVisible[Factory:NestedLinearLayoutTree,depth:6]_min=289433
      INSTRUMENTATION_STATUS: recordAfterAdd[Factory:NestedLinearLayoutTree,depth:6]_min=976827
      INSTRUMENTATION_STATUS: remove[Factory:NestedLinearLayoutTree,depth:6]_min=1207286
      INSTRUMENTATION_STATUS: visibleToGone[Factory:NestedLinearLayoutTree,depth:6]_min=286148
      INSTRUMENTATION_STATUS: visibleToInvisible[Factory:NestedLinearLayoutTree,depth:6]_min=292834
      
      Change-Id: Iaddfa9550bdbab807c662595d005126d98cdc277
      fc29424a
  14. 14 Dec, 2016 1 commit
    • Chris Craik's avatar
      Outline & Path perf improvements · 2414e1b0
      Chris Craik authored
      Bug: 33460152
      Test: device boots, ViewShowHidePerfTests#add[Factory:NestedLinearLayoutTree,depth:6] 770us -> 650us (userdebug 960MHz bullhead)
      
      Improve perf for outline & simple path methods
      
      native_methodName -> nMethodName in Path.java
      
      Change-Id: Id2374bbaca3256d2e4f19dae9abe67f794a171b3
      2414e1b0
  15. 10 Dec, 2016 2 commits
  16. 29 Nov, 2016 1 commit
    • Andrei Stingaceanu's avatar
      AutoSize TextView (part 2) - benchmark number of sizes · 0178c239
      Andrei Stingaceanu authored
      Performance test for the number of sizes to choose from
      when autosizing.
      
      Tests for 5, 10, 50, 100, 300, 500, 1000, 10000 and
      100000!!! different sizes.
      
      Bug: 32740812
      Bug: 32221168
      Test: this is the test
      Change-Id: I611bbf659e51d0236a2ddafb2e2498165cea07a0
      0178c239
  17. 22 Nov, 2016 1 commit
  18. 17 Nov, 2016 1 commit
  19. 14 Nov, 2016 1 commit
    • Sudheer Shanka's avatar
      Update usage of ActivityManagerNative. · dc589ac8
      Sudheer Shanka authored
      - Remove references to ActivityManagerProxy.
      - Add isSystemReady to ActivityManager.
      
      Bug: 30977067
      Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts
            adb shell am instrument -e class com.android.server.am.ActivityManagerTest,com.android.server.am.TaskStackChangedListenerTest \
                -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
      Change-Id: I07390b6124fb1515821f5c0b37baf6ae74adc8fa
      dc589ac8
  20. 02 Nov, 2016 1 commit
    • John Reck's avatar
      Add benchmarks for View inflation · 3acf0382
      John Reck authored
      Also speed up RenderNode creation:
      
      Use finalizer() instead of NativeAllocationRegistry, this
      shaves ~3us off of creation currently
      
      Avoid instanceof, instead have SurfaceView explicitly ask
      for updates.
      
      Remove unused method call.
      
      Test: ran benchmarks
      Change-Id: I3117fdf72313a4e6a9965baca9f2a8b855c19b34
      3acf0382
  21. 17 Oct, 2016 2 commits
  22. 14 Oct, 2016 1 commit
  23. 13 Oct, 2016 1 commit
    • John Reck's avatar
      Greatly reduce BenchmarkState overhead · 62e5fea8
      John Reck authored
      CL reduces BenchmarkState to minimal levels. It also adds
      a warmup loop to get things going first before starting measurements.
      
      With this change with clocks /not/ locked on bullhead the test for
      RenderNodeJniOverhead is showing a stable (0ns std dev) result
      of 54ns, which is approximately the expected amount.
      
      Test: Ran a few perf benchmarks
      
      Change-Id: If01e455884711ebd9cfb89f076efa19dc0b5436d
      62e5fea8
  24. 11 Oct, 2016 1 commit
  25. 03 Oct, 2016 1 commit
    • Seigo Nonaka's avatar
      Introduce Typeface.createXX performance tests. · eb22e31f
      Seigo Nonaka authored
      BUG:29142734
      Test: Performed following commands
      mmma -j1024 ./frameworks/base/apct-tests/perftests/core/
      adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk
      adb shell am instrument -w \
      com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner
      
      Change-Id: I8e5ef3bf729f981d20dc88736d8a1a3d6b972c55
      eb22e31f
  26. 16 Sep, 2016 1 commit
    • Seigo Nonaka's avatar
      Fix test failure due to out of UI thread runnning. · 36e0f128
      Seigo Nonaka authored
      After Ie8c42d60a0bff7636795a958a475058798061fe5,
      ActivityTestRule is no longer a subclass of UiThreadTestRule, and looks
      like the new UiThreadTest annotation is not working for Parameterized
      test. As a temporary fix, use runOnUiThread instead of @UiThreadTest.
      
      Change-Id: I69d035864259c1f0765d52ebc53634d3ef8ef84a
      36e0f128
  27. 08 Sep, 2016 1 commit
    • Sudheer Shanka's avatar
      Add usermanager related perf tests - part2 · 2c4522cc
      Sudheer Shanka authored
      - Add onLockedBootComplete callback to UserSwitchObserver.
      
      Bug: 30948225
      Test: adb shell am instrument -e class android.multiuser.UserLifecycleTest -w com.android.perftests.multiuser/android.support.test.runner.AndroidJUnitRunner
      Change-Id: I87533094805a81fbd85d4f492e637b3304ecd5e2
      2c4522cc
  28. 05 Sep, 2016 1 commit
    • Keisuke Kuroyanagi's avatar
      Always redraw text that protrude from line bounds. · f5af4a34
      Keisuke Kuroyanagi authored
      With I63af3a6ecbf92, we create RenderNode lazily, but
      blocks containing contents that protrude from line top or
      bottom cannot be simply lazily redrawn after edit or
      scroll.
      With this CL, we check if the contents protrude from line
      top or bottom by comparing the text bounds with relevant
      font metrics values and we always redrawn such blocks after
      edit or scroll.
      
      Bug: 27889485
      Change-Id: I666da5eeb39f780c341597f347bfcba21eb34295
      f5af4a34
  29. 30 Aug, 2016 2 commits
  30. 26 Aug, 2016 1 commit
    • John Reck's avatar
      Merge & fix package names · 7a9a4eca
      John Reck authored
      Merge core, graphics, and misc into one
      test suite as the split is unneccessary.
      
      Also cleans up package names
      
      Change-Id: I82da6cd69b3a52c63770465780ac98628af334ca
      7a9a4eca
  31. 24 Aug, 2016 1 commit
  32. 19 Aug, 2016 2 commits
  33. 18 Aug, 2016 1 commit
    • Chris Craik's avatar
      Add misc apct perf tests · 51dd1e51
      Chris Craik authored
      Includes test for Log.d(), and System.nanoTime().
      
      Also unifies Android.mk format, and package usage.
      
      Change-Id: I90039eff1c2c2d59afe75c4a808a29b67f3176f3
      51dd1e51
  34. 09 Aug, 2016 1 commit
  35. 12 Jul, 2016 2 commits