Skip to content
Snippets Groups Projects
  1. Jun 03, 2024
  2. May 28, 2024
    • Yasin Kilicdere's avatar
      Remove timeout from waitForBroadcastIdle to improve spikiness. · 1e48634c
      Yasin Kilicdere authored
      A timeout was added to BenchmarkRunner.waitForBroadcastIdle method in
      ag/27491356 I91579d8af35b4a7df76d6bc1bcfad328c107d7c2
      and this caused the UserLifecycleTests results to be more spiky.
      This CL reverts that change, and also increases the timeout in
      waitForCpuIdle.
      
      Bug: 342399089
      Bug: 340812874
      Test: atest UserLifecycleTests
      Flag: None
      Change-Id: I2686625530fc64552d4380ad63fd5235d3364f5e
      1e48634c
  3. May 23, 2024
  4. May 10, 2024
  5. Apr 28, 2024
    • Chris Li's avatar
      Replace Bundle used in IWindowSession#relayout · 82d2d775
      Chris Li authored
      1. Passing Parcelable in Bundle through AIDL can cause some unexpected
         exception (b/335444562)
      2. Introduce WindowRelayoutResult so that if we need to add more optional
         fields in the future, we don't need to change the function signature.
      
      Bug: 335601427
      Bug: 335444562
      Test: atest WmTests:WindowManagerServiceTests
      Flag: com.android.window.flags.window_session_relayout_info
      Change-Id: I291cdca2e1f730e5a1246409edc21d60f78e07ca
      82d2d775
  6. Apr 19, 2024
  7. Apr 16, 2024
  8. Apr 12, 2024
    • Sumedh Sen's avatar
      Remove rundundant <test> tag · 94be3681
      Sumedh Sen authored
      The duplicate <test> tag causes the tests to run more than once. 
      
      Bug: 333971355
      Change-Id: I1e3fa112edcac79cceaa64fee170a2633ee131b2
      Test:atest PackageManagerPerfTests
      94be3681
  9. Apr 10, 2024
    • Tiger's avatar
      Add proper padding to PerfTestActivity · f872f692
      Tiger authored
      Since Android V, apps targeting SDK 35+ will be forced to go
      edge-to-edge. This CL adds proper padding to the content view of
      PerfTestActivity, so the EditText within it won't be obscured by system
      bars. Otherwise, there would be unexpected scrolling while showing or
      hiding IME.
      
      This CL also removes the action bar from the activity, so that the
      content won't be obscured by it.
      
      Fix: 331025926
      Bug: 309578419
      Flag: com.android.window.flags.enforce_edge_to_edge
      Test: ImePerfTest
      Change-Id: I212ef4862b4249e288267fb8fb4448b9100107c1
      f872f692
  10. Mar 29, 2024
    • Adam Bookatz's avatar
      Minimize the stopUser force parameter · 6d0e74bf
      Adam Bookatz authored
      The "force" parameter in stopUser is confusing and misleading. It sounds
      like "force stopping" a user is a powerful, generic action. In reality,
      this parameter is extremely narrow in its meaning: when false, it means
      that a profile won't be stopped if it is a profile of the current or
      system user. Since, hitherto, profiles always belong to the system user,
      this effectively means that
      stopUser(force==false) just means "stop the user but only if it isn't a
      profile user", which is basically never desired (since then the caller
      shouldn't be calling the method in the first place).
      For full users (e.g. when called as part of a user switch), it is
      completely irrelevant.
      
      This confusion has propagated, since callers seem to think it means
      something more. Moreover, due to HSUM, going forward, profiles may
      belong to other users, in which case the effective action of this
      parameter will change, so clarity is important.
      
      Here, we try to clarify and wean usage off the "force" parameter. It is almost
      always set to true, except in the very rare instances where false is actually
      desired (when stopping a user due to there being too many running users,
      and when stopping a background user due to a change in the corresponding
      user restriction).
      
      Unfortunately, we cannot simply get rid of the force-parameter version
      of AMS.stopUser, but we can at least make it clear that it's not normal
      to use.
      
      Test: atest UserControllerTest
      
      Test: CarSystemUI-tests:com.android.systemui.car.qc.QCLogoutButtonControllerTest
      Test: CtsCarBuiltinApiTestCases
      Test: CarServiceUnitTest
      
      Test: atest SystemUIGoogleTests:com.google.android.systemui.communal.dock.callbacks.UserSwitcherTest
      
      Bug: 324647580
      Change-Id: I28f30d5ac68330850691141be93bcad05b4c3210
      6d0e74bf
  11. Mar 15, 2024
  12. Feb 28, 2024
  13. 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
  14. 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
  15. 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
  16. 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
  17. Jan 26, 2024
  18. Jan 23, 2024
  19. 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
  20. 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
  21. Dec 20, 2023
  22. Dec 19, 2023
  23. Dec 15, 2023
  24. Dec 14, 2023
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. Sep 11, 2023
Loading