Skip to content
Snippets Groups Projects
  1. Apr 16, 2024
  2. Feb 28, 2024
  3. Feb 14, 2024
    • Ronish Kalia's avatar
      [DON'T BLOCK] Test ownership migration rules · f891397b
      Ronish Kalia authored
      This CL is created as a best effort to migrate test targets
      to the new android ownership model. If you find incorrect or unnecessary
      attribution in this CL, please create a separate CL to fix that.
      
      For more details please refer to the link below,
      <add g3 doc link>
      
      Bug: 304529413
      Test: N/A
      Change-Id: I6b6cf0abdd1fdb8fefa4184b3698f6951c192ac0
      f891397b
  4. Feb 10, 2024
    • Taran Singh's avatar
      Scribe initiation without InputConnection · 26d404f7
      Taran Singh authored
      Allow Stylus handwriting to initiate handwriting without waiting for
      InputConnection to be established.
      When an editor view receives focus, it sends startInput binder call immidiately.
      Focused editor (servedView) is then ready for any
      startStylusHandwriting() calls.
      
      This should help shave few millis from initiation latency.
      
      Note: this intentionally doesn't optimize delegation since that is
      migrating to newer APIs.
      
      Bug: 308827131
      Bug: 324670412
      
      Test: atest HandwritingInitiatorTest StylusHandwritingTest
      
      Change-Id: I0174e15fbbedf88dcd68ebe98333b6b07871985a
      26d404f7
  5. Feb 08, 2024
    • Seigo Nonaka's avatar
      Fix TextViewSetTextMeasurePerfTest to set proper width · 2c70a102
      Seigo Nonaka authored
      The TextViewSetTextMeasurePerfTest measures text with 0 pixel width
      and height which is uncommon situation, so setting proper
      width/height for measuring realistic numbers.
      
      Bug: 323606812
      Test: atest TextViewSetTextMeasurePerfTest
      Change-Id: If864d9b3d11861da01da5881a746959baf3f160c
      2c70a102
  6. Jan 29, 2024
    • Victor Chang's avatar
      Avoid mockito in MotionPredictorBenchmark · b1bf611b
      Victor Chang authored
      Mockito dominates the time to create MotionPredictor, and
      it can be avoided.
      
      The median time reduces from ~39614ns to ~683ns. (-98%).
      
      Bug: 321913450
      Test:  atest CorePerfTests:android.input.MotionPredictorBenchmark
      Change-Id: Idea21b5627a25af8d5941bb8c7a1ff567eb2504d
      b1bf611b
  7. Jan 26, 2024
  8. Jan 23, 2024
  9. Jan 09, 2024
    • Yi-an Chen's avatar
      Add PermissionServicePerfTests · a3d6b061
      Yi-an Chen authored
      Add PermissionServicePerfTests. Added the test testInstallPackages() to
      test the performacne of onPackageInstalled() calls when installing 30
      packages. Use ManualBenchmark to fetch the trace and add it to the
      benchmark duration.
      
      Test: PermissionServicePerfTests
      Change-Id: I5f6859ff57af2757ad2a7b9b0a9d89da30247973
      a3d6b061
    • Lee Shombert's avatar
      Correct a db perf test · e458428e
      Lee Shombert authored
      The two multi-threaded read/write performance tests violate the
      recommended Android database best practice: the writer loop creates a
      new SQLiteDatabase on the test database file.  This leads to two
      errors: the writer loop creates its database with an incompatible
      journal mode in different from the actual database, and the test exits
      without properly closing the database.
      
      This change simply has the writer loop use the existing database for
      its test.  The benchmark values for the multi-threaded read/write
      tests change dramatically for the TRUNCATE journal mode and slightly
      for the WAL journal mode; these metric changes are WAI.
      
      Test: atest
       * SQLiteDatabasePerfTest
      
      Bug: 318742652
      Change-Id: Icb2534c6fbaf8daa3eb38e8b1b7f71331d571e9d
      e458428e
  10. Dec 26, 2023
    • TYM Tsai's avatar
      Fix regression in perf testing · c50b4073
      TYM Tsai authored
      When porting SystemConfig, the APIs of Callback return value are incorrect.
      
      BYPASS_INCLUSIVE_LANGUAGE_REASON=Legacy API
      
      Bug: 309596860
      Test: atest PackageManagerPerfTests:android.os.PackageParsingPerfTest
      Change-Id: Ia02a02b7e2d20fa18442bc5bf400123b8a5996d4
      c50b4073
  11. Dec 20, 2023
  12. Dec 19, 2023
  13. Dec 15, 2023
  14. Dec 14, 2023
  15. Dec 13, 2023
    • TYM Tsai's avatar
      Move package parsing implementations to internal · 4bf59a58
      TYM Tsai authored
      1. Move implementations and related utils to internal
      2. Make calling SystemConfig methods from ParsingPackageUtils.Callback
         to avoid calling from the client side.
      3. Move isMatch and isEnabled from ComponentParseUtils to PackageInfoUtils
      4. Move string from SELinuxUtil to SeinfoUtil
      5. Move some methods from AndroidPackageUtils to AndroidPackageLegacyUtils
      6. Copy some methods from PackageInfoUtils to AppInfoUtils
      7. Use PackageParserException instead of PackageManagerException for
         validatePackageDexMetadata method
      
      Bug: 309596860
      Test: build pass and boot to home
      Test: atest PackageManagerServiceServerTests
      Test: atest PackageManagerComponentOverrideTests
      Test: atest PermissionServiceMockingTests
      Test: atest PackageManagerServiceUnitTests
      Test: atest PackageManagerPerfTests
      Change-Id: I3de48d0d8adf714447823408673e07ed379f27ab
      4bf59a58
  16. Nov 22, 2023
    • Riddle Hsu's avatar
      Update trace name for wm perf test · c6ac3b51
      Riddle Hsu authored
      Legacy transition -> shell transition:
       AppTransitionReady -> onTransactionReady
      Global transaction is removed:
       open/closeSurfaceTransaction -> applyTransaction
      
      Bug: 206872204
      Test: atest InternalWindowOperationPerfTest
      Change-Id: I9f619486395ce17e2d0d9db7958869f5c32e146a
      c6ac3b51
  17. Nov 20, 2023
    • Riddle Hsu's avatar
      Fix no-op RelayoutPerfTest · 749cadd1
      Riddle Hsu authored
      The test has lost its functionality since [1].
      Because the relayout invocation will be skipped if the
      sequence number is old.
      
      [1]: Ifb365789fa08103773fd3180e486ba1d92042fc5
      
      Bug: 206872204
      Test: atest RelayoutPerfTest
      Change-Id: Ic8eb77a13a27a6c92279794cd7ed1981e1b03560
      749cadd1
  18. Nov 17, 2023
    • Jared Duke's avatar
      Update OWNERS for perftests · ccfbff08
      Jared Duke authored
      Add current perf team members shayba@ and jdduke@, and remove
      former members jpakaravoor@, balejs@, and cfijalkovich@.
      
      Test: N/A
      Change-Id: If786fa38bc5f86d9e64b1672bdcf5e8cde178aec
      ccfbff08
  19. Nov 16, 2023
    • John Reck's avatar
      Only use the gainmap shader if we might need it · 6256c0f5
      John Reck authored
      Skip using the gainmap shader when drawing to a bitmap
      with a known SDR colorspace as it'll be a no-op in
      rendering results since W=1.0, but it'll be very expensive
      in runtime due to CPU evaluation of the SKSL shader.
      
      Before:
      createScaledBitmapWithGainmap_median (ns): 179,455,037
      
      After:
      createScaledBitmapWithGainmap_median (ns): 15,643,742
      
      Bug: 311085927
      Test: benchmark in CL
      Change-Id: I3f2506a2bd86bbe29c6e0837d31e4a231a7c182a
      6256c0f5
  20. Nov 15, 2023
    • Chavi Weingarten's avatar
      Change session.remove to take an IBinder instead of an IWindow · 64ea5eaa
      Chavi Weingarten authored
      Removing the window will tear down the input connection for an embedded
      window. To make it more generic and allow non windows to have
      InputChannel, it's simpler to pass in an IBinder instead of creating a
      fake IWindow.
      
      Test: WindowStateTests
      Bug: 278757236
      Change-Id: Ie632429e3c890077d6c4788941c686977d1ba5c9
      64ea5eaa
    • John Reck's avatar
      Only use the gainmap shader if we might need it · 859af0d1
      John Reck authored
      Skip using the gainmap shader when drawing to a bitmap
      with a known SDR colorspace as it'll be a no-op in
      rendering results since W=1.0, but it'll be very expensive
      in runtime due to CPU evaluation of the SKSL shader.
      
      Before:
      createScaledBitmapWithGainmap_median (ns): 179,455,037
      
      After:
      createScaledBitmapWithGainmap_median (ns): 15,643,742
      
      Bug: 311085927
      Test: benchmark in CL
      Change-Id: I3f2506a2bd86bbe29c6e0837d31e4a231a7c182a
      859af0d1
    • Cole Faust's avatar
      Fixes for errorprone update · a599ed93
      Cole Faust authored
      Bug: 311064136
      Test: m RUN_ERROR_PRONE=true javac-check
      Change-Id: Ia6e4162a4244793f772dc880b73be0bc30f26d8b
      a599ed93
  21. Sep 22, 2023
    • Vishnu Nair's avatar
      Hide immersive mode confirmation dialog during SurfaceFlingerPerfTests · 3219d2f0
      Vishnu Nair authored
      Test: atest android.surfaceflinger.SurfaceFlingerPerfTest
      Bug: 298240242
      Change-Id: I87117178a296df9741def8e1c8e711c412d31761
      3219d2f0
    • Vishnu Nair's avatar
      Denoise hermetric surfaceflinger perf tests · dd87ba45
      Vishnu Nair authored
      Remove overheard by disabling features during the test including:
      - perfetto tracing
      - region sampling by hiding navbar
      - transaction tracing
      
      Reduce variations between each frame by
      - forcing max frame rate (avoids any frame misses)
      - consuming transform hint (avoids gpu comp)
      - starting simpleperf after test setup to move test activity
      launch outside of measurement window
      
      Test: atest android.surfaceflinger.SurfaceFlingerPerfTest
      Bug: 298240242
      Change-Id: Ida7422c37b9afa323147949c9776c042ca97cd08
      dd87ba45
  22. Sep 21, 2023
    • Yeabkal Wubshit's avatar
      Add ViewConfigurationPerfTest · 668e1749
      Yeabkal Wubshit authored
      Created two simple benchmark tests to measure performance of
      ViewConfiguration#get.
      
      Bug: 299587011
      Test: atest ViewConfigurationPerfTest
      
      Change-Id: If502a4acb6bc6080af134675e610a76df59c538a
      668e1749
  23. Sep 11, 2023
  24. Sep 08, 2023
  25. Aug 23, 2023
  26. Aug 22, 2023
    • Colin Cross's avatar
      Fix kotlin nullable errors in perftests · 2522501d
      Colin Cross authored
      Fix kotlin nullable errors that were exposed by setting the retention
      of android.annotation.NonNull and android.annotation.Nullable to
      class retention.
      
      Bug: 294110802
      Test: builds
      Change-Id: Icfec5d0e20b534d7af9aeb1b539a711db76d5e5c
      2522501d
  27. Aug 16, 2023
  28. Aug 10, 2023
    • John Reck's avatar
      Remove noisy tests · 3bfcdc9a
      John Reck authored
      These just boil down to tests of malloc which are noisy
      and of low value. Remove them
      
      Fixes: 241342144
      Test: N/A
      Change-Id: I3839c6c7c0e9eee3621512d923318a43866ee165
      3bfcdc9a
  29. Aug 02, 2023
  30. Jul 20, 2023
  31. Jul 19, 2023
  32. Jun 30, 2023
    • Riddle Hsu's avatar
      Remove legacy recent animation perf test · 3181b4f7
      Riddle Hsu authored
      Since shell transition is enabled, startRecentsActivity is no
      longer used to enter recent.
      
      And because shell recent animation uses the regular transition,
      the perf metrics of "Transition Delay - App to Quickstep" is enough.
      
      Bug: 131727899
      Test: build
      Change-Id: Iee8cbf980d5ca16f3cad0c19d9717a7bcb388740
      3181b4f7
  33. Jun 27, 2023
  34. Jun 13, 2023
  35. Jun 05, 2023
Loading