/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SlicePermissionActivity.java | 75 CharSequence app1 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate() local 84 .setTitle(getString(R.string.slice_permission_title, app1, app2)) in onCreate() 98 mAllCheckbox.setText(getString(R.string.slice_permission_checkbox, app1)); in onCreate()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | MockingOomAdjusterTests.java | 1223 ProcessRecord app1 = spy(makeDefaultProcessRecord(MOCKAPP2_PID, MOCKAPP2_UID, in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() local 1226 bindService(app1, pers, null, null, Context.BIND_FOREGROUND_SERVICE, mock(IBinder.class)); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() 1227 bindService(app2, app1, null, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() 1229 updateOomAdj(pers, app1, app2); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() 1231 assertEquals(PROCESS_STATE_BOUND_FOREGROUND_SERVICE, app1.mState.getSetProcState()); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() 1232 assertBfsl(app1); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() 1973 final ProcessRecord app1 = spy(makeDefaultProcessRecord(MOCKAPP_PID, MOCKAPP_UID, in testUpdateOomAdj_DoOne_ScheduleLikeTop() local 1981 bindService(app1, client1, null, null, Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE, in testUpdateOomAdj_DoOne_ScheduleLikeTop() 1989 updateOomAdj(client1, client2, app1, app2); in testUpdateOomAdj_DoOne_ScheduleLikeTop() 1991 assertProcStates(app1, PROCESS_STATE_BOUND_FOREGROUND_SERVICE, VISIBLE_APP_ADJ, in testUpdateOomAdj_DoOne_ScheduleLikeTop() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | InsetsStateControllerTest.java | 152 final WindowState app1 = createWindow(null, TYPE_APPLICATION, "app1"); in testStripForDispatch_independentSources() local 155 app1.mAboveInsetsState.addSource(getController().getRawInsetsState().peekSource(ID_IME)); in testStripForDispatch_independentSources() 159 assertTrue(app1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testStripForDispatch_independentSources() 538 final WindowState app1 = createTestWindow("app1"); in testGetInsetsHintForNewControl() local 547 imeInsetsProvider.updateControlForTarget(app1, false); in testGetInsetsHintForNewControl() 549 final InsetsSourceControl control1 = imeInsetsProvider.getControl(app1); in testGetInsetsHintForNewControl()
|
D | InsetsPolicyTest.java | 406 final WindowState app1 = addWindow(TYPE_APPLICATION, "app1"); in testFakeControlTarget_overrideVisibilityReceivedByWindows() local 407 app1.mAboveInsetsState.addSource(statusBarSource); in testFakeControlTarget_overrideVisibilityReceivedByWindows() 408 assertTrue(app1.getInsetsState().peekSource(statusBarId).isVisible()); in testFakeControlTarget_overrideVisibilityReceivedByWindows() 425 assertFalse(app1.getInsetsState().peekSource(statusBarId).isVisible()); in testFakeControlTarget_overrideVisibilityReceivedByWindows() 437 assertFalse(app1.getInsetsState().peekSource(statusBarId).isVisible()); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
|
D | ActivityRecordTests.java | 3291 final WindowState app1 = createWindow(null, TYPE_APPLICATION, "app1"); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() local 3299 makeWindowVisibleAndDrawn(app1, mImeWindow); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3300 mDisplayContent.setImeLayeringTarget(app1); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3301 mDisplayContent.updateImeInputAndControlTarget(app1); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3305 app1.setRequestedVisibleTypes(ime(), ime()); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3306 mDisplayContent.getInsetsStateController().onRequestedVisibleTypesChanged(app1); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3309 assertTrue(app1.getInsetsState().peekSource(ID_IME).isVisible()); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3362 final WindowState app1 = createWindow(null, TYPE_APPLICATION, activity1, "app1"); in testImeInsetsFrozenFlag_multiWindowActivities() local 3364 makeWindowVisibleAndDrawn(app1, app2); in testImeInsetsFrozenFlag_multiWindowActivities() 3373 mDisplayContent.setImeLayeringTarget(app1); in testImeInsetsFrozenFlag_multiWindowActivities() [all …]
|
D | DisplayContentTests.java | 1229 WindowState app1 = createWindow(null, TYPE_BASE_APPLICATION, "app1"); in testComputeImeParent_inputTargetNotUpdate() local 1232 mDisplayContent.setImeLayeringTarget(app1); in testComputeImeParent_inputTargetNotUpdate() 1233 mDisplayContent.setImeInputTarget(app1); in testComputeImeParent_inputTargetNotUpdate() 1234 assertEquals(app1.mActivityRecord.getSurfaceControl(), mDisplayContent.computeImeParent()); in testComputeImeParent_inputTargetNotUpdate() 1258 WindowState app1 = createWindow(null, TYPE_BASE_APPLICATION, "app1"); in testComputeImeParent_remoteControlTarget() local 1261 dc.setImeLayeringTarget(app1); in testComputeImeParent_remoteControlTarget() 1273 dc.setImeInputTarget(app1); in testComputeImeParent_remoteControlTarget()
|
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/ |
D | Android.bp | 31 "app1/res",
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 5351 final String app1 = "com.example.app1"; in testGetPermissionGrantState() local 5354 when(getServices().ipackageManager.checkPermission(eq(permission), eq(app1), anyInt())) in testGetPermissionGrantState() 5357 .getPermissionFlags(permission, app1, UserHandle.SYSTEM); in testGetPermissionGrantState() 5358 when(getServices().packageManager.getPermissionFlags(permission, app1, in testGetPermissionGrantState() 5371 assertThat(dpm.getPermissionGrantState(null, app1, permission)) in testGetPermissionGrantState() 5377 mContext.binder.callingUid = setupPackageInPackageManager(app1, 1); in testGetPermissionGrantState() 5378 mContext.packageName = app1; in testGetPermissionGrantState() 5380 () -> dpm.getPermissionGrantState(null, app1, permission)); in testGetPermissionGrantState() 5386 assertThat(dpm.getPermissionGrantState(admin1, app1, permission)) in testGetPermissionGrantState()
|