/frameworks/av/camera/ndk/ |
D | NdkCameraManager.cpp | 71 ACameraManager* manager, const ACameraManager_AvailabilityCallbacks* callback) { in ACameraManager_registerAvailabilityCallback() argument 73 if (callback == nullptr) { in ACameraManager_registerAvailabilityCallback() 77 if (callback->onCameraAvailable == nullptr || callback->onCameraUnavailable == nullptr) { in ACameraManager_registerAvailabilityCallback() 80 __FUNCTION__, callback, in ACameraManager_registerAvailabilityCallback() 81 callback->onCameraAvailable, callback->onCameraUnavailable); in ACameraManager_registerAvailabilityCallback() 84 manager->registerAvailabilityCallback(callback); in ACameraManager_registerAvailabilityCallback() 90 ACameraManager* manager, const ACameraManager_AvailabilityCallbacks* callback) { in ACameraManager_unregisterAvailabilityCallback() argument 92 if (callback == nullptr) { in ACameraManager_unregisterAvailabilityCallback() 96 if (callback->onCameraAvailable == nullptr || callback->onCameraUnavailable == nullptr) { in ACameraManager_unregisterAvailabilityCallback() 99 __FUNCTION__, callback, in ACameraManager_unregisterAvailabilityCallback() [all …]
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | DataService.java | 186 @NonNull DataServiceCallback callback) { in setupDataCall() argument 188 if (callback != null) { in setupDataCall() 189 callback.onSetupDataCallComplete(DataServiceCallback.RESULT_ERROR_UNSUPPORTED, in setupDataCall() 238 @NonNull DataServiceCallback callback) { in setupDataCall() argument 241 linkProperties, callback); in setupDataCall() 258 @Nullable DataServiceCallback callback) { in deactivateDataCall() argument 260 if (callback != null) { in deactivateDataCall() 261 callback.onDeactivateDataCallComplete(DataServiceCallback.RESULT_ERROR_UNSUPPORTED); in deactivateDataCall() 273 @NonNull DataServiceCallback callback) { in setInitialAttachApn() argument 275 if (callback != null) { in setInitialAttachApn() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/ |
D | PrimaryBouncerCallbackInteractor.kt | 33 fun addKeyguardResetCallback(callback: KeyguardResetCallback) { in addKeyguardResetCallback() 34 resetCallbacks.addIfAbsent(callback) in addKeyguardResetCallback() 38 fun removeKeyguardResetCallback(callback: KeyguardResetCallback) { in removeKeyguardResetCallback() 39 resetCallbacks.remove(callback) in removeKeyguardResetCallback() 43 fun addBouncerExpansionCallback(callback: PrimaryBouncerExpansionCallback) { in addBouncerExpansionCallback() 44 if (!expansionCallbacks.contains(callback)) { in addBouncerExpansionCallback() 45 expansionCallbacks.add(callback) in addBouncerExpansionCallback() 53 fun removeBouncerExpansionCallback(callback: PrimaryBouncerExpansionCallback) { in removeBouncerExpansionCallback() 54 expansionCallbacks.remove(callback) in removeBouncerExpansionCallback() 59 for (callback in expansionCallbacks) { in dispatchFullyShown() method [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | BackupTransportClient.java | 121 TransportStatusCallback callback = mCallbackPool.acquire(); in initializeDevice() local 123 mTransportBinder.initializeDevice(callback); in initializeDevice() 124 return callback.getOperationStatus(); in initializeDevice() 126 mCallbackPool.recycle(callback); in initializeDevice() 134 TransportStatusCallback callback = mCallbackPool.acquire(); in clearBackupData() local 136 mTransportBinder.clearBackupData(packageInfo, callback); in clearBackupData() 137 return callback.getOperationStatus(); in clearBackupData() 139 mCallbackPool.recycle(callback); in clearBackupData() 147 TransportStatusCallback callback = mCallbackPool.acquire(); in finishBackup() local 149 mTransportBinder.finishBackup(callback); in finishBackup() [all …]
|
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/ |
D | RemoteProvisioningRegistrationTest.java | 106 IGetKeyCallback callback = mock(IGetKeyCallback.class); in getKeySuccess() local 107 doReturn(new Binder()).when(callback).asBinder(); in getKeySuccess() 108 mRegistration.getKey(42, callback); in getKeySuccess() 109 verify(callback).onSuccess(matches(expectedKey)); in getKeySuccess() 110 verify(callback, atLeastOnce()).asBinder(); in getKeySuccess() 111 verifyNoMoreInteractions(callback); in getKeySuccess() 121 IGetKeyCallback callback = mock(IGetKeyCallback.class); in getKeyHandlesArbitraryException() local 122 doReturn(new Binder()).when(callback).asBinder(); in getKeyHandlesArbitraryException() 123 mRegistration.getKey(0, callback); in getKeyHandlesArbitraryException() 124 verify(callback).onError(eq(IGetKeyCallback.ErrorCode.ERROR_UNKNOWN), eq("oops!")); in getKeyHandlesArbitraryException() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/ |
D | ConditionMonitorTest.java | 82 Monitor.Callback callback) { in getDefaultBuilder() argument 83 return new Monitor.Subscription.Builder(callback) in getDefaultBuilder() 98 final Monitor.Callback callback = Mockito.mock( in testOverridingCondition() local 107 monitor.addSubscription(getDefaultBuilder(callback) in testOverridingCondition() 130 verify(callback).onConditionsChanged(eq(true)); in testOverridingCondition() 132 Mockito.clearInvocations(callback); in testOverridingCondition() 141 verify(callback).onConditionsChanged(eq(false)); in testOverridingCondition() 154 final Monitor.Callback callback = Mockito.mock( in testMultipleOverridingConditions() local 160 monitor.addSubscription(getDefaultBuilder(callback) in testMultipleOverridingConditions() 181 verify(callback).onConditionsChanged(eq(false)); in testMultipleOverridingConditions() [all …]
|
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/ |
D | DeviceStateManagerGlobalTest.java | 118 DeviceStateCallback callback = mock(DeviceStateCallback.class); in unregisterCallback() local 120 mDeviceStateManagerGlobal.registerDeviceStateCallback(callback, in unregisterCallback() 124 verify(callback).onSupportedStatesChanged(eq(mService.getSupportedDeviceStates())); in unregisterCallback() 125 verify(callback).onDeviceStateChanged(eq(mService.getMergedState())); in unregisterCallback() 126 reset(callback); in unregisterCallback() 128 mDeviceStateManagerGlobal.unregisterDeviceStateCallback(callback); in unregisterCallback() 132 verifyZeroInteractions(callback); in unregisterCallback() 137 DeviceStateCallback callback = mock(DeviceStateCallback.class); in submitRequest() local 138 mDeviceStateManagerGlobal.registerDeviceStateCallback(callback, in submitRequest() 141 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitRequest() [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionControllerService.java | 115 @NonNull Consumer<Map<String, List<String>>> callback); in onRevokeRuntimePermissions() argument 126 @NonNull OutputStream backup, @NonNull Runnable callback); in onGetRuntimePermissionsBackup() argument 135 @NonNull InputStream backup, @NonNull Runnable callback) { in onRestoreRuntimePermissionsBackup() argument 150 @NonNull InputStream backup, @NonNull Runnable callback) { in onStageAndApplyRuntimePermissionsBackup() argument 151 onRestoreRuntimePermissionsBackup(user, backup, callback); in onStageAndApplyRuntimePermissionsBackup() 160 @NonNull UserHandle user, @NonNull Consumer<Boolean> callback) { in onRestoreDelayedRuntimePermissionsBackup() argument 173 @NonNull UserHandle user, @NonNull Consumer<Boolean> callback) { in onApplyStagedRuntimePermissionBackup() argument 174 onRestoreDelayedRuntimePermissionsBackup(packageName, user, callback); in onApplyStagedRuntimePermissionBackup() 185 @NonNull Consumer<List<RuntimePermissionPresentationInfo>> callback); in onGetAppPermissions() argument 196 @NonNull String permissionName, @NonNull Runnable callback); in onRevokeRuntimePermission() argument [all …]
|
/frameworks/base/core/java/android/window/ |
D | WindowOnBackInvokedDispatcher.java | 161 @Priority int priority, @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback() argument 162 if (mChecker.checkApplicationCallbackRegistration(priority, callback)) { in registerOnBackInvokedCallback() 163 registerOnBackInvokedCallbackUnchecked(callback, priority); in registerOnBackInvokedCallback() 172 @NonNull OnBackInvokedCallback callback, @Priority int priority) { in registerOnBackInvokedCallbackUnchecked() 175 mImeDispatcher.registerOnBackInvokedCallback(priority, callback); in registerOnBackInvokedCallbackUnchecked() 178 if (callback instanceof ImeOnBackInvokedDispatcher.ImeOnBackInvokedCallback) { in registerOnBackInvokedCallbackUnchecked() 181 if (callback instanceof ImeOnBackInvokedDispatcher.DefaultImeOnBackAnimationCallback in registerOnBackInvokedCallbackUnchecked() 184 callback = mImeBackAnimationController; in registerOnBackInvokedCallbackUnchecked() 194 if (mAllCallbacks.containsKey(callback)) { in registerOnBackInvokedCallbackUnchecked() 198 Integer prevPriority = mAllCallbacks.get(callback); in registerOnBackInvokedCallbackUnchecked() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/ |
D | DreamOverlayCallbackControllerTest.kt | 37 @Mock private lateinit var callback: DreamOverlayCallbackController.Callback variable in com.android.systemui.dreams.DreamOverlayCallbackControllerTest 52 underTest.addCallback(callback) in onWakeUpInvokesCallback() 54 verify(callback).onWakeUp() in onWakeUpInvokesCallback() 58 reset(callback) in onWakeUpInvokesCallback() 59 underTest.addCallback(callback) in onWakeUpInvokesCallback() 61 verify(callback, times(1)).onWakeUp() in onWakeUpInvokesCallback() 64 reset(callback) in onWakeUpInvokesCallback() 65 underTest.removeCallback(callback) in onWakeUpInvokesCallback() 67 verify(callback, never()).onWakeUp() in onWakeUpInvokesCallback() 72 underTest.addCallback(callback) in onStartDreamInvokesCallback() [all …]
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | LoginTest.java | 111 MyAutofillCallback callback = new MyAutofillCallback(); in testFocus_autofillBothFields() local 112 mAfm.registerCallback(callback); in testFocus_autofillBothFields() 118 callback.expectEvent(mUsername, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 122 callback.expectEvent(mUsername, EVENT_INPUT_HIDDEN); in testFocus_autofillBothFields() 123 callback.expectEvent(mPassword, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 133 callback.expectEvent(mPassword, EVENT_INPUT_HIDDEN); in testFocus_autofillBothFields() 134 callback.expectEvent(mUsername, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 138 callback.expectEvent(mUsername, EVENT_INPUT_HIDDEN); in testFocus_autofillBothFields() 139 callback.expectEvent(mPassword, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 144 callback.assertNoAsyncErrors(); in testFocus_autofillBothFields() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverAppPredictorCallbackTest.java | 46 Callback callback = new Callback(); in testAsConsumer() local 47 ResolverAppPredictorCallback wrapped = new ResolverAppPredictorCallback(callback); in testAsConsumer() 48 assertThat(callback.count).isEqualTo(0); in testAsConsumer() 53 assertThat(callback.count).isEqualTo(1); in testAsConsumer() 54 assertThat(callback.latest).isEqualTo(targets); in testAsConsumer() 61 assertThat(callback.count).isEqualTo(1); in testAsConsumer() 66 Callback callback = new Callback(); in testAsCallback() local 67 ResolverAppPredictorCallback wrapped = new ResolverAppPredictorCallback(callback); in testAsCallback() 68 assertThat(callback.count).isEqualTo(0); in testAsCallback() 73 assertThat(callback.count).isEqualTo(1); in testAsCallback() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest11.java | 58 ShortcutChangeCallback callback = mock(ShortcutChangeCallback.class); in testShortcutChangeCallback_setDynamicShortcuts() local 60 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts() 71 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_setDynamicShortcuts() 73 verify(callback, times(0)).onShortcutsRemoved(any(), any(), any()); in testShortcutChangeCallback_setDynamicShortcuts() 85 ShortcutChangeCallback callback = mock(ShortcutChangeCallback.class); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() local 87 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 98 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 102 verify(callback, times(1)).onShortcutsRemoved( in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 127 ShortcutChangeCallback callback = mock(ShortcutChangeCallback.class); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() local 129 mLauncherApps.registerShortcutChangeCallback(callback, QUERY_MATCH_ALL, in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() [all …]
|
/frameworks/base/services/core/java/com/android/server/security/rkp/ |
D | RemoteProvisioningRegistration.java | 52 GetKeyReceiver(IGetKeyCallback callback) { in GetKeyReceiver() argument 53 mCallback = callback; in GetKeyReceiver() 112 public void getKey(int keyId, IGetKeyCallback callback) { in getKey() argument 114 if (mGetKeyOperations.putIfAbsent(callback.asBinder(), cancellationSignal) != null) { in getKey() 116 "Client can only request one call at a time " + callback.asBinder().hashCode()); in getKey() 119 + callback.asBinder().hashCode()); in getKey() 123 Log.i(TAG, "Fetching key " + keyId + " for client " + callback.asBinder().hashCode()); in getKey() 125 new GetKeyReceiver(callback)); in getKey() 128 "getKeyAsync threw an exception for client " + callback.asBinder().hashCode(), in getKey() 130 mGetKeyOperations.remove(callback.asBinder()); in getKey() [all …]
|
/frameworks/opt/net/ims/tests/src/com/android/ims/ |
D | FeatureConnectorTest.java | 78 public IImsServiceFeatureCallback callback; field in FeatureConnectorTest.TestManager 91 callback = cb; in registerFeatureCallback() 96 callback = null; in unregisterFeatureCallback() 153 assertNotNull("connect should trigger the callback registration", mTestManager.callback); in testConnect() 156 mTestManager.callback.imsFeatureCreated(createContainer(), SUB_ID); in testConnect() 163 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnect() 177 mTestManager.callback); in testConnectNotSupported() 187 assertNotNull("connect should trigger the callback registration", mTestManager.callback); in testConnectReadyNotReady() 189 mTestManager.callback.imsFeatureCreated(createContainer(), SUB_ID); in testConnectReadyNotReady() 190 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnectReadyNotReady() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
D | AccessPointControllerImplTest.kt | 59 private lateinit var callback: AccessPointController.AccessPointCallback variable in com.android.systemui.statusbar.connectivity.AccessPointControllerImplTest 99 controller.addAccessPointCallback(callback) in testLifecycleStartedAfterFirstCallback() 105 controller.addAccessPointCallback(callback) in testLifecycleBackToCreatedAfterRemovingOnlyCallback() 106 controller.removeAccessPointCallback(callback) in testLifecycleBackToCreatedAfterRemovingOnlyCallback() 113 controller.addAccessPointCallback(callback) in testLifecycleStillStartedAfterRemovingSecondCallback() 115 controller.removeAccessPointCallback(callback) in testLifecycleStillStartedAfterRemovingSecondCallback() 122 controller.addAccessPointCallback(callback) in testScanForAccessPointsTriggersCallbackWithEntriesInOrder() 125 verify(callback).onAccessPointsChanged(capture(wifiEntryListCaptor)) in testScanForAccessPointsTriggersCallbackWithEntriesInOrder() 132 controller.addAccessPointCallback(callback) in testOnWifiStateChangedTriggersCallbackWithEntriesInOrder() 135 verify(callback).onAccessPointsChanged(capture(wifiEntryListCaptor)) in testOnWifiStateChangedTriggersCallbackWithEntriesInOrder() [all …]
|
/frameworks/base/native/android/ |
D | choreographer.cpp | 25 AChoreographer_frameCallback callback, void* data) { in AChoreographer_postFrameCallback() argument 26 return AChoreographer_routePostFrameCallback(choreographer, callback, data); in AChoreographer_postFrameCallback() 29 AChoreographer_frameCallback callback, void* data, in AChoreographer_postFrameCallbackDelayed() argument 31 return AChoreographer_routePostFrameCallbackDelayed(choreographer, callback, data, delayMillis); in AChoreographer_postFrameCallbackDelayed() 34 AChoreographer_frameCallback64 callback, void* data) { in AChoreographer_postFrameCallback64() argument 35 return AChoreographer_routePostFrameCallback64(choreographer, callback, data); in AChoreographer_postFrameCallback64() 38 AChoreographer_frameCallback64 callback, void* data, in AChoreographer_postFrameCallbackDelayed64() argument 40 return AChoreographer_routePostFrameCallbackDelayed64(choreographer, callback, data, in AChoreographer_postFrameCallbackDelayed64() 44 AChoreographer_vsyncCallback callback, void* data) { in AChoreographer_postVsyncCallback() argument 45 return AChoreographer_routePostVsyncCallback(choreographer, callback, data); in AChoreographer_postVsyncCallback() [all …]
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | AutoFillUI.java | 114 public void setCallback(@NonNull AutoFillUiCallback callback) { in setCallback() argument 116 if (mCallback != callback) { in setCallback() 120 hideFillUiUiThread(callback, true); in setCallback() 125 mCallback = callback; in setCallback() 130 public void clearCallback(@NonNull AutoFillUiCallback callback) { in clearCallback() argument 132 if (mCallback == callback) { in clearCallback() 133 hideAllUiThread(callback); in clearCallback() 142 public void showError(int resId, @NonNull AutoFillUiCallback callback) { in showError() argument 143 showError(mContext.getString(resId), callback); in showError() local 149 public void showError(@Nullable CharSequence message, @NonNull AutoFillUiCallback callback) { in showError() argument [all …]
|
/frameworks/base/core/java/android/service/carrier/ |
D | CarrierMessagingService.java | 164 int subId, @NonNull ResultCallback<Boolean> callback) { in onFilterSms() argument 167 callback.onReceiveResult(true); in onFilterSms() 192 int destPort, int subId, @NonNull final ResultCallback<Integer> callback) { in onReceiveTextSms() argument 196 callback.onReceiveResult(result ? RECEIVE_OPTIONS_DEFAULT : RECEIVE_OPTIONS_DROP in onReceiveTextSms() 214 @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument 217 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendTextSms() 234 int sendSmsFlag, @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument 236 onSendTextSms(text, subId, destAddress, callback); in onSendTextSms() 252 @NonNull ResultCallback<SendSmsResult> callback) { in onSendDataSms() argument 255 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendDataSms() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccCardController.java | 302 IGetAllProfilesCallback callback) { in getAllProfiles() argument 307 callback.onComplete(EuiccCardManager.RESULT_CALLER_NOT_ALLOWED, null); in getAllProfiles() 319 callback.onComplete(EuiccCardManager.RESULT_EUICC_NOT_FOUND, null); in getAllProfiles() 331 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getAllProfiles() 341 callback.onComplete(getResultCode(e), null); in getAllProfiles() 353 IGetProfileCallback callback) { in getProfile() argument 358 callback.onComplete(EuiccCardManager.RESULT_CALLER_NOT_ALLOWED, null); in getProfile() 370 callback.onComplete(EuiccCardManager.RESULT_EUICC_NOT_FOUND, null); in getProfile() 381 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getProfile() 391 callback.onComplete(getResultCode(e), null); in getProfile() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 756 public void initializeDevice(ITransportStatusCallback callback) throws RemoteException { in initializeDevice() argument 759 callback.onOperationCompleteWithStatus(result); in initializeDevice() 761 callback.onOperationCompleteWithStatus(BackupTransport.TRANSPORT_ERROR); in initializeDevice() 767 ITransportStatusCallback callback) throws RemoteException { in performBackup() argument 770 callback.onOperationCompleteWithStatus(result); in performBackup() 772 callback.onOperationCompleteWithStatus(BackupTransport.TRANSPORT_ERROR); in performBackup() 777 public void clearBackupData(PackageInfo packageInfo, ITransportStatusCallback callback) in clearBackupData() argument 781 callback.onOperationCompleteWithStatus(result); in clearBackupData() 783 callback.onOperationCompleteWithStatus(BackupTransport.TRANSPORT_ERROR); in clearBackupData() 788 public void finishBackup(ITransportStatusCallback callback) throws RemoteException { in finishBackup() argument [all …]
|
/frameworks/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 65 AChoreographer_frameCallback callback, void* data) { in AChoreographer_routePostFrameCallback() argument 68 return AChoreographer_postFrameCallback(choreographer, callback, data); in AChoreographer_routePostFrameCallback() 72 AChoreographer_frameCallback callback, void* data, in AChoreographer_routePostFrameCallbackDelayed() argument 76 return AChoreographer_postFrameCallbackDelayed(choreographer, callback, data, delayMillis); in AChoreographer_routePostFrameCallbackDelayed() 80 AChoreographer_frameCallback64 callback, void* data) { in AChoreographer_routePostFrameCallback64() argument 81 return AChoreographer_postFrameCallback64(choreographer, callback, data); in AChoreographer_routePostFrameCallback64() 84 AChoreographer_frameCallback64 callback, in AChoreographer_routePostFrameCallbackDelayed64() argument 86 return AChoreographer_postFrameCallbackDelayed64(choreographer, callback, data, delayMillis); in AChoreographer_routePostFrameCallbackDelayed64() 89 AChoreographer_vsyncCallback callback, void* data) { in AChoreographer_routePostVsyncCallback() argument 90 return AChoreographer_postVsyncCallback(choreographer, callback, data); in AChoreographer_routePostVsyncCallback() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 44 private void addNotifyCount(Integer callback) { in addNotifyCount() argument 45 if (Objects.equals(callback, callback1)) { in addNotifyCount() 47 } else if (Objects.equals(callback, callback2)) { in addNotifyCount() 49 } else if (Objects.equals(callback, callback3)) { in addNotifyCount() 52 deepNotifyCount[callback]++; in addNotifyCount() 60 public void onNotifyCallback(Integer callback, CallbackRegistryTest sender, in testAddListener() 65 Integer callback = 0; in testAddListener() local 70 registry.add(callback); in testAddListener() 73 assertEquals(callback, callbacks.get(0)); in testAddListener() 75 registry.add(callback); in testAddListener() [all …]
|
/frameworks/base/telephony/java/android/service/euicc/ |
D | IEuiccService.aidl | 41 in IDownloadSubscriptionCallback callback); in downloadSubscription() argument 45 in IGetDownloadableSubscriptionMetadataCallback callback); in getDownloadableSubscriptionMetadata() argument 46 void getEid(int slotId, in IGetEidCallback callback); in getEid() argument 47 void getOtaStatus(int slotId, in IGetOtaStatusCallback callback); in getOtaStatus() argument 49 void getEuiccProfileInfoList(int slotId, in IGetEuiccProfileInfoListCallback callback); in getEuiccProfileInfoList() argument 51 in IGetDefaultDownloadableSubscriptionListCallback callback); in getDefaultDownloadableSubscriptionList() argument 52 void getEuiccInfo(int slotId, in IGetEuiccInfoCallback callback); in getEuiccInfo() argument 53 void deleteSubscription(int slotId, String iccid, in IDeleteSubscriptionCallback callback); in deleteSubscription() argument 55 in ISwitchToSubscriptionCallback callback, boolean useLegacyApi); in switchToSubscription() argument 57 in IUpdateSubscriptionNicknameCallback callback); in updateSubscriptionNickname() argument [all …]
|
/frameworks/base/nfc/java/android/nfc/ |
D | NfcVendorNciCallbackListener.java | 41 public void register(@NonNull Executor executor, @NonNull NfcVendorNciCallback callback) { in register() argument 43 if (mCallbackMap.containsKey(callback)) { in register() 46 mCallbackMap.put(callback, executor); in register() 53 mCallbackMap.remove(callback); in register() 60 public void unregister(@NonNull NfcVendorNciCallback callback) { in unregister() argument 62 if (!mCallbackMap.containsKey(callback) || !mIsRegistered) { in unregister() 69 mCallbackMap.remove(callback); in unregister() 75 mCallbackMap.remove(callback); in unregister() 86 for (NfcVendorNciCallback callback : mCallbackMap.keySet()) { in onVendorResponseReceived() 87 Executor executor = mCallbackMap.get(callback); in onVendorResponseReceived() [all …]
|