Skip to content
Snippets Groups Projects
  1. Aug 22, 2023
  2. Aug 09, 2023
    • Colin Cross's avatar
      Fix kotlin nullable errors in frameworks/base · 45b07a2d
      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: I0736e8abf503c80b92e3762bed908400ffedb335
      45b07a2d
  3. Jul 28, 2023
  4. Jul 12, 2023
  5. Jul 11, 2023
  6. Jun 16, 2023
    • Yan Yan's avatar
      VCN: Explicitly handle IAE from updating underlying network · 947aaa4a
      Yan Yan authored
      IpSecTunnelInterface#setUnderlyingNetwork will throw IAE when the
      underlying network is not functional and has null LinkProperties.
      This commit updates VCN to explicitly handle this exception, instead
      relying on the mechanism for handling all uncaught exceptions.
      
      Bug: 240112879
      Test: atest CtsVcnTestCases & FrameworksVcnTests
      Change-Id: I2fdf1da542eb04d56a04e04c762f8c2c19828071
      947aaa4a
    • Alan Stokes's avatar
      Revert "Capture event log" · 5f907d0d
      Alan Stokes authored
      This reverts commit 2f8ca4af.
      
      Reason for revert: This doesn't actually do what I thought it did. And b/286514492 has a more general fix.
      Bug: 239817928
      
      Change-Id: Iffaaf3d9aacc8bd42afb2756517eb91690e8ffe3
      5f907d0d
  7. Jun 12, 2023
    • Yan Yan's avatar
      Reland: Add attribution tags for VCN and VPN · eb0a9b58
      Yan Yan authored
      Allows IKE library metrics to identify and log the system clients
      
      This commit also updates VcnManagementServiceTest to mock
      out createAttributionContext
      
      Bug: 278943609
      Test: manually verified the metrics
      Test: CtsVcnTestCases, FrameworksVcnTests, Ikev2VpnTest,
            VpnManagerServiceTest, VpnTest
      Change-Id: I8b326de0484f9c97eb1b12f27a792c5ebf35ba1e
      Merged-In: I8b326de0484f9c97eb1b12f27a792c5ebf35ba1e
      eb0a9b58
  8. Jun 07, 2023
    • Alan Stokes's avatar
      Capture event log · 2f8ca4af
      Alan Stokes authored
      This test, and the code it is testing, makes use of the event log -
      looking for specific info in it, and writing to it.
      
      Make sure we capture the event log during runs of the test so that we
      have some chance of diagnosing falures.
      
      Bug: 239817928
      Test: N/A
      Change-Id: I610c7ddd67381d04c35fd42343e21098c150beb5
      2f8ca4af
  9. May 03, 2023
  10. Apr 11, 2023
  11. Apr 06, 2023
    • Alan Stokes's avatar
      Make AVC log parsing less strict · c8c65c61
      Alan Stokes authored
      Commit 5aab83aa6130760ca5c76c5b6cd429f1b29668e8 means that double
      spaces are no longer removed from audit log messages. Change the
      parsing code to be tolerant of 1 or more spaces in the relevant
      places.
      
      Also modify the tests to fail more quickly (otherwise they just time out, which makes the failure hard to diagnose). Make sure we have one explicit test for a log message with multiple spaces.
      
      Bug: 276686518
      Test: atest DynamicCodeLoggerIntegrationTests
      Change-Id: Ia08b90785aabb4db0f005587e2315893b561573a
      c8c65c61
  12. Apr 05, 2023
  13. Apr 04, 2023
  14. Mar 30, 2023
    • jahinimtiaz's avatar
      Include module dependencies under `data` · d8b1dda0
      jahinimtiaz authored
      Bug: 269138674
      Test: Presubmit
      Change-Id: Ibd1a18f6369396c4ae7b0263baab84f25c88ce06
      d8b1dda0
    • Yan Yan's avatar
      VCN: Allow restricting TRANSPORT_TEST for CTS · 653a8e6a
      Yan Yan authored
      This commit updates VCN to be able to mark a test network
      as restricted. Additionally, when VCN is in safe mode, VCN will
      delegate to the Android system to decide the restriction policy of
      the test network.
      
      This commit allows CTS to verify VCN's ability of restricting
      networks based on the transport type.
      
      Bug: 263415068
      Test: atest VcnManagerTest (new tests)
      Change-Id: I5fe0be4ce445a4d9c20cbef5ee4a2eb55403b3c8
      653a8e6a
  15. Mar 28, 2023
    • Atneya Nair's avatar
      SoundTrigger OWNERS cleanup · 72554e39
      Atneya Nair authored
      - Move SoundTrigger owners to reference authoritative file
      - Add SoundTrigger ownership to top level services/voiceinteraction directory
      to simplify maintenance.
      
      Test: Compiles
      Fixes: 275435310
      Change-Id: I3fc8e98ef017f93f7208dc2fb5073beda6dcfb18
      72554e39
  16. Mar 24, 2023
    • Benedict Wong's avatar
      Match underlying networks based on interface name · 36888bdf
      Benedict Wong authored
      This patch changes the VcnManagementService policy matching from using
      capabilities to match against underlying networks to using iface names.
      This is significantly more precise than the network capability matching
      logic, as that will not catch any new capabilities that were added (eg
      ENTERPRISE, LOW_LATENCY, HIGH_BANDWIDTH, etc).
      
      Bug: 274861645
      Test: atest FrameworksVcnTests CtsVcnTestCases
      Change-Id: Iea2f5afb242649517f83f85c77355cfdbbf1e202
      36888bdf
    • Yan Yan's avatar
      [Reland] VCN: Require capability matching on test networks for CTS · 19116294
      Yan Yan authored
      This commit updates NetworkPriorityClassifier to also require
      capabilty matching on test networks. This allows CTS to select
      underlying test networks based on their capabilities. Previously
      capability matching was only done cell networks.
      
      To do that this commit adds an abstract method to
      VcnUnderlyingNetworkTemplate to retrieve capability requirements
      so that the capability match can be done before the matching logic
      diverge to different transports.
      
      Bug: 263415068
      Test: atest VcnManagerTest (new tests)
      Change-Id: I12377cbd1d721c4100a958fd9a0ea56d87351eec
      19116294
  17. Mar 23, 2023
    • Thiébaud Weksteen's avatar
      Introduce FakePermissionEnforcer · e2d7efba
      Thiébaud Weksteen authored
      This fake allows tests to mock permissions of AIDL clients.
      
      Bug: 269684922
      Test: atest FrameworksServicesTests:com.android.server.net.NetworkManagementServiceTest
      Change-Id: Iea4ec02d4be27f8043c1a57db11cadfd6d90b3ba
      e2d7efba
  18. Mar 14, 2023
  19. Mar 13, 2023
    • Mike Schneider's avatar
      Add SCREEN_STATE flags to QuickStepContract · 87fb928d
      Mike Schneider authored
      The events are sourced from ScreenLifecycle.
      
      Bug: 267222890
      Test: added unit tests, and manually verified the change
      
      Change-Id: Iae8df1f1c4654f37db9a0ec450aa0516405769bc
      Merged-In: Iae8df1f1c4654f37db9a0ec450aa0516405769bc
      87fb928d
  20. Mar 03, 2023
    • haoyu.wang's avatar
      Reduce the memory usage of the ProtoLogToFile · 13a5b557
      haoyu.wang authored
      The protolog in wm/am is generally less than 1kb after being writtem to ProtoOutputStream,
      but 'new ProtoOutputStream()' will at least create a byte array of 8kb each time.
      This will cause each log to occupy at least 7kb of useless memory.
      When the log cached by 'ProtoLogToFile' reaches BUFFER_CAPACITY(1MB), it will occupy 70MB of memory.
      This has a greater impact on some low-memory devices.
      
      Bug: 271179026
      Bug: 262244460
      Merged-In: I368278df6f801b2b2b67974089d4a7f4147d91cc
      Change-Id: I368278df6f801b2b2b67974089d4a7f4147d91cc
      13a5b557
    • haoyu.wang's avatar
      Reduce the memory usage of the ProtoLogToFile · 4f44cf75
      haoyu.wang authored
      The protolog in wm/am is generally less than 1kb after being writtem to ProtoOutputStream,
      but 'new ProtoOutputStream()' will at least create a byte array of 8kb each time.
      This will cause each log to occupy at least 7kb of useless memory.
      When the log cached by 'ProtoLogToFile' reaches BUFFER_CAPACITY(1MB), it will occupy 70MB of memory.
      This has a greater impact on some low-memory devices.
      
      Bug: 271179026
      Change-Id: I368278df6f801b2b2b67974089d4a7f4147d91cc
      4f44cf75
  21. Feb 22, 2023
    • Thiébaud Weksteen's avatar
      Add OWNERS file for EnforcePermission · 8a698935
      Thiébaud Weksteen authored
      This directory will hosts end-to-end tests for @EnforcePermission.
      Considered alternative location:
      - core/tests/coretests (FrameworksCoreTests): broad ownership, see
        b/243401782.
      - system/tools/aidl: our integration tests already exist there. The
        current tests setup for aidl does not install APKs but only raw jar
        files. We want to install a regular application to test the
        effective permissions.
      
      The end-to-end tests will eventually be executed in presubmit via
      TEST_MAPPING.
      
      Bug: 269721152
      Test: n/a
      Change-Id: I6a87b50e794fc3a0ba7c8a48ef9f92b7d6ad5180
      8a698935
    • Steve Elliott's avatar
      Update wm flicker tests to account for seen filter · a282e429
      Steve Elliott authored
      Fixes: 270035407
      Test: atest FlickerTests
      Change-Id: I9b21b87e82994dd438cf7b887d84a93b2c66bac7
      Merged-In: I9b21b87e82994dd438cf7b887d84a93b2c66bac7
      a282e429
  22. Feb 21, 2023
    • Roland Levillain's avatar
      Temporarily disable `testBackgroundDexOptDowngradeSuccessful`. · 78c232c7
      Roland Levillain authored
      Test
      `com.android.server.pm.BackgroundDexOptServiceIntegrationTests#testBackgroundDexOptDowngradeSuccessful`
      has been failing for a long time; temporarily disable it while we
      investigate this issue
      
      Test: atest BackgroundDexOptServiceIntegrationTests
      Bug: 251438180
      Change-Id: I3584ed2fd49e673a2d9bb37aabb11577c52a6267
      78c232c7
  23. Feb 16, 2023
  24. Feb 15, 2023
    • chiachangwang's avatar
      Add new IKE option in IkeSessionParamsUtils · 48fce49a
      chiachangwang authored
      This commit updates IkeSessionParamsUtils to be able to encode/decode
      IkeSessionParams with IKE_OPTION_AUTOMATIC_KEEPALIVE_ON_OFF.
      
      Bug: 259000745
      Test: atest IkeSessionParamsUtilsTest
      Change-Id: I6dd24893cf3343df05ae41e657ff082145c1e8ff
      48fce49a
  25. Feb 09, 2023
  26. Feb 08, 2023
    • Kevin Liu's avatar
      Convert Keyguard tests to Robolectric tests · cff46f1f
      Kevin Liu authored
      This approach preserves the ability to run these tests with the previous ways and also having them executable with Robolectric test runner.
      
      Bug: 266750663
      Test: atest SystemUiRoboTests
      
      Change-Id: I6453fcbcce3967d5da7e413b209896df13fe22a9
      cff46f1f
  27. Jan 31, 2023
    • Ming-Shin Lu's avatar
      Fix IME being shifted when the app setRequestedOrientation · 9053d728
      Ming-Shin Lu authored
      Fix an edge case happens on large-screen devices that
      DisplayContent#updateImeParent may not be called to update IME surface
      parent from the activity to the display area when the app actvitity is
      letterboxed by
       1) activity handles configChange without being relaunched
          by window configuration change
       2) calling setRequestedOrientation to fix orientation as portrait
      
      In this case, if the activity bounds size is not suitable to attach
      IME surface, we need to recompute the IME surface parent in
      WindowState#onConfigurationChanged to make IME surface can be placed on
      the display area to avoid IME position being shifted by
      letterboxed activity.
      
      Fix: 249081451
      Test: atest FlickerTests:OpenImeWindowToFixedPortraitAppTest
      Merged-In: I7a66fd84e4094be249714c2597706ee25938adbe
      Change-Id: I7a66fd84e4094be249714c2597706ee25938adbe
      9053d728
  28. Jan 23, 2023
    • Elliott Hughes's avatar
      Remove CanvasCompare. · 2ae77029
      Elliott Hughes authored
      As part of renderscript deprecation/removal, of the two pieces of
      renderscript in this app, one already had a Java alternative but the
      heatmap code didn't. Rather than reimplement that, though, it appears
      that this project has been obsoleted by CtsUiRenderingTestCases. So
      let's remove it instead. (Even if we're wrong, this still gives us more
      time to work out what, if anything, is actually needed.)
      
      Bug: http://b/255624710
      Test: treehugger
      Change-Id: I7cf64a28bd3c7edea061fafc5e06d4134cc79b05
      2ae77029
  29. Jan 11, 2023
Loading