summaryrefslogtreecommitdiff
path: root/core/tests/mockingcoretests
Commit message (Collapse)AuthorAgeFilesLines
* Enable forced focus for resumed split screen activitiesMariia Sandrikova2022-12-251-1/+1
| | | | | | | | | This is needed because some game engines wait until they get focus before drawing the content of the app so they are blacked out when they are resumed and do not have focus yet. Bug: 203398248 Test: atest FrameworksCoreTests:ViewRootImplTest#whenDispatchFakeFocus_noFocusAfterwards Change-Id: I5675b32fbb9f60a7373fadbce379d571168436e7 Merged-In: I5675b32fbb9f60a7373fadbce379d571168436e7
* Ensure isInPictureInPicture result in onPauseHongwei Wang2022-08-191-2/+2
| | | | | | | | | | | | | | | We use to set Activity#mIsInPictureInPictureMode to be true when app requests Activity#enterPictureInPictureMode and therefore when they receive the onPause callback, Activity#isInPictureInPictureMode can be true. With the new auto-enter-pip API, this code path is no more relevant and here we add extra info to PauseActivityItem to set the same flag when WM puts the Activity into PiP mode due to auto-enter. Video: http://recall/-/aaaaaabFQoRHlzixHdtY/yXi24xi6TgYGhoqB31Oov Bug: 239618513 Test: follow the reproduce steps in bug, see video Test: atest PinnedStackTests Change-Id: I81ece7d3aad8eb868d95f106f6825612e0741a19
* Reland “Update the activity current config only if it is reported”Louis Chang2022-07-041-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | The current configuration in the client activity could be updated via the other flow (from ViewRootImpl). So, it is possible that the client activity configuration is different from the last reported configuration that cached in the system. If the configuration changed again in that case, the ActivityConfigurationChangeItem could end up without reporting Activity#onConfigurationChanged if the differences between the new configuration and the current client activity configuration contains the configuration changes that the activity cannot handle. Update the activity current config only when reported, so the configuration differences can be correctly evaluated from the new configuration and the configuration last reported. Bug: 231312158 Bug: 236415038 Test: repro steps on the bug Test: atest ActivityThreadClientTest Test: atest OverlayHostTest Change-Id: I56a871fb30809f5f75f0007601a7629f9435e03a
* Merge "Revert "Update the activity current config only if it is reported"" ↵TreeHugger Robot2022-06-301-10/+10
|\ | | | | | | into tm-qpr-dev
| * Revert "Update the activity current config only if it is reported"Prabir Pradhan2022-06-291-10/+10
| | | | | | | | | | | | | | | | This reverts commit b51ecdf1fcc27d07f8514ef5644d1a758fe56f6c. Reason for revert: Broken tests: b/236415038 Change-Id: I7a8587bf0d157f385f95d4715834ff1ce3e60cd8
* | Merge "BaseBundle.java: Adding tests for 'Recycle underlying parcel for ↵Hani Kazmi2022-06-291-0/+256
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | bundle'" into tm-dev am: 6b07af5e83 am: c388f2b9d0 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18929334 Change-Id: Iee33adbe2a5efcdad1b18bac03b2cae81ebda658 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | BaseBundle.java: Adding tests for 'Recycle underlying parcel for bundle'Hani Kazmi2022-06-241-0/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up to ag/18795008. Adding tests for new behaviour. As it is not possible to directly check on the bundle if the parcel has been recycled, we inject a spy into it. Mocking static methods is not possible in FrameworkCoreTests, so we introduce a new test class in FrameworksMockingCoreTests which is run when any parcel or bundle source file changes. Bug: 233216232 Test: atest BundleRecyclingTest Change-Id: If691b68a8db1f0110d131ec620935f566cc9367b
* | | Fix WM presubmit failuresLouis Chang2022-06-281-13/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | The changes in SizeConfigurationBuckets in commit 8ec32dd was not verified by wm presubmit and therefore broke a few wm unit tests. Bug: 235774601 Bug: 237348419 Test: ActivityRecordTests Test: SizeConfigurationBucketsTest Change-Id: I23299e329c2bf2ca94fc156859993ea31ad3dc75
* | Update the activity current config only if it is reportedLouis Chang2022-06-151-10/+10
|/ | | | | | | | | | | | | | | | | | | | | | | The current configuration in the client activity could be updated via the other flow (from ViewRootImpl). So, it is possible that the client activity configuration is different from the last reported configuration that cached in the system. If the configuration changed again in that case, the ActivityConfigurationChangeItem could end up without reporting Activity#onConfigurationChanged if the differences between the new configuration and the current client activity configuration contains the configuration changes that the activity cannot handle. Update the activity current config only when reported, so the configuration differences can be correctly evaluated from the new configuration and the configuration last reported. Bug: 231312158 Test: repro steps on the bug Test: atest ActivityThreadClientTest Change-Id: Ifa27d222bb0905053cf12e08c423bf7bfad904cd
* Revert "Removing TaskFragment token from LaunchActivityItem"Shivam Agrawal2022-03-301-1/+1
| | | | | | | | | | | | This reverts commit 6dc124025d2b21cdc54c143e9cb54aab68b3f0d8 in tm-dev. The revert is necessary because SplitController needs to access the initial task fragment token from the activity client to ensure that split info callbacks are sent before an activity is created. Test: existing tests pass Bug: b/218791665 Change-Id: I7d6506312b46af026ec19e4aad9d0f31482e175a
* Merge "Fix #testChangeFontScaleNoRelaunch flaky" into tm-devCharles Chen2022-03-211-0/+47
|\
| * Fix #testChangeFontScaleNoRelaunch flakyCharles Chen2022-03-171-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test failed because we used public config diff to determine if Activity#onConfigurationChanged should be dispatched. However, the public config diff contained the change which wouldn't make Activity relaunch and also receive the callback. This CL uses the public diff, which filters the change without relaunching Activity, to determine if the callback should be dispatched. This CL also covers the case that the callback is still dispatched if small changes are handled. Test: atest ActivityThreadClientTest ConfigChangeTests Bug: 222067515 Bug: 222223467 Change-Id: I8aa80e9fd70fddc9f88a36e7dc2ffb2163b9ffa6
* | Merge changes from topic "presubmit-am-67f791696fed41829026111e0282dce4" ↵Felipe Leme2022-03-171-7/+7
|\ \ | |/ |/| | | | | | | | | | | into sc-v2-dev-plus-aosp am: 88bf26bf37 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17144854 Change-Id: I4a1089ed2fde054b5879bfc1ace06f4cfa719544
| * Changes TimingsTraceLog and TimingsTraceAndSlog to be less spammy.Felipe Leme2022-03-091-7/+7
| | | | | | | | | | | | | | | | | | | | Also adds unit tests for TimingsTraceAndSlog. Test: atest FrameworksMockingCoreTests:TimingsTraceLogTest FrameworksMockingServicesTests:TimingsTraceAndSlogTest Bug: 223642864 Change-Id: I3a2b259fca7c4fbab08bc4212d850fee3ac2f037
* | Move fixed-rotation-related display information into configEvan Rosky2022-01-262-117/+11
|/ | | | | | | | | | | | | | | | | | | | Augment the "apparent" display information in configuration from just the display bounds (maxBounds) to also include the display rotation and cutout. Like maxBounds, these will be expected to always be set as basically "the display that this configuration was built against". This heavily simplifies fixed-rotation since now we don't need to deal with the "are we overriding?" question and also don't need extra activity servertransactions. The configuration is also in sync (since it is the source of truth used by resources). Additionally, this means that even the current legacy fixed-rotation model should work with in any mixed-rotation situtaion, not just fullscreen. Bug: 202201326 Test: atest DisplayTest Change-Id: I6232f74c74324b70b1b0c9f46448c509c2694310
* Removing TaskFragment token from LaunchActivityItemLouis Chang2021-09-291-1/+1
| | | | | | | | | | | | The token was needed because the TaskFragment info may not sent to the organizer before activity created. The token is no longer necessary because the TaskFragment info is now ensured to be updated before activity created. Bug: 200303250 Test: wm presubmit Change-Id: I69a42fa35efde4fc7f37ab50334de5de146da90d
* Filter-Diff Screen Layout Changes for Activity RelaunchShivam Agrawal2021-08-061-0/+379
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, an activity is relaunched from a resize only if the activity does not handle SCREEN_SIZE config changes and the new activity size crosses a width, height, or smallest width resource qualifier. A change in activity size may also change an activity’s screen layout. However, an activity is relaunched from a screen layout change if it does not handle SCREEN_LAYOUT config changes even if the screen layout did not cross a screen layout resource qualifier. This CL does three things: (1) Propogates screen layout qualifiers through the same path as width, height, and smallest width qualifiers in the AssetManager to make it available to the WindowManager. (2) Prevents an activity relaunch if the screen layout has been changed but does not cross a screen layout qualifier. (3) Adds tests for SizeConfigurationBuckets for the new screen layout logic as well as for existing logic. Test: atest FrameworksMockingCoreTests:SizeConfigurationBucketsTest Bug: b/192369163 b/187529743 Change-Id: I41d28e6492b76c4284c4dca2c1f3f5904fc5e91a
* Sending TaskFragment token to client for the launching activityLouis Chang2021-08-021-1/+1
| | | | | | | | | | | | | Activity#onCreate is called before receiving the TaskFragment appeared event in the client process. So, the client split controller created another split and resulted in unexpected behaviors. Bug: 194860679 Test: start activity to side Test: wm presubmit Change-Id: Iac34bd39376940c5c0224c8687ad9858a4190e20
* Handle WindowProviderService#onConfigurationChangedCharles Chen2021-06-181-0/+164
| | | | | | | | | | | This CL makes WindowProviderService receive onConfigurationChanged callback when there's a config update from WM side. Test: atest WindowContextTests Test: atest ActivityThreadTest ActivityClientTest ConfigurationHelperTest fixes: 185766946 Change-Id: I922d52c1c38aecc1a948c79039cc03354adc646f
* API Update: extra_is_bubbled -> Activity#isLaunchedFromBubbleMady Mellor2021-04-011-1/+2
| | | | | | | | | | | | | | | | | | | | | Per API council, moving this off of an intent and into ActivityOptions. This information is exposed via a new method: Activity#isLaunchedFromBubble In this CL: * Remove extra_is_bubbled bits & update javadoc * Adds launchedFromBubble bit on ActivityOptions * Check if the client is allowed to set this bit, only system / sysui can set it * Need to add this to the record / LaunchActivityItem as ActivityOptions get null'd out once they're used so save the bubble bit separately * Adds Activity#isLaunchedAsBubble * Sets bit on BubbleExpandedView Bug: 180945896 Test: atest NotificationManagerTest Change-Id: Ia2711f05fc4ebb521cc48e95c16336c13f2d47f8
* Add DisplayTest to FrameworksTestsFilterNaomi Musgrave2021-03-151-2/+5
| | | | | | | | | | Bug: 181860668 Test: atest FrameworksMockingCoreTests:android.view.DisplayTest Test: adb shell am instrument -w \ -e filter com.android.server.wm.test.filters.FrameworksTestsFilter \ -e selectTest_verbose true \ com.android.frameworks.mockingcoretests/androidx.test.runner.AndroidJUnitRunner Change-Id: Ie8a9a932f7ee8d3fb24cb454dd63cb0e559617ef
* Do not allow Display#getRealMetrics to return values reflectingNaomi Musgrave2021-03-121-23/+84
| | | | | | | | | | | | | the app bounds. Fixes Display#getRealMetrics sandboxing bug, where a non-null configuration results in DisplayInfo ignoring max bounds width and height for app bounds. Consistent with non-sandboxing implementation of Display#getRealMetrics Bug: 182377479 Test: atest FrameworksMockingCoreTests:android.view.DisplayTests Change-Id: I067aeb020e1ca214aa269182c475b4553de0eb09
* Sandbox letterbox and size compat appsNaomi Musgrave2021-03-091-0/+531
| | | | | | | | | | | | | | | | | Sandbox Display#getRealSize and WindowManager bounds when letterbox or size compat mode are applied to the configuration. Display uses this field to provide the sandboxed display size. This reverts commit 0ba6185639c20ee8a55cf697aad00716b14d22e9. Test: atest WindowConfigurationTests Test: atest FrameworksMockingCoreTests:android.view.DisplayTests Test: atest WmTests:SizeCompatTests Bug: 181219241 Change-Id: I86e8edb8368269da8e02cf34f429d245550666c6
* Update ContentCaptureContext to have a token informationJoanne Chung2021-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | In order to support auto translation, we need to give information to content capture service to let the app can use this information to find the Activity which needed to be translated. It's not safe to provide an activity token to the client app directly even if it is a privilege app. They can use this activity token to access many activity/windows related functions. We create a new token for use for content capture and translation. This token will be used get the target Activity for translation new APIs. This change focuses on the Content capture API change, the API change about translation will be done in the next change, Bug: 177789967 Test: manual. Make sure cc service can get the information. Test: atest android.view.contentcapture.ContentCaptureContextTest Test: atest CtsContentCaptureServiceTestCases Change-Id: Ife8096a8bd1e71ce4e686d95043e347222ad7ee6
* [LSC] Add LOCAL_LICENSE_KINDS to frameworks/baseBob Badour2021-02-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added SPDX-license-identifier-Apache-2.0 to: apct-tests/perftests/autofill/Android.bp apct-tests/perftests/blobstore/Android.bp apct-tests/perftests/core/Android.bp apct-tests/perftests/core/apps/overlay/Android.bp apct-tests/perftests/core/apps/reources_manager/Android.bp apct-tests/perftests/core/jni/Android.bp apct-tests/perftests/multiuser/Android.bp apct-tests/perftests/multiuser/apps/dummyapp/Android.bp apct-tests/perftests/packagemanager/Android.bp apct-tests/perftests/packagemanager/apps/query-all/Android.bp apct-tests/perftests/textclassifier/Android.bp apct-tests/perftests/utils/Android.bp apct-tests/perftests/windowmanager/Android.bp apex/Android.bp apex/blobstore/framework/Android.bp apex/blobstore/service/Android.bp apex/jobscheduler/framework/Android.bp apex/jobscheduler/service/Android.bp apex/media/Android.bp apex/media/aidl/Android.bp apex/media/framework/Android.bp cmds/am/Android.bp cmds/app_process/Android.bp cmds/appops/Android.bp cmds/appwidget/Android.bp cmds/backup/Android.bp cmds/bmgr/Android.bp cmds/bootanimation/Android.bp cmds/bu/Android.bp cmds/content/Android.bp cmds/dpm/Android.bp cmds/hid/Android.bp cmds/hid/jni/Android.bp cmds/idmap2/Android.bp cmds/ime/Android.bp cmds/incident/Android.bp cmds/incident_helper/Android.bp cmds/incidentd/Android.bp cmds/input/Android.bp cmds/interrupter/Android.bp cmds/locksettings/Android.bp cmds/pm/Android.bp cmds/requestsync/Android.bp cmds/screencap/Android.bp cmds/sm/Android.bp cmds/svc/Android.bp cmds/telecom/Android.bp cmds/uiautomator/Android.bp cmds/uiautomator/cmds/uiautomator/Android.bp cmds/uiautomator/instrumentation/Android.bp cmds/uiautomator/library/Android.bp cmds/vr/Android.bp cmds/wm/Android.bp config/Android.bp core/java/android/service/wallpaper/Android.bp core/jni/Android.bp core/sysprop/Android.bp core/tests/BroadcastRadioTests/Android.bp core/tests/ConnectivityManagerTest/Android.bp core/tests/PackageInstallerSessions/Android.bp core/tests/PlatformCompatFramework/Android.bp core/tests/bandwidthtests/Android.bp core/tests/benchmarks/Android.bp core/tests/bluetoothtests/Android.bp core/tests/bugreports/Android.bp core/tests/coretests/Android.bp core/tests/coretests/BinderDeathRecipientHelperApp/Android.bp core/tests/coretests/BinderProxyCountingTestApp/Android.bp core/tests/coretests/BinderProxyCountingTestService/Android.bp core/tests/coretests/BstatsTestApp/Android.bp core/tests/coretests/DisabledTestApp/Android.bp core/tests/coretests/EnabledTestApp/Android.bp core/tests/coretests/aidl/Android.bp core/tests/coretests/apks/Android.bp core/tests/coretests/apks/install/Android.bp core/tests/coretests/apks/install_bad_dex/Android.bp core/tests/coretests/apks/install_complete_package_info/Android.bp core/tests/coretests/apks/install_decl_perm/Android.bp core/tests/coretests/apks/install_jni_lib/Android.bp core/tests/coretests/apks/install_jni_lib_open_from_apk/Android.bp core/tests/coretests/apks/install_loc_auto/Android.bp core/tests/coretests/apks/install_loc_internal/Android.bp core/tests/coretests/apks/install_loc_sdcard/Android.bp core/tests/coretests/apks/install_loc_unspecified/Android.bp core/tests/coretests/apks/install_use_perm_good/Android.bp core/tests/coretests/apks/install_uses_feature/Android.bp core/tests/coretests/apks/install_verifier_bad/Android.bp core/tests/coretests/apks/install_verifier_good/Android.bp core/tests/coretests/apks/keyset/Android.bp core/tests/coretests/apks/locales/Android.bp core/tests/coretests/apks/overlay_config/Android.bp core/tests/coretests/apks/version/Android.bp core/tests/coretests/apks/version_nosys/Android.bp core/tests/featureflagtests/Android.bp core/tests/hdmitests/Android.bp core/tests/hosttests/test-apps/AutoLocTestApp/Android.bp core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v1/Android.bp core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v2/Android.bp core/tests/hosttests/test-apps/ExternalLocAllPermsTestApp/Android.bp core/tests/hosttests/test-apps/ExternalLocPermsFLTestApp/Android.bp core/tests/hosttests/test-apps/ExternalLocTestApp/Android.bp core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v1/Android.bp core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v2/Android.bp core/tests/hosttests/test-apps/ExternalSharedPerms/Android.bp core/tests/hosttests/test-apps/ExternalSharedPermsBT/Android.bp core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/Android.bp core/tests/hosttests/test-apps/ExternalSharedPermsFL/Android.bp core/tests/hosttests/test-apps/InternalLocTestApp/Android.bp core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/Android.bp core/tests/hosttests/test-apps/NoLocTestApp/Android.bp core/tests/hosttests/test-apps/NoLocVersionedTestApp_v1/Android.bp core/tests/hosttests/test-apps/NoLocVersionedTestApp_v2/Android.bp core/tests/hosttests/test-apps/SharedUid/32/Android.bp core/tests/hosttests/test-apps/SharedUid/32/jni/Android.bp core/tests/hosttests/test-apps/SharedUid/64/Android.bp core/tests/hosttests/test-apps/SharedUid/64/jni/Android.bp core/tests/hosttests/test-apps/SharedUid/dual/Android.bp core/tests/hosttests/test-apps/SharedUid/dual/jni/Android.bp core/tests/hosttests/test-apps/SharedUid/java_only/Android.bp core/tests/hosttests/test-apps/SimpleTestApp/Android.bp core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/Android.bp core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v2_int/Android.bp core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v1_ext/Android.bp core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v2_none/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_Auto/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_External/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_Internal/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_None/Android.bp core/tests/mockingcoretests/Android.bp core/tests/notificationtests/Android.bp core/tests/overlaytests/device/Android.bp core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp core/tests/overlaytests/device/test-apps/FrameworkOverlay/Android.bp core/tests/overlaytests/host/Android.bp core/tests/overlaytests/remount/Android.bp core/tests/overlaytests/remount/test-apps/Overlay/Android.bp core/tests/overlaytests/remount/test-apps/SharedLibrary/Android.bp core/tests/overlaytests/remount/test-apps/SharedLibraryOverlay/Android.bp core/tests/overlaytests/remount/test-apps/Target/Android.bp core/tests/packagemanagertests/Android.bp core/tests/privacytests/Android.bp core/tests/screenshothelpertests/Android.bp core/tests/systemproperties/Android.bp core/tests/utillib/Android.bp core/tests/utiltests/Android.bp core/tests/utiltests/jni/Android.bp core/tests/uwbtests/Android.bp core/xsd/Android.bp core/xsd/vts/Android.bp data/etc/Android.bp data/etc/car/Android.bp data/fonts/Android.bp data/keyboards/Android.mk drm/jni/Android.bp errorprone/Android.bp graphics/proto/Android.bp keystore/Android.bp keystore/tests/Android.bp libs/WindowManager/Jetpack/Android.bp libs/WindowManager/Shell/Android.bp libs/WindowManager/Shell/tests/Android.bp libs/androidfw/Android.bp libs/androidfw/fuzz/resourcefile_fuzzer/Android.bp libs/hostgraphics/Android.bp libs/incident/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/protoutil/Android.bp libs/services/Android.bp libs/storage/Android.bp libs/usb/tests/AccessoryChat/Android.bp libs/usb/tests/AccessoryChat/accessorychat/Android.bp location/lib/Android.bp location/tests/Android.bp location/tests/locationtests/Android.bp lowpan/tests/Android.bp media/Android.bp media/java/Android.bp media/java/android/media/tv/tunerresourcemanager/Android.bp media/jni/Android.bp media/jni/audioeffect/Android.bp media/jni/soundpool/Android.bp media/jni/soundpool/tests/Android.bp media/lib/remotedisplay/Android.bp media/lib/signer/Android.bp media/lib/tvremote/Android.bp media/lib/tvremote/tests/Android.bp media/mca/filterfw/Android.bp media/mca/filterfw/native/Android.bp media/mca/filterpacks/Android.bp media/mca/samples/CameraEffectsRecordingSample/Android.bp media/mca/tests/Android.bp media/native/midi/Android.bp media/packages/BluetoothMidiService/Android.bp media/packages/BluetoothMidiService/tests/unit/Android.bp media/tests/AudioPolicyTest/Android.bp media/tests/CameraBrowser/Android.bp media/tests/EffectsTest/Android.bp media/tests/MediaDump/Android.bp media/tests/MediaFrameworkTest/Android.bp media/tests/MediaRouter/Android.bp media/tests/MtpTests/Android.bp media/tests/ScoAudioTest/Android.bp media/tests/SoundPoolTest/Android.bp media/tests/TunerTest/Android.bp media/tests/audiotests/Android.bp media/tests/players/Android.bp mime/Android.bp native/android/Android.bp native/graphics/jni/Android.bp native/webview/loader/Android.bp nfc-extras/Android.bp nfc-extras/tests/Android.bp packages/AppPredictionLib/Android.bp packages/BackupEncryption/Android.bp packages/BackupEncryption/test/robolectric-integration/Android.bp packages/BackupEncryption/test/robolectric/Android.bp packages/BackupEncryption/test/unittest/Android.bp packages/BackupRestoreConfirmation/Android.bp packages/CarSystemUI/Android.bp packages/CarrierDefaultApp/Android.bp packages/CarrierDefaultApp/tests/unit/Android.bp packages/CompanionDeviceManager/Android.bp packages/Connectivity/framework/Android.bp packages/Connectivity/service/Android.bp packages/CtsShim/Android.bp packages/CtsShim/build/Android.bp packages/CtsShim/build/jni/Android.bp packages/DynamicSystemInstallationService/Android.bp packages/DynamicSystemInstallationService/tests/Android.bp packages/EasterEgg/Android.bp packages/EncryptedLocalTransport/Android.bp packages/ExtShared/Android.bp packages/ExternalStorageProvider/Android.bp packages/ExternalStorageProvider/tests/Android.bp packages/FakeOemFeatures/Android.bp packages/FusedLocation/Android.bp packages/InputDevices/Android.bp packages/LocalTransport/Android.bp packages/PackageInstaller/Android.bp packages/PrintRecommendationService/Android.bp packages/PrintSpooler/Android.bp packages/PrintSpooler/jni/Android.bp packages/PrintSpooler/tests/outofprocess/Android.bp packages/SettingsLib/ActionBarShadow/Android.bp packages/SettingsLib/ActionButtonsPreference/Android.bp packages/SettingsLib/AdaptiveIcon/Android.bp packages/SettingsLib/Android.bp packages/SettingsLib/AppPreference/Android.bp packages/SettingsLib/BarChartPreference/Android.bp packages/SettingsLib/DisplayDensityUtils/Android.bp packages/SettingsLib/EntityHeaderWidgets/Android.bp packages/SettingsLib/HelpUtils/Android.bp packages/SettingsLib/LayoutPreference/Android.bp packages/SettingsLib/ProgressBar/Android.bp packages/SettingsLib/RadioButtonPreference/Android.bp packages/SettingsLib/RestrictedLockUtils/Android.bp packages/SettingsLib/SchedulesProvider/Android.bp packages/SettingsLib/SearchProvider/Android.bp packages/SettingsLib/SearchWidget/Android.bp packages/SettingsLib/SettingsSpinner/Android.bp packages/SettingsLib/SettingsTheme/Android.bp packages/SettingsLib/Tile/Android.bp packages/SettingsLib/Utils/Android.bp packages/SettingsLib/search/Android.bp packages/SettingsLib/tests/integ/Android.bp packages/SettingsLib/tests/robotests/Android.bp packages/SettingsProvider/Android.bp packages/SharedStorageBackup/Android.bp packages/Shell/Android.bp packages/Shell/tests/Android.bp packages/SimAppDialog/Android.bp packages/SoundPicker/Android.bp packages/StatementService/Android.bp packages/SystemUI/Android.bp packages/SystemUI/plugin/Android.bp packages/SystemUI/plugin/ExamplePlugin/Android.bp packages/SystemUI/plugin_core/Android.bp packages/SystemUI/shared/Android.bp packages/VpnDialogs/Android.bp packages/WAPPushManager/Android.bp packages/WAPPushManager/tests/Android.bp packages/WallpaperBackup/Android.bp packages/WallpaperCropper/Android.bp packages/overlays/Android.mk packages/overlays/tests/Android.bp packages/services/PacProcessor/Android.bp packages/services/PacProcessor/jni/Android.bp packages/services/Proxy/Android.bp proto/Android.bp rs/jni/Android.mk samples/demo/haptic-assessment/Android.bp sax/tests/saxtests/Android.bp services/Android.bp services/accessibility/Android.bp services/appprediction/Android.bp services/appwidget/Android.bp services/autofill/Android.bp services/backup/Android.bp services/backup/backuplib/Android.bp services/companion/Android.bp services/contentcapture/Android.bp services/contentsuggestions/Android.bp services/core/Android.bp services/core/java/com/android/server/vcn/Android.bp services/core/jni/Android.bp services/core/xsd/Android.bp services/core/xsd/vts/Android.bp services/coverage/Android.bp services/devicepolicy/Android.bp services/incremental/Android.bp services/midi/Android.bp services/net/Android.bp services/people/Android.bp services/print/Android.bp services/profcollect/Android.bp services/restrictions/Android.bp services/robotests/Android.bp services/robotests/backup/Android.bp services/systemcaptions/Android.bp services/tests/PackageManagerComponentOverrideTests/Android.bp services/tests/PackageManagerServiceTests/host/Android.bp services/tests/PackageManagerServiceTests/host/test-apps/Android.bp services/tests/mockingservicestests/Android.bp services/tests/rescueparty/Android.bp services/tests/servicestests/Android.bp services/tests/servicestests/aidl/Android.bp services/tests/servicestests/apks/Android.bp services/tests/servicestests/apks/install-split-base/Android.bp services/tests/servicestests/apks/install-split-feature-a/Android.bp services/tests/servicestests/apks/install_intent_filters/Android.bp services/tests/servicestests/apks/install_uses_sdk/Android.bp services/tests/servicestests/test-apps/ConnTestApp/Android.bp services/tests/servicestests/test-apps/JobTestApp/Android.bp services/tests/servicestests/test-apps/PackageParserApp/Android.bp services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp services/tests/servicestests/test-apps/SimpleServiceTestApp/Android.bp services/tests/servicestests/test-apps/SuspendTestApp/Android.bp services/tests/shortcutmanagerutils/Android.bp services/tests/uiservicestests/Android.bp services/tests/wmtests/Android.bp services/usage/Android.bp services/usb/Android.bp services/voiceinteraction/Android.bp services/wifi/Android.bp startop/apps/test/Android.bp startop/iorap/Android.bp startop/iorap/functional_tests/Android.bp startop/iorap/stress/Android.bp startop/iorap/tests/Android.bp startop/view_compiler/Android.bp startop/view_compiler/dex_builder_test/Android.bp test-base/hiddenapi/Android.bp test-mock/Android.bp test-runner/tests/Android.bp tests/AccessibilityEventsLogger/Android.bp tests/AccessoryDisplay/common/Android.bp tests/AccessoryDisplay/sink/Android.bp tests/AccessoryDisplay/source/Android.bp tests/ActivityManagerPerfTests/stub-app/Android.bp tests/ActivityManagerPerfTests/test-app/Android.bp tests/ActivityManagerPerfTests/tests/Android.bp tests/ActivityManagerPerfTests/utils/Android.bp tests/ActivityTests/Android.bp tests/ActivityViewTest/Android.bp tests/AmSlam/Android.bp tests/ApkVerityTest/Android.bp tests/ApkVerityTest/ApkVerityTestApp/Android.bp tests/ApkVerityTest/block_device_writer/Android.bp tests/AppLaunch/Android.bp tests/AppLaunchWear/Android.bp tests/AppResourcesLoaders/Android.bp tests/AppResourcesLoaders/Overlay/Android.bp tests/Assist/Android.bp tests/AutoVerify/app1/Android.bp tests/AutoVerify/app2/Android.bp tests/AutoVerify/app3/Android.bp tests/AutoVerify/app4/Android.bp tests/BackgroundDexOptServiceIntegrationTests/Android.bp tests/BandwidthTests/Android.bp tests/BatteryWaster/Android.bp tests/BiDiTests/Android.bp tests/BlobStoreTestUtils/Android.bp tests/BootImageProfileTest/Android.bp tests/BrowserPowerTest/Android.bp tests/Camera2Tests/SmartCamera/SimpleCamera/jni/Android.bp tests/CameraPrewarmTest/Android.bp tests/Codegen/Android.bp tests/Compatibility/Android.bp tests/CoreTests/android/Android.bp tests/DataIdleTest/Android.bp tests/DozeTest/Android.bp tests/DpiTest/Android.bp tests/DynamicCodeLoggerIntegrationTests/Android.mk tests/FeatureSplit/base/Android.bp tests/FeatureSplit/feature1/Android.bp tests/FeatureSplit/feature2/Android.bp tests/FixVibrateSetting/Android.bp tests/FlickerTests/Android.bp tests/FlickerTests/test-apps/Android.bp tests/FlickerTests/test-apps/flickerapp/Android.bp tests/FrameworkPerf/Android.bp tests/GamePerformance/Android.bp tests/GridLayoutTest/Android.bp tests/HierarchyViewerTest/Android.bp tests/HugeBackup/Android.bp tests/HwAccelerationTest/Android.bp tests/Internal/Android.bp tests/JankBench/Android.bp tests/JobSchedulerPerfTests/Android.bp tests/JobSchedulerTestApp/Android.bp tests/LargeAssetTest/Android.bp tests/LegacyAssistant/Android.bp tests/LocalizationTest/Android.bp tests/LocationTracker/Android.bp tests/LotsOfApps/Android.bp tests/LowStorageTest/Android.bp tests/ManagedProfileLifecycleStressTest/Android.bp tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp tests/MemoryUsage/Android.bp tests/MirrorSurfaceTest/Android.bp tests/NativeProcessesMemoryTest/Android.bp tests/NetworkSecurityConfigTest/Android.bp tests/NullHomeTest/Android.bp tests/OdmApps/Android.bp tests/OdmApps/app/Android.bp tests/OdmApps/priv-app/Android.bp tests/OneMedia/Android.bp tests/PackageWatchdog/Android.bp tests/PlatformCompatGating/Android.bp tests/PlatformCompatGating/test-rules/Android.bp tests/ProtoInputStreamTests/Android.bp tests/RemoteDisplayProvider/Android.bp tests/RenderThreadTest/Android.bp tests/RollbackTest/Android.bp tests/SerialChat/Android.bp tests/ServiceCrashTest/Android.bp tests/SharedLibrary/client/Android.bp tests/SharedLibrary/lib/Android.bp tests/ShowWhenLockedApp/Android.bp tests/SmokeTest/Android.bp tests/SmokeTest/tests/Android.bp tests/SmokeTestApps/Android.bp tests/SoundTriggerTestApp/Android.bp tests/Split/Android.bp tests/StagedInstallTest/Android.bp tests/StatusBar/Android.bp tests/SurfaceComposition/Android.bp tests/SurfaceControlViewHostTest/Android.bp tests/SystemMemoryTest/device/Android.bp tests/SystemMemoryTest/host/Android.bp tests/SystemUIDemoModeController/Android.bp tests/TaskOrganizerTest/Android.bp tests/TelephonyCommonTests/Android.bp tests/TouchLatency/Android.bp tests/TransformTest/Android.bp tests/TtsTests/Android.bp tests/UiBench/Android.bp tests/UsageReportingTest/Android.bp tests/UsageStatsPerfTests/Android.bp tests/UsageStatsTest/Android.bp tests/UsbHostExternalManagmentTest/AoapTestDevice/Android.bp tests/UsbHostExternalManagmentTest/AoapTestHost/Android.bp tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/Android.bp tests/UsbManagerTests/Android.bp tests/UsbManagerTests/lib/Android.bp tests/UsbTests/Android.bp tests/UsesFeature2Test/Android.bp tests/VectorDrawableTest/Android.bp tests/VoiceEnrollment/Android.bp tests/VoiceInteraction/Android.bp tests/WallpaperTest/Android.bp tests/WindowAnimationJank/Android.bp tests/WindowInsetsTests/Android.bp tests/appwidgets/AppWidgetHostTest/Android.bp tests/appwidgets/AppWidgetProviderTest/Android.bp tests/backup/Android.mk tests/benchmarks/Android.bp tests/libs-permissions/Android.bp tests/net/Android.bp tests/net/common/Android.bp tests/net/deflake/Android.bp tests/net/integration/Android.bp tests/net/jni/Android.bp tests/net/smoketest/Android.bp tests/notification/Android.bp tests/permission/Android.bp tests/privapp-permissions/Android.bp tests/testables/Android.bp tests/testables/tests/Android.bp tests/utils/StubIME/Android.bp tests/utils/hostutils/Android.bp tests/utils/testutils/Android.bp tests/vcn/Android.bp tools/aapt/Android.bp tools/aapt2/Android.bp tools/aapt2/integration-tests/AutoVersionTest/Android.bp tools/aapt2/integration-tests/BasicTest/Android.bp tools/aapt2/integration-tests/MergeOnlyTest/LeafLib/Android.mk tools/aapt2/integration-tests/MergeOnlyTest/LocalLib/Android.mk tools/aapt2/integration-tests/NamespaceTest/LibOne/Android.mk tools/aapt2/integration-tests/NamespaceTest/LibTwo/Android.mk tools/aapt2/integration-tests/StaticLibTest/App/Android.bp tools/aapt2/integration-tests/StaticLibTest/LibOne/Android.bp tools/aapt2/integration-tests/StaticLibTest/LibTwo/Android.bp tools/aapt2/integration-tests/SymlinkTest/Android.bp tools/bit/Android.bp tools/codegen/Android.bp tools/dump-coverage/Android.bp tools/incident_report/Android.bp tools/incident_section_gen/Android.bp tools/lock_agent/Android.bp tools/locked_region_code_injection/Android.bp tools/obbtool/Android.bp tools/powermodel/Android.bp tools/preload-check/Android.bp tools/preload-check/device/Android.bp tools/preload/loadclass/Android.bp tools/processors/staledataclass/Android.bp tools/processors/view_inspector/Android.bp tools/protologtool/Android.bp tools/sdkparcelables/Android.bp tools/split-select/Android.bp tools/streaming_proto/Android.bp tools/validatekeymaps/Android.bp wifi/java/Android.bp wifi/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: libs/hwui/Android.bp native/webview/plat_support/Android.bp obex/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-CC-BY SPDX-license-identifier-CPL-1.0 SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-W3C legacy_unencumbered to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_unencumbered to: core/java/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0 to: test-base/Android.bp test-runner/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL to: core/res/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0 to: libs/usb/Android.bp libs/usb/tests/accessorytest/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: tools/preload/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: api/Android.bp boot/Android.bp cmds/device_config/Android.bp cmds/settings/Android.bp core/api/Android.bp core/tests/coretests/certs/Android.bp core/tests/overlaytests/remount/test-apps/certs/Android.bp core/tests/overlaytests/remount/test-apps/overlaid_apex/Android.bp core/tests/overlaytests/remount/test-apps/overlay_apex/Android.bp libs/tracingproxy/Android.bp services/startop/Android.bp test-legacy/Android.mk tests/ApkVerityTest/testdata/Android.bp tests/TransitionTests/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib9737d8fb5ef5b90a2c14fe71f1a571079edcf02 Merged-In: Ib9737d8fb5ef5b90a2c14fe71f1a571079edcf02
* Revert "Sandbox letterbox and size compat apps"Winson Chung2021-02-041-527/+0
| | | | | | | | This reverts commit 4d3f1c5681c4db99ffb4be881cee134b750542eb. Reason for revert: b/179308296 Change-Id: Idccf97038d5aa92268a13bacc512215878e8aefa
* Sandbox letterbox and size compat appsNaomi Musgrave2021-02-031-0/+527
| | | | | | | | | | | | | | Sandbox Display#getRealSize and WindowManager bounds when letterbox or size compat mode are applied to the configuration. Display uses this field to provide the sandboxed display size. Test: atest WindowConfigurationTests Test: atest FrameworksMockingCoreTests:android.view.DisplayTests Test: atest WmTests:SizeCompatTests Bug: 171386167 Change-Id: I6f78edcd9214b52ab0708e3892bc86ee05bb5b9a
* Merge "Introduce OWNERS file for Display unit tests" am: a1721e71ca am: ↵Naomi Musgrave2021-01-291-0/+2
|\ | | | | | | | | | | | | | | | | | | a0fcc520c6 am: 2486ee1320 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1563732 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Icab5d4f92178b51bee5ff5866818bbd5701e5721
| * Introduce OWNERS file for Display unit testsNaomi Musgrave2021-01-281-0/+2
| | | | | | | | | | | | | | Test: manual Bug: 171386167 Change-Id: I88a57ac4fa3b73da52b089c728e68b38aec2d62a
* | Send ActivityOptions to clientRiddle Hsu2021-01-051-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes getActivityOptions from server side. So 2 binder transactions from Activity#performCreate and performStart can be eliminated. The remote animation in ActivityOptions is also separated to another field of ActivityRecord, so when consuming the options, the remote animation won't be affected. Bug: 65202329 Bug: 132432864 Bug: 175409544 Test: WmTests:ActivityRecordTests#testTakeOptions ObjectPoolTests#testRecycleStartActivityItem CtsTransitionTestCases:ActivityTransitionTest CtsUsageStatsTestCases:ActivityTransitionTest Change-Id: I600a9a478a3e596e58b0a8120cfa8b9f32598b47
* | Merge "Add more OWNERS coverages(2/n)" am: a2c85ce0ba am: 700b3d812f am: ↵Wale Ogunwale2020-12-141-0/+1
|\| | | | | | | | | | | | | | | | | | | dfbbd0e5d7 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527819 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0b99215f99e165cbfc0ee925878d291746d94163
| * Add more OWNERS coverages(2/n)Charles Chen2020-12-141-0/+1
| | | | | | | | | | | | Test: manual Bug: 174932174 Change-Id: Id6a4c60734f24a3d8fdec27b11baead550296441
* | Move activity client operations to a separate interfaceRiddle Hsu2020-12-021-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL focuses on the methods used by Activity and ActivityThread. Also remove getUriPermissionOwnerForActivity, notifyActivityDrawn notifyLaunchTaskBehindComplete notifyEnterAnimationComplete because they are only used between ATMS and WMS. Bug: 174041144 Bug: 174040691 Test: CtsWindowManagerDeviceTestCases Change-Id: I5a30ec30cf6acd9ae4c908e524141fd17a4e54ff
* | Preserve window for Activity#recreate if possibleRiddle Hsu2020-11-061-5/+6
| | | | | | | | | | | | | | | | | | | | To prevent a black screen if the activity calls recreate in the foreground. Bug: 133216672 Test: ActivityThreadTest#testRecreateActivity ActivityThreadTest#testHandleActivity_assetsChanged Change-Id: I47d22895287f94cc77130767b67d4b0bdf82c3a3
* | Merge "Extend the timeout period for low-end devices"TreeHugger Robot2020-09-221-1/+1
|\ \
| * | Extend the timeout period for low-end devicesChilun2020-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Extend more timeout period to avoid flaky. Bug: 162906202 Test: atest FrameworksMockingCoreTests Change-Id: I1be9affc889efa383961fa6d600fca9cfda6962d
* | | Revert "Revert "Introduce ActivityTransactionItem and reduce null checks""Chilun Huang2020-09-181-5/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit fd2be2c17882c7db2833ed35c2b4da975801e527. Reason for revert: Reland the CL This class is used for activity-targeting item to inherit, which encapsulate null checks of activity client record. This patch also change signature of ClientTransactionHandler#handle* and reduces null checks. In addition, add some null pointer checks after getActivityClient(). Also fix a typo in performStopActivityInner() and performDestroyActivity(). Bug: 127877792 Bug: 164982975 Test: atest frameworks/base/core/tests/coretests/src/android/app/servertransaction Test: atest ActivityThreadTest ActivityThreadClientTest Test: atest TransactionExecutorTests#testActivityItemNullRecordThrowsException Test: atest TransactionExecutorTests#testActivityItemExecute Test: atest CtsAppTestCases:LocalActivityManagerTest Change-Id: Ida612f1c8af7ecd7a04e69ade461403b8711508a
* | Revert "Revert "Let activities can be recreated in ON_START state""Chilun Huang2020-09-081-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 167538021b40e45fe90adf5e6938a4cb7914db6e. Reason for revert: Reland the CL - Extend the timeout period for low-end devices. We should also allow the activity to be recreated in ON_START state, since ON_START is also a resting state and we don't see a reason to prevent applications from doing so. Bug: 162906202 Test: atest FrameworksMockingCoreTests atest FrameworksCoreTests atest WmTests Change-Id: Idb17514619c6501474f7fc6844dda9da98a4dd72
* | Revert "Let activities can be recreated in ON_START state"Rick Yiu2020-08-261-72/+0
| | | | | | | | | | | | | | | | This reverts commit d3ed35f3e9dcc735b7698e2fca1918e3b4c2472e. Reason for revert: Droidcop: Potential culprit for Bug 166391370 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Change-Id: Ib6007f01fdaf0ef74e8b630e5e13862f30689ef0
* | Let activities can be recreated in ON_START stateChilun2020-08-251-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | We should also allow the activity to be recreated in ON_START state, since ON_START is also a resting state and we don't see a reason to prevent applications from doing so. Bug: 162906202 Test: atest FrameworksMockingCoreTests atest FrameworksCoreTests atest WmTests Change-Id: I20a9c1c25c0b5e1a392b18dc5bac26a1551990e2
* | Revert "Introduce ActivityTransactionItem and reduce null checks"David Srbecky2020-08-171-5/+5
| | | | | | | | | | | | | | | | | | This reverts commit 9b1e955021ce4ce8c09b26c5fb38a2bb9c5a2d6d. Reason for revert: Breaks many tests Bug: 164982975 Change-Id: I86e7b158ae593aab6d73950bbb2b9dc6a7d5093c
* | Introduce ActivityTransactionItem and reduce null checksCharles Chen2020-08-101-5/+5
|/ | | | | | | | | | | | | | | This class is used for activity-targeting item to inherit, which encapsulate null checks of activity client record. This patch also change signature of ClientTransactionHandler#handle* and reduces null checks. Bug: 127877792 Test: atest frameworks/base/core/tests/coretests/src/android/app/servertransaction Test: atest ActivityThreadTest ActivityThreadClientTest Test: atest TransactionExecutorTests#testActivityItemNullRecordThrowsException Test: atest TransactionExecutorTests#testActivityItemExecute Change-Id: Idc0e9f583fc04e3a9043c28e83475acc65710731
* Send fixed rotation adjustments to the associated clientRiddle Hsu2020-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | | So the real information of display can be adjusted according to the adjustments for the application started with fixed rotation transform. The enabling adjustments may be sent in different ways: - Launch activity The information is bundled with LaunchActivityItem. - Resume activity or update non-activity window Send a standalone FixedRotationAdjustmentsItem. The disabling adjustments (null) are always sent by FixedRotationAdjustmentsItem. Bug: 147213487 Test: AppConfigurationTests#testRotatedInfoWithFixedRotationTransform TransactionParcelTests#testFixedRotationAdjustments Change-Id: I5238888a5c8352db83fc12749f4de2bfabf46026
* Mock sourceDir for ActivityThreadClientTestWinson2020-04-231-0/+1
| | | | | | | | | | | | | This just has to be non-null for the purposes of path generation. The result is thrown away as the mocked LoadedApk doesn't actually support updating its info, so this should have no effect on the test logic. Bug: 154807103 Test: atest android.app.activity.ActivityThreadClientTest Change-Id: Id097a0f3be3c8822e679093347c9a0320fdba13e
* Use START/STOP messages to update visibilityAndrii Kulian2020-01-081-138/+2
| | | | | | | | | | | | | | | | | | Activity visibility messages simply move the activity to STOPPED or STARTED state. We can use the lifecycle messages to do the same and simplify the logic/remove duplicated code. This CL also removes the option to send STOP message without making the client invisible and actually calling onStop(). This option caused a mismatch of the state between server (STOPPED) and client (PAUSED). Also, in cases when the device was going to sleep, STOP message was always followed by SLEEP message, which called onStop() anyway. Bug: 137329632 Bug: 129750406 Test: AM/WM CTS and unit tests Change-Id: I487575520ce301bb2f65519f0c0a30b6b9edac0c
* Remove flaky annotation of ActivityThreadClientTestJeff Chang2020-01-031-2/+0
| | | | | | | | | Remove flaky annotation on ActivityThreadClientTest since they are stable from test metrics. fixes:144675058 Test: atest ActivityThreadClientTest Change-Id: I67e95f955f2b73721a35ceb7748271977e607f8b
* Attempt to fix the ActivityThreadClientTest test case failed.Jeff Chang2019-12-261-0/+11
| | | | | | | | | | | | ActivityThreadclient test case failed in emulator environment, but they always work successfully on devices. This CL try to fix the test case failed by mocking the LoadApk#updateApplicationInfo function because the purpose of the test focuses on activity client state changes behavior. Bug: 144675058 Test: atest FrameworksMockingCoreTests:android.app.activity.ActivityThreadClientTest Change-Id: I8bec296b65a4e688166fde0f2803bdb06d981a30
* Add ActivityThreadClientTest to presubmitJeff Chang2019-10-291-0/+4
| | | | | | | | | | Add tests to presubmit and mark as flaky. We will remove the flaky annotation if stable. Bug: 143153552 Test: atest FrameworksMockingCoreTests:android.app.activity. ActivityThreadClientTest Change-Id: Ife07cfc8891184dcb6cf2b8444cd36fbfad7fdc9
* Improved TimingsTraceLog performance by using arrays, instead of Deque of Pairs.Felipe Leme2019-06-251-0/+190
| | | | | | | | | Test: manual verification Test: atest FrameworksMockingCoreTests:android.util.TimingsTraceLogTest Fixes: 135754571 Change-Id: I7a3571a422d09cd618f6610d3403a870af1ebafa
* Adding API for defining and invoking DirectActionsSunny Goyal2019-04-261-1/+1
| | | | | | | | | | | | | | | | | | | DirectActions are abstract actions defined by an Activtiy. The actual definition of these actions will be available through the support lib. This API provides a secure channel for system or assistant to interact with a running app using these Actions. Test: atest CtsVoiceInteractionTestCases Test: added android.voiceinteraction.cts.DirectActionsTest Bug: 129705716 Exempt-From-Owner-Approval: Resolving merge conflict Change-Id: I0ce568e0d8f41e0fe46306052016a74c7b394efa (cherry picked from commit d40c345536c385ed511238deedc943644ef25100)