Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/notification/
DAppNotificationRepositoryTest.kt80 whenever(notificationManager.onlyHasDefaultChannel(APP.packageName, APP.uid)) in mockOnlyHasDefaultChannel()
86 APP.packageName, APP.uid, NotificationChannel.DEFAULT_CHANNEL_ID, null, true in mockOnlyHasDefaultChannel()
156 mockIsEnabled(app = APP, enabled = true) in isEnabled()
158 val isEnabled = repository.isEnabled(APP) in isEnabled()
165 whenever(notificationManager.isImportanceLocked(APP.packageName, APP.uid)).thenReturn(true) in isChangeable_importanceLocked()
167 val isChangeable = repository.isChangeable(APP) in isChangeable_importanceLocked()
217 repository.setEnabled(app = APP, enabled = true) in setEnabled_toTrueWhenOnlyHasDefaultChannel()
220 .updateNotificationChannelForPackage(APP.packageName, APP.uid, channel) in setEnabled_toTrueWhenOnlyHasDefaultChannel()
228 repository.setEnabled(app = APP, enabled = false) in setEnabled_toFalseWhenOnlyHasDefaultChannel()
231 .updateNotificationChannelForPackage(APP.packageName, APP.uid, channel) in setEnabled_toFalseWhenOnlyHasDefaultChannel()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/
DWifiControlAppListModelTest.kt63 val record = listModel.transformItem(APP) in transformItem_recordHasCorrectApp()
65 assertThat(record.app).isSameInstanceAs(APP) in transformItem_recordHasCorrectApp()
71 whenever(APP.hasRequestPermission(PM_CHANGE_WIFI_STATE)).thenReturn(true) in <lambda>()
74 val record = listModel.transformItem(APP) in <lambda>()
82 whenever(APP.hasRequestPermission(PM_CHANGE_WIFI_STATE)).thenReturn(false) in <lambda>()
85 val record = listModel.transformItem(APP) in <lambda>()
93 whenever(APP.hasRequestPermission(PM_NETWORK_SETTINGS)).thenReturn(true) in <lambda>()
96 val record = listModel.transformItem(APP) in <lambda>()
104 whenever(APP.hasRequestPermission(PM_NETWORK_SETTINGS)).thenReturn(false) in <lambda>()
107 val record = listModel.transformItem(APP) in <lambda>()
[all …]
DAllAppListTest.kt138 val recordListFlow = listModel.transform(flowOf(USER_ID), flowOf(listOf(APP))) in <lambda>()
142 assertThat(recordList[0].app).isSameInstanceAs(APP) in <lambda>()
151 summary = listModel.getSummary(option = 0, record = AppRecordWithSize(app = APP)) in listModelGetSummary_regular()
163 summary = listModel.getSummary(option = 0, record = AppRecordWithSize(app = APP)) in listModelGetSummary_emptyStorage()
284 record = AppRecordWithSize(app = APP), in setItemContent()
299 val APP = ApplicationInfo().apply { in <lambda>() constant
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPermissionControllerTest.java84 private static final String APP = "android.permission.cts.appthataccesseslocation"; field in PermissionControllerTest
102 sUiAutomation.grantRuntimePermission(APP, ACCESS_FINE_LOCATION); in resetAppState()
103 sUiAutomation.grantRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in resetAppState()
104 setAppOp(APP, ACCESS_FINE_LOCATION, MODE_ALLOWED); in resetAppState()
116 runShellCommand("pm uninstall " + APP); in uninstallApp()
219 Map<String, List<String>> request = buildRevokeRequest(APP, ACCESS_BACKGROUND_LOCATION); in revokePermissionsDryRunSinglePermission()
224 assertThat(result.get(APP)).isNotNull(); in revokePermissionsDryRunSinglePermission()
225 assertThat(result.get(APP)).containsExactly(ACCESS_BACKGROUND_LOCATION); in revokePermissionsDryRunSinglePermission()
230 Map<String, List<String>> request = buildRevokeRequest(APP, ACCESS_BACKGROUND_LOCATION); in revokePermissionsSinglePermission()
235 APP)).isEqualTo(PERMISSION_DENIED); in revokePermissionsSinglePermission()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/specialaccess/
DAlarmsAndRemindersAppListTest.kt68 whenever(APP.hasRequestPermission(Manifest.permission.SCHEDULE_EXACT_ALARM)) in setUp()
81 val record = listModel.transformItem(APP) in transformItem_recordHasCorrectApp()
83 assertThat(record.app).isSameInstanceAs(APP) in transformItem_recordHasCorrectApp()
89 whenever(APP.hasRequestPermission(Manifest.permission.SCHEDULE_EXACT_ALARM)) in transformItem_whenNotRequestScheduleExactAlarm_recordHasCorrectState()
92 val record = listModel.transformItem(APP) in transformItem_whenNotRequestScheduleExactAlarm_recordHasCorrectState()
101 whenever(APP.hasRequestPermission(Manifest.permission.USE_EXACT_ALARM)) in transformItem_whenRequestUseExactAlarm_recordHasCorrectState()
104 val record = listModel.transformItem(APP) in transformItem_whenRequestUseExactAlarm_recordHasCorrectState()
113 val record = listModel.transformItem(APP) in transformItem_whenPowerAllowListed_recordHasCorrectState()
121 val record = listModel.transformItem(APP) in transformItem_whenNotTrumped_recordHasCorrectState()
129 val APP = ApplicationInfo().apply { in <lambda>() constant
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/
DTopicsTables.java65 String APP = "app"; field
81 + AppClassificationTopicsContract.APP
182 String APP = "app"; field
195 String APP = "app"; field
212 + ReturnedTopicContract.APP
235 + ReturnedEncryptedTopicContract.APP
254 String APP = "app"; field
266 + UsageHistoryContract.APP
280 String APP = "app"; field
293 + AppUsageHistoryContract.APP
[all …]
DTopicsDao.java131 values.put(TopicsTables.AppClassificationTopicsContract.APP, app); in persistAppClassificationTopics()
170 TopicsTables.AppClassificationTopicsContract.APP, in retrieveAppClassificationTopics()
193 TopicsTables.AppClassificationTopicsContract.APP)); in retrieveAppClassificationTopics()
364 values.put(TopicsTables.UsageHistoryContract.APP, app); in recordUsageHistory()
396 values.put(TopicsTables.AppUsageHistoryContract.APP, app); in recordAppUsageHistory()
425 TopicsTables.UsageHistoryContract.APP, TopicsTables.UsageHistoryContract.SDK, in retrieveAppSdksUsageMap()
446 TopicsTables.UsageHistoryContract.APP)); in retrieveAppSdksUsageMap()
475 TopicsTables.AppUsageHistoryContract.APP, in retrieveAppUsageMap()
495 TopicsTables.AppUsageHistoryContract.APP)); in retrieveAppUsageMap()
699 values.put(TopicsTables.ReturnedTopicContract.APP, app.getKey().first); in persistReturnedAppTopicsMap()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DDebugKeyAccessorTest.java100 EventSurfaceType.APP, in getDebugKeys_appToAppWithAdIdPermission_debugKeysPresent()
109 EventSurfaceType.APP, in getDebugKeys_appToAppWithAdIdPermission_debugKeysPresent()
127 EventSurfaceType.APP, in getDebugKeys_appToAppNoAdIdPermission_debugKeysAbsent()
136 EventSurfaceType.APP, in getDebugKeys_appToAppNoAdIdPermission_debugKeysAbsent()
155 EventSurfaceType.APP, in getDebugKeys_appToAppNoAdIdPermissionWithJoinKeys_debugKeysAbsent()
164 EventSurfaceType.APP, in getDebugKeys_appToAppNoAdIdPermissionWithJoinKeys_debugKeysAbsent()
183 EventSurfaceType.APP, in getDebugKeys_appToAppWithSourceAdId_sourceDebugKeyPresent()
192 EventSurfaceType.APP, in getDebugKeys_appToAppWithSourceAdId_sourceDebugKeyPresent()
211 EventSurfaceType.APP, in getDebugKeys_appToAppWithTriggerAdId_triggerDebugKeyPresent()
220 EventSurfaceType.APP, in getDebugKeys_appToAppWithTriggerAdId_triggerDebugKeyPresent()
[all …]
DEventReportWindowCalcDelegateTest.java103 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_eventSourceAppDestination()
123 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_eventSrcInstallAttributedAppDestinationTrigger1stWindow()
142 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_eventSrcInstallAttributedAppDestinationTrigger2ndWindow()
217 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_navigationSourceTriggerInFirstWindow()
236 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_navigationSourceTriggerInSecondWindow()
254 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_navigationSecondExpiry()
272 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_navigationLast()
895 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_emptyWindowConfigNavigationSourceTriggerNextHour()
917 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_emptyWindowConfigEventSrcTriggerNextHour()
940 source, triggerTime, EventSurfaceType.APP)); in getReportingTime_emptyWindowConfigEventSrcInstallAttTriggerNextHour()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/storage/
DStorageAppListTest.kt49 val recordListFlow = listModel.transform(flowOf(0), flowOf(listOf(APP))) in <lambda>()
52 assertThat(recordList.first().app).isSameInstanceAs(APP) in <lambda>()
64 AppRecordWithSize(APP, 1L), in <lambda>()
83 AppRecordWithSize(APP, 1L), in <lambda>()
99 AppRecordWithSize(app = APP, size = 1L), in getComparator_sortsByDescendingSize()
119 assertThat(result[2].record.app).isSameInstanceAs(APP) in getComparator_sortsByDescendingSize()
127 val APP = ApplicationInfo().apply { in <lambda>() constant
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/
DPermissionHub2Test.kt35 private val APP = "com.android.permissioncontroller.tests.appthatrequestpermission" constant in com.android.permissioncontroller.permissionui.PermissionHub2Test
45 .setComponent(ComponentName.createRelative(APP, ".DummyActivity")) in accessCamera()
52 context.packageManager.getPermissionFlags(CAMERA, APP, myUserHandle()) and in accessCamera()
64 context.packageManager.getPackageUid(APP, 0), in accessCamera()
65 APP, in accessCamera()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DLogUtilsTest.java40 private static final String APP = "com.example.app"; field in LogUtilsTest
60 APP, in testNoData()
76 APP, in testWriteQuery()
94 APP, in testWriteEmptyQuery()
115 APP, in testWriteEventForExistingQuery()
147 APP, in testWriteEventForExistingQuery()
174 APP, in testWriteEventWithNewQuery()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/backgroundinstall/
DBackgroundInstalledAppsPageProviderTest.kt177 APP, in <lambda>()
191 APP, in <lambda>()
207 val recordListFlow = listModel.transform(flowOf(TEST_USER_ID), flowOf(listOf(APP))) in <lambda>()
212 assertThat(recordList[0].app).isSameInstanceAs(APP) in <lambda>()
243 app = APP, in setItemContent()
264 val APP = ApplicationInfo().apply { in <lambda>() constant
271 APP,
280 applicationInfo = APP in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppLocalePreferenceTest.kt80 whenever(AppLocaleUtil.canDisplayLocaleUi(any(), eq(APP), any())).thenReturn(true) in setUp()
81 whenever(AppLocaleDetails.getSummary(any(), eq(APP))).thenReturn(SUMMARY) in setUp()
91 whenever(AppLocaleUtil.canDisplayLocaleUi(any(), eq(APP), any())).thenReturn(false) in whenCanNotDisplayLocalUi_notDisplayed()
117 verify(context).startActivityAsUser(intentCaptor.capture(), eq(APP.userHandle)) in whenCanDisplayLocalUi_click_startActivity()
127 AppLocalePreference(APP) in setContent()
136 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppNotificationPreferenceTest.kt76 setContent(APP) in title_displayed()
84 setContent(APP) in summary_displayed()
102 setContent(APP) in onClick_startActivity()
110 APP, in onClick_startActivity()
128 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppAllServicesPreferenceTest.kt84 whenever(packageManager.getResourcesForApplication(APP)).thenReturn(resources) in setUp()
90 packageManager.resolveActivityAsUser(any(), any<ResolveInfoFlags>(), eq(APP.userId)) in mockResolveActivityAsUser()
102 intentCaptor.capture(), any<ResolveInfoFlags>(), eq(APP.userId) in callResolveActivityAsUser_withIntent()
157 verify(context).startActivityAsUser(intentCaptor.capture(), eq(APP.userHandle)) in whenClick_startActivity()
166 AppAllServicesPreference(APP) in setContent()
179 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppSettingsPreferenceTest.kt78 packageManager.resolveActivityAsUser(any(), any<ResolveInfoFlags>(), eq(APP.userId)) in mockResolveActivityAsUser()
90 intentCaptor.capture(), any<ResolveInfoFlags>(), eq(APP.userId) in callResolveActivityAsUser_withIntent()
135 verify(context).startActivityAsUser(intentCaptor.capture(), eq(APP.userHandle)) in whenClick_startActivity()
144 AppSettingsPreference(APP) in setContent()
154 val APP = ApplicationInfo().apply { in <lambda>() constant
DAppDataUsagePreferenceTest.kt111 setContent(APP) in <lambda>()
148 APP, in <lambda>()
155 private fun setContent(app: ApplicationInfo = APP) { in <lambda>()
174 val APP = ApplicationInfo().apply { in <lambda>() constant
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appcompat/
DUserAspectRatioAppsPageProviderTest.kt114 val recordListFlow = listModel.transform(flowOf(USER_ID), flowOf(listOf(APP))) in <lambda>()
118 assertThat(recordList[0].app).isSameInstanceAs(APP) in <lambda>()
167 app = APP, in setSummary()
187 private val APP = ApplicationInfo().apply { in <lambda>() constant
191 APP,
197 APP,
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DAppUpdateManager.java73 TopicsTables.AppClassificationTopicsContract.APP),
79 TopicsTables.ReturnedTopicContract.APP),
82 TopicsTables.UsageHistoryContract.APP),
85 TopicsTables.AppUsageHistoryContract.APP),
88 TopicsTables.TopicContributorsContract.APP)
429 TopicsTables.ReturnedEncryptedTopicContract.APP));
606 List.of(TopicsTables.AppUsageHistoryContract.APP)); in getUnhandledUninstalledApps()
610 List.of(TopicsTables.ReturnedTopicContract.APP)); in getUnhandledUninstalledApps()
639 TopicsTables.AppUsageHistoryContract.APP, in getUnhandledInstalledApps()
640 TopicsTables.ReturnedTopicContract.APP)); in getUnhandledInstalledApps()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/development/compat/
DPlatformCompatAppListModelTest.kt70 appListFlow = flowOf(listOf(APP)), in <lambda>()
76 assertThat(record.app).isSameInstanceAs(APP) in <lambda>()
81 val summary = getSummary(APP) in <lambda>()
100 val APP = ApplicationInfo().apply { in <lambda>() constant
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/v31/
DPermissionUsageFragmentTest.kt44 private val APP = "com.android.permissioncontroller.tests.appthatrequestpermission" constant
52 grantPermission(APP, CAMERA) in setup()
76 uninstallApp(APP) in uninstallTestApp()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DAttributionStatus.java166 if (source.getPublisherType() == EventSurfaceType.APP in setSurfaceTypeFromSourceAndTrigger()
167 && trigger.getDestinationType() == EventSurfaceType.APP) { in setSurfaceTypeFromSourceAndTrigger()
169 } else if (source.getPublisherType() == EventSurfaceType.APP in setSurfaceTypeFromSourceAndTrigger()
173 && trigger.getDestinationType() == EventSurfaceType.APP) { in setSurfaceTypeFromSourceAndTrigger()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/
DMeasurementCobaltLoggerTest.java69 private static final int APP = field in MeasurementCobaltLoggerTest
270 APP, in testLogRegistrationStatus_appTriggerRegistrationFailureLogged()
279 APP, in testLogRegistrationStatus_appTriggerRegistrationFailureLogged()
341 APP, in testLogRegistrationStatus_msmtRegistrationCobaltLogDisabled()
350 APP, in testLogRegistrationStatus_msmtRegistrationCobaltLogDisabled()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/battery/
DBatteryOptimizationModeAppListPageProviderTest.kt152 val recordListFlow = listModel.transform(flowOf(USER_ID), flowOf(listOf(APP))) in <lambda>()
156 assertThat(recordList[0].app).isSameInstanceAs(APP) in <lambda>()
165 summary = listModel.getSummary(option = 0, record = AppRecordWithSize(app = APP)) in listModelGetSummary_regular()
275 record = AppRecordWithSize(app = APP), in setItemContent()
290 val APP = ApplicationInfo().apply { in <lambda>() constant

123