Home
last modified time | relevance | path

Searched refs:callbackHolder (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DBaseAdminGrantedPermissionsPreferenceControllerTestCase.java68 NumberOfAppsCallbackHolder callbackHolder = in testGetAvailabilityStatus_noPermissionsGranted() local
76 callbackHolder.release(0); in testGetAvailabilityStatus_noPermissionsGranted()
86 NumberOfAppsCallbackHolder callbackHolder = in testGetAvailabilityStatus_noPermissionsGranted_zoneWrite() local
95 callbackHolder.release(0); in testGetAvailabilityStatus_noPermissionsGranted_zoneWrite()
105 NumberOfAppsCallbackHolder callbackHolder = in testGetAvailabilityStatus_noPermissionsGranted_zoneRead() local
114 callbackHolder.release(0); in testGetAvailabilityStatus_noPermissionsGranted_zoneRead()
124 NumberOfAppsCallbackHolder callbackHolder = in testGetAvailabilityStatus_noPermissionsGranted_zoneHidden() local
133 callbackHolder.release(0); in testGetAvailabilityStatus_noPermissionsGranted_zoneHidden()
144 NumberOfAppsCallbackHolder callbackHolder = in testGetAvailabilityStatus_permissionsGranted() local
152 callbackHolder.release(42); in testGetAvailabilityStatus_permissionsGranted()
[all …]
DEnterpriseInstalledPackagesPreferenceControllerTest.java59 NumberOfAppsCallbackHolder callbackHolder = mockCalculateNumberOfPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps() local
66 callbackHolder.release(0); in testGetAvailabilityStatus_noInstalledApps()
76 NumberOfAppsCallbackHolder callbackHolder = mockCalculateNumberOfPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps_zoneWrite() local
84 callbackHolder.release(0); in testGetAvailabilityStatus_noInstalledApps_zoneWrite()
94 NumberOfAppsCallbackHolder callbackHolder = mockCalculateNumberOfPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps_zoneRead() local
102 callbackHolder.release(0); in testGetAvailabilityStatus_noInstalledApps_zoneRead()
112 NumberOfAppsCallbackHolder callbackHolder = mockCalculateNumberOfPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps_zoneHidden() local
120 callbackHolder.release(0); in testGetAvailabilityStatus_noInstalledApps_zoneHidden()
131 NumberOfAppsCallbackHolder callbackHolder = mockCalculateNumberOfPolicyInstalledApps(); in testGetAvailabilityStatus_withInstalledApps() local
138 callbackHolder.release(3); in testGetAvailabilityStatus_withInstalledApps()
[all …]
DEnterpriseInstalledPackagesListPreferenceControllerTest.java67 ListOfAppsCallbackHolder callbackHolder = mockListPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps() local
74 callbackHolder.release(); in testGetAvailabilityStatus_noInstalledApps()
84 ListOfAppsCallbackHolder callbackHolder = mockListPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps_zoneWrite() local
92 callbackHolder.release(); in testGetAvailabilityStatus_noInstalledApps_zoneWrite()
102 ListOfAppsCallbackHolder callbackHolder = mockListPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps_zoneRead() local
110 callbackHolder.release(); in testGetAvailabilityStatus_noInstalledApps_zoneRead()
120 ListOfAppsCallbackHolder callbackHolder = mockListPolicyInstalledApps(); in testGetAvailabilityStatus_noInstalledApps_zoneHidden() local
128 callbackHolder.release(); in testGetAvailabilityStatus_noInstalledApps_zoneHidden()
139 ListOfAppsCallbackHolder callbackHolder = mockListPolicyInstalledApps(); in testGetAvailabilityStatus_withInstalledApps() local
146 callbackHolder.release(newUserAppInfo("foo"), newUserAppInfo("bar")); in testGetAvailabilityStatus_withInstalledApps()
[all …]
DBaseAdminGrantedPermissionsApplicationListPreferenceControllerTestCase.java88 ListOfAppsCallbackHolder callbackHolder = mockListAppsWithAdminGrantedPermissions(); in testGetAvailabilityStatus_noPermissionsGranted() local
95 callbackHolder.release(); in testGetAvailabilityStatus_noPermissionsGranted()
105 ListOfAppsCallbackHolder callbackHolder = mockListAppsWithAdminGrantedPermissions(); in testGetAvailabilityStatus_noPermissionsGranted_zoneWrite() local
113 callbackHolder.release(); in testGetAvailabilityStatus_noPermissionsGranted_zoneWrite()
123 ListOfAppsCallbackHolder callbackHolder = mockListAppsWithAdminGrantedPermissions(); in testGetAvailabilityStatus_noPermissionsGranted_zoneRead() local
131 callbackHolder.release(); in testGetAvailabilityStatus_noPermissionsGranted_zoneRead()
141 ListOfAppsCallbackHolder callbackHolder = mockListAppsWithAdminGrantedPermissions(); in testGetAvailabilityStatus_noPermissionsGranted_zoneHidden() local
149 callbackHolder.release(); in testGetAvailabilityStatus_noPermissionsGranted_zoneHidden()
160 ListOfAppsCallbackHolder callbackHolder = mockListAppsWithAdminGrantedPermissions(); in testGetAvailabilityStatus_permissionsGranted() local
167 callbackHolder.release(newUserAppInfo("foo"), newUserAppInfo("bar")); in testGetAvailabilityStatus_permissionsGranted()
[all …]
/packages/services/Car/car-lib/src/android/car/input/
DCarInputManager.java364 CallbackHolder callbackHolder; in releaseInputEventCapture() local
366 callbackHolder = mCarInputCaptureCallbacks.get(targetDisplayType); in releaseInputEventCapture()
369 if (callbackHolder == null) { in releaseInputEventCapture()
417 CallbackHolder callbackHolder = getCallback(targetDisplayType); in dispatchKeyEvents() local
418 if (callbackHolder == null) { in dispatchKeyEvents()
421 callbackHolder.mExecutor.execute(() -> { in dispatchKeyEvents()
422 callbackHolder.mCallback.onKeyEvents(targetDisplayType, keyEvents); in dispatchKeyEvents()
428 CallbackHolder callbackHolder = getCallback(targetDisplayType); in dispatchRotaryEvents() local
429 if (callbackHolder == null) { in dispatchRotaryEvents()
432 callbackHolder.mExecutor.execute(() -> { in dispatchRotaryEvents()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DBaseAdminGrantedPermissionsApplicationListPreferenceController.java46 protected void lazyLoad(AppsListCallbackTranslator callbackHolder) { in lazyLoad() argument
49 callbackHolder); in lazyLoad()
DEnterpriseInstalledPackagesListPreferenceController.java49 protected void lazyLoad(AppsListCallbackTranslator callbackHolder) { in lazyLoad() argument
51 mApplicationFeatureProvider.listPolicyInstalledApps(callbackHolder); in lazyLoad()
DBaseAsyncPreferenceController.java53 protected abstract void lazyLoad(T callbackHolder); in lazyLoad() argument