Home
last modified time | relevance | path

Searched refs:app2 (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java1193 ProcessRecord app2 = spy(makeDefaultProcessRecord(MOCKAPP3_PID, MOCKAPP3_UID, in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs() local
1203 app2.mServices.startService(s); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
1204 app2.mState.setLastTopTime(SystemClock.uptimeMillis()); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
1206 app2.mServices.setHasForegroundServices(true, FOREGROUND_SERVICE_TYPE_SHORT_SERVICE, in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
1209 updateOomAdj(app2); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
1212 assertEquals(PROCESS_STATE_FOREGROUND_SERVICE, app2.mState.getSetProcState()); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
1213 assertNoBfsl(app2); 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()
1235 assertEquals(PROCESS_STATE_FOREGROUND_SERVICE, app2.mState.getSetProcState()); in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSlicePermissionActivity.java79 CharSequence app2 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate() local
84 .setTitle(getString(R.string.slice_permission_title, app1, app2)) in onCreate()
93 t1.setText(getString(R.string.slice_permission_text_1, app2)); in onCreate()
95 t2.setText(getString(R.string.slice_permission_text_2, app2)); in onCreate()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DInsetsPolicyTest.java381 final WindowState app2 = addWindow(TYPE_APPLICATION, "app"); in testShowTransientBars_abortsWhenControlTargetChanges() local
389 policy.updateBarControlTarget(app2); in testShowTransientBars_abortsWhenControlTargetChanges()
410 final WindowState app2 = addWindow(TYPE_APPLICATION, "app2"); in testFakeControlTarget_overrideVisibilityReceivedByWindows() local
411 app2.mAboveInsetsState.addSource(statusBarSource); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
412 assertTrue(app2.getInsetsState().peekSource(statusBarId).isVisible()); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
416 mDisplayContent.getDisplayPolicy().focusChangedLw(null, app2); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
418 app2.setRequestedVisibleTypes(0, navigationBars() | statusBars()); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
419 mDisplayContent.getInsetsPolicy().updateBarControlTarget(app2); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
426 assertFalse(app2.getInsetsState().peekSource(statusBarId).isVisible()); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
431 mDisplayContent.getInsetsPolicy().updateBarControlTarget(app2); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
[all …]
DDisplayContentTests.java544 final ActivityRecord app2 = new ActivityBuilder(mAtm) in doTestFocusedWindowMultipleDisplays() local
547 final WindowState window2 = createWindow(null, TYPE_BASE_APPLICATION, app2, "window2"); in doTestFocusedWindowMultipleDisplays()
1230 WindowState app2 = createWindow(null, TYPE_BASE_APPLICATION, "app2"); in testComputeImeParent_inputTargetNotUpdate() local
1235 mDisplayContent.setImeLayeringTarget(app2); in testComputeImeParent_inputTargetNotUpdate()
1259 WindowState app2 = createWindow(null, TYPE_BASE_APPLICATION, "app2"); in testComputeImeParent_remoteControlTarget() local
1262 dc.setImeInputTarget(app2); in testComputeImeParent_remoteControlTarget()
1665 final ActivityRecord app2 = new ActivityBuilder(mAtm).setTask(task2) in testApplyTopFixedRotationTransform() local
1667 app2.setVisible(false); in testApplyTopFixedRotationTransform()
1668 mDisplayContent.mOpeningApps.add(app2); in testApplyTopFixedRotationTransform()
1669 app2.setRequestedOrientation(newOrientation); in testApplyTopFixedRotationTransform()
[all …]
DInsetsStateControllerTest.java153 final WindowState app2 = createWindow(null, TYPE_APPLICATION, "app2"); in testStripForDispatch_independentSources() local
158 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testStripForDispatch_independentSources()
539 final WindowState app2 = createTestWindow("app2"); in testGetInsetsHintForNewControl() local
556 imeInsetsProvider.updateControlForTarget(app2, false); in testGetInsetsHintForNewControl()
560 final InsetsSourceControl control2 = imeInsetsProvider.getControl(app2); in testGetInsetsHintForNewControl()
DActivityRecordTests.java3292 final WindowState app2 = createWindow(null, TYPE_APPLICATION, "app2"); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() local
3302 app2.mActivityRecord.commitVisibility(false, false); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3310 assertTrue(app2.mActivityRecord.mImeInsetsFrozenUntilStartInput); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3313 spyOn(app2); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3314 spyOn(app2.mClient); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3315 spyOn(app2.getProcess()); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3317 doReturn(true).when(app2).isReadyToDispatchInsetsState(); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3318 mDisplayContent.setImeLayeringTarget(app2); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3319 app2.mActivityRecord.commitVisibility(true, false); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
3320 mDisplayContent.updateImeInputAndControlTarget(app2); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest()
[all …]
DWindowStateTests.java1109 final WindowState app2 = createWindow(null, TYPE_APPLICATION, "app2"); in testAdjustImeInsetsVisibilityWhenSwitchingApps() local
1129 assertTrue(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps()
1138 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps()
1144 final WindowState app2 = createWindow(null, WINDOWING_MODE_MULTI_WINDOW, in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode() local
1156 app2.mActivityRecord.mImeInsetsFrozenUntilStartInput = true; in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode()
1168 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode()
1172 mDisplayContent.setImeLayeringTarget(app2); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode()
1179 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode()
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/
DAndroid.bp49 "app2/res",
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java5352 final String app2 = "com.example.app2"; in testGetPermissionGrantState() local
5361 when(getServices().ipackageManager.checkPermission(eq(permission), eq(app2), anyInt())) in testGetPermissionGrantState()
5363 doReturn(0).when(getServices().packageManager).getPermissionFlags(permission, app2, in testGetPermissionGrantState()
5365 when(getServices().packageManager.getPermissionFlags(permission, app2, in testGetPermissionGrantState()
5373 assertThat(dpm.getPermissionGrantState(null, app2, permission)) in testGetPermissionGrantState()
5388 assertThat(dpm.getPermissionGrantState(admin1, app2, permission)) in testGetPermissionGrantState()