Home
last modified time | relevance | path

Searched refs:APP (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAppList.java26 class AppList<APP extends AppInfo> {
27 private ImmutableList<APP> mAllApps;
28 private ImmutableList<APP> mRegularApps;
29 private ImmutableMap<SpecialApp,APP> mSpecialApps;
34 public ImmutableList<APP> getAllApps() { in getAllApps()
38 public ImmutableList<APP> getRegularApps() { in getRegularApps()
42 public List<APP> findApp(String pkg) { in findApp()
43 List<APP> result = new ArrayList(); in findApp()
44 for (APP app: mRegularApps) { in findApp()
52 public APP findApp(SpecialApp specialApp) { in findApp()
[all …]
DAppInfo.java33 abstract static class Builder<APP extends AppInfo> {
39 public abstract APP build(); in build()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppOpsControllerTest.kt56 val controller = AppOpsController(context = context, app = APP, appOps = AppOps(OP)) in setAllowed_setToTrue()
60 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, MODE_ALLOWED) in setAllowed_setToTrue()
65 val controller = AppOpsController(context = context, app = APP, appOps = AppOps(OP)) in setAllowed_setToFalse()
69 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, MODE_ERRORED) in setAllowed_setToFalse()
76 app = APP, in setAllowed_setToFalseWithModeForNotAllowed()
82 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, MODE_IGNORED) in setAllowed_setToFalseWithModeForNotAllowed()
89 app = APP, in setAllowed_setToTrueByUid()
95 verify(appOpsManager).setUidMode(OP, APP.uid, MODE_ALLOWED) in setAllowed_setToTrueByUid()
102 app = APP, in setAllowed_setToFalseByUid()
108 verify(appOpsManager).setUidMode(OP, APP.uid, MODE_ERRORED) in setAllowed_setToFalseByUid()
[all …]
DAppOpsPermissionControllerTest.kt58 app = APP, in <lambda>()
75 on { APP.hasGrantPermission(PERMISSION) } doReturn true in <lambda>()
79 app = APP, in <lambda>()
97 on { APP.hasGrantPermission(PERMISSION) } doReturn false in isAllowedFlow_appOpsDefaultAndPermissionNotGranted_returnFalse()
101 app = APP, in isAllowedFlow_appOpsDefaultAndPermissionNotGranted_returnFalse()
120 app = APP, in <lambda>()
135 app = APP, in setAllowed_notSetModeByUid()
142 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, AppOpsManager.MODE_ALLOWED) in setAllowed_notSetModeByUid()
149 app = APP, in setAllowed_setModeByUid()
156 verify(appOpsManager).setUidMode(OP, APP.uid, AppOpsManager.MODE_ALLOWED) in setAllowed_setModeByUid()
[all …]
DPackageManagersTest.kt56 APP.hasRequestPermission(PERMISSION_A) in hasRequestPermission_packageInfoIsNull_returnFalse()
69 APP.hasRequestPermission(PERMISSION_A) in hasRequestPermission_requestedPermissionsIsNull_returnFalse()
82 APP.hasRequestPermission(PERMISSION_A) in hasRequestPermission_notRequested_returnFalse()
95 APP.hasRequestPermission(PERMISSION_A) in hasRequestPermission_requested_returnTrue()
106 APP.hasGrantPermission(PERMISSION_A) in hasGrantPermission_packageInfoIsNull_returnFalse()
119 APP.hasGrantPermission(PERMISSION_A) in hasGrantPermission_requestedPermissionsIsNull_returnFalse()
133 APP.hasGrantPermission(PERMISSION_A) in hasGrantPermission_notRequested_returnFalse()
147 APP.hasGrantPermission(PERMISSION_A) in hasGrantPermission_notGranted_returnFalse()
161 APP.hasGrantPermission(PERMISSION_A) in hasGrantPermission_granted_returnTrue()
172 val APP = ApplicationInfo().apply { in <lambda>() constant
DPackageManagerExtTest.kt51 packageManager.resolveActivityAsUser(any(), any<ResolveInfoFlags>(), eq(APP.userId)) in mockResolveActivityAsUser()
77 val activityInfo = packageManager.resolveActionForApp(APP, ACTION) in resolveActionForApp_noResolveInfo()
86 val activityInfo = packageManager.resolveActionForApp(APP, ACTION) in resolveActionForApp_noActivityInfo()
100 val activityInfo = packageManager.resolveActionForApp(APP, ACTION)!! in resolveActionForApp_hasActivityInfo()
108 app = APP, in resolveActionForApp_withFlags()
114 verify(packageManager).resolveActivityAsUser(any(), capture(), eq(APP.userId)) in resolveActionForApp_withFlags()
124 val APP = ApplicationInfo().apply { in <lambda>() constant
DPermissionsChangedFlowTest.kt52 on { asUser(APP.userHandle) } doReturn mock in <lambda>()
58 val flow = context.permissionsChangedFlow(APP) in <lambda>()
66 context.permissionsChangedFlow(APP).toListWithTimeout() in <lambda>()
70 onPermissionsChangedListener?.onPermissionsChanged(APP.uid) in <lambda>()
76 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppRepositoryTest.kt53 whenever(userManager.isManagedProfile(APP.userId)).thenReturn(true) in produceIconContentDescription_workProfile()
63 whenever(userManager.isManagedProfile(APP.userId)).thenReturn(false) in produceIconContentDescription_personalProfile()
73 contentDescription = appRepository.produceIconContentDescription(APP) in produceIconContentDescription()
81 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppOpsRepositoryTest.kt63 val mode = context.appOpsManager.getOpMode(AppOpsManager.OP_MANAGE_MEDIA, APP) in getOpMode()
70 val flow = context.appOpsManager.opModeFlow(AppOpsManager.OP_MANAGE_MEDIA, APP) in <lambda>()
80 context.appOpsManager.opModeFlow(AppOpsManager.OP_MANAGE_MEDIA, APP).toListWithTimeout() in <lambda>()
96 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppListViewModelTest.kt71 assertThat(appEntries[0].record.app).isSameInstanceAs(APP) in <lambda>()
90 ) = listOf(APP) in loadApps()
122 val APP = ApplicationInfo().apply { in <lambda>() constant
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DAppOpPermissionAppListTest.kt67 val record = listModel.transformItem(APP) in transformItem_recordHasCorrectApp()
69 assertThat(record.app).isSameInstanceAs(APP) in transformItem_recordHasCorrectApp()
74 with(packageManagers) { whenever(APP.hasRequestPermission(PERMISSION)).thenReturn(true) } in <lambda>()
76 val record = listModel.transformItem(APP) in <lambda>()
83 with(packageManagers) { whenever(APP.hasRequestPermission(PERMISSION)).thenReturn(false) } in <lambda>()
85 val record = listModel.transformItem(APP) in <lambda>()
94 whenever(APP.hasRequestPermission(BROADER_PERMISSION)).thenReturn(true) in <lambda>()
97 val record = listModel.transformItem(APP) in <lambda>()
106 whenever(APP.hasRequestPermission(BROADER_PERMISSION)).thenReturn(false) in <lambda>()
109 val record = listModel.transformItem(APP) in <lambda>()
[all …]
DAppInfoTest.kt46 applicationInfo = APP in appInfoLabel_isDisplayed()
62 applicationInfo = APP in appInfoVersion_whenDisplayVersionIsFalse()
79 applicationInfo = APP in appInfoVersion_whenDisplayVersionIsTrue()
96 applicationInfo = APP in footerAppVersion_versionIsDisplayed()
115 applicationInfo = APP in footerAppVersion_developmentEnabled_packageNameIsDisplayed()
133 applicationInfo = APP in footerAppVersion_developmentDisabled_packageNameDoesNotExist()
151 val APP = object : ApplicationInfo() { constant
DTogglePermissionAppListPageTest.kt106 record = listModel.transformItem(APP), in <lambda>()
155 summary = createInternalAppListModel(listModel).getSummary(record = TestAppRecord(APP)) in <lambda>()
165 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppListSwitchItemTest.kt152 val APP = ApplicationInfo().apply { in <lambda>() constant
157 override val app = APP
DTogglePermissionAppInfoPageTest.kt208 app = APP, in <lambda>()
229 val APP = ApplicationInfo().apply { in <lambda>() constant
235 applicationInfo = APP in <lambda>()
DAppListTwoTargetSwitchItemTest.kt177 val APP = ApplicationInfo().apply { in <lambda>() constant
182 override val app = APP
/frameworks/base/tests/MultiDeviceInput/
DREADME.md10 APP=MultiDeviceInput; m $APP && adb install $ANDROID_PRODUCT_OUT/system/app/$APP/$APP.apk
/frameworks/native/services/inputflinger/tests/
DInputTracingTest.cpp91 const std::shared_ptr<FakeApplicationHandle> APP = std::make_shared<FakeApplicationHandle>(); variable
186 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
201 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
219 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
240 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
260 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
284 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
285 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F()
328 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
329 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F()
[all …]
/frameworks/base/tools/lock_agent/
Dstart_with_lockagent.sh10 APP=$1
13 $APP -Xplugin:libopenjdkjvmti.so "-agentpath:liblockagent.so$AGENT_OPTIONS" $@
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/
DMediaProjectionMetricsLogger.kt99 APP,
106 APP -> METRICS_CREATION_SOURCE_APP in toMetricsConstant()
/frameworks/native/include/private/
Dperformance_hint_private.h85 APP = 4, enumerator
/frameworks/base/libs/hwui/tests/scripts/
Dskp-capture.sh73 banner '...WAITING FOR APP INTERACTION...'
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java785 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in processWithDeltaRSSTooSmall_notFullCompacted()
802 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in processWithDeltaRSSTooSmall_notFullCompacted()
820 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in processWithDeltaRSSTooSmall_notFullCompacted()
863 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in processWithAnonRSSTooSmall_notFullCompacted()
874 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in processWithAnonRSSTooSmall_notFullCompacted()
945 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in process_forceCompacted()
953 CachedAppOptimizer.CompactProfile.SOME, CachedAppOptimizer.CompactSource.APP, in process_forceCompacted()
964 CachedAppOptimizer.CompactProfile.FULL, CachedAppOptimizer.CompactSource.APP, in process_forceCompacted()
975 CachedAppOptimizer.CompactProfile.SOME, CachedAppOptimizer.CompactSource.APP, in process_forceCompacted()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/
DMediaProjectionMetricsLoggerTest.kt26 val sessionCreationSource = SessionCreationSource.APP in notifyProjectionInitiated_sourceApp_forwardsToServiceWithMetricsValue()
/frameworks/base/keystore/tests/src/android/security/keystore2/
DAndroidKeyStoreEdECPublicKeyTest.java43 keyDescriptor.domain = Domain.APP; in descriptor()

12