/frameworks/av/camera/ndk/ |
D | NdkCameraManager.cpp | 71 ACameraManager*, 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 CameraManagerGlobal::getInstance().registerAvailabilityCallback(callback); in ACameraManager_registerAvailabilityCallback() 90 ACameraManager*, 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 | 164 @NonNull DataServiceCallback callback) { in setupDataCall() argument 166 if (callback != null) { in setupDataCall() 167 callback.onSetupDataCallComplete(DataServiceCallback.RESULT_ERROR_UNSUPPORTED, in setupDataCall() 186 @Nullable DataServiceCallback callback) { in deactivateDataCall() argument 188 if (callback != null) { in deactivateDataCall() 189 callback.onDeactivateDataCallComplete(DataServiceCallback.RESULT_ERROR_UNSUPPORTED); in deactivateDataCall() 201 @NonNull DataServiceCallback callback) { in setInitialAttachApn() argument 203 if (callback != null) { in setInitialAttachApn() 204 callback.onSetInitialAttachApnComplete( in setInitialAttachApn() 219 @NonNull DataServiceCallback callback) { in setDataProfile() argument [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | InputConnectionWrapper.java | 87 InputContextCallback callback; in getInstance() local 89 callback = sInstance; in getInstance() 93 callback.mHaveValue = false; in getInstance() 95 callback = new InputContextCallback(); in getInstance() 99 callback.mSeq = sSequenceNumber++; in getInstance() 100 return callback; in getInstance() 262 InputContextCallback callback = InputContextCallback.getInstance(); in getTextAfterCursor() local 263 mIInputContext.getTextAfterCursor(length, flags, callback.mSeq, callback); in getTextAfterCursor() 264 synchronized (callback) { in getTextAfterCursor() 265 callback.waitForResultLocked(); in getTextAfterCursor() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | AnimationHandler.java | 93 public void addAnimationFrameCallback(final AnimationFrameCallback callback, long delay) { in addAnimationFrameCallback() argument 97 if (!mAnimationCallbacks.contains(callback)) { in addAnimationFrameCallback() 98 mAnimationCallbacks.add(callback); in addAnimationFrameCallback() 102 mDelayedCallbackStartTime.put(callback, (SystemClock.uptimeMillis() + delay)); in addAnimationFrameCallback() 117 public void addOneShotCommitCallback(final AnimationFrameCallback callback) { in addOneShotCommitCallback() argument 118 if (!mCommitCallbacks.contains(callback)) { in addOneShotCommitCallback() 119 mCommitCallbacks.add(callback); in addOneShotCommitCallback() 127 public void removeCallback(AnimationFrameCallback callback) { in removeCallback() argument 128 mCommitCallbacks.remove(callback); in removeCallback() 129 mDelayedCallbackStartTime.remove(callback); in removeCallback() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | MediaManager.java | 44 protected void registerCallback(MediaDeviceCallback callback) { in registerCallback() argument 46 if (!mCallbacks.contains(callback)) { in registerCallback() 47 mCallbacks.add(callback); in registerCallback() 52 protected void unregisterCallback(MediaDeviceCallback callback) { in unregisterCallback() argument 54 if (mCallbacks.contains(callback)) { in unregisterCallback() 55 mCallbacks.remove(callback); in unregisterCallback() 82 for (MediaDeviceCallback callback : mCallbacks) { in dispatchDeviceAdded() 83 callback.onDeviceAdded(mediaDevice); in dispatchDeviceAdded() 90 for (MediaDeviceCallback callback : mCallbacks) { in dispatchDeviceRemoved() 91 callback.onDeviceRemoved(mediaDevice); in dispatchDeviceRemoved() [all …]
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeAdvertiser.java | 92 AdvertiseData advertiseData, final AdvertiseCallback callback) { in startAdvertising() argument 93 startAdvertising(settings, advertiseData, null, callback); in startAdvertising() 111 final AdvertiseCallback callback) { in startAdvertising() argument 114 if (callback == null) { in startAdvertising() 120 postStartFailure(callback, AdvertiseCallback.ADVERTISE_FAILED_DATA_TOO_LARGE); in startAdvertising() 123 if (mLegacyAdvertisers.containsKey(callback)) { in startAdvertising() 124 postStartFailure(callback, AdvertiseCallback.ADVERTISE_FAILED_ALREADY_STARTED); in startAdvertising() 156 AdvertisingSetCallback wrapped = wrapOldCallback(callback, settings); in startAdvertising() 157 mLegacyAdvertisers.put(callback, wrapped); in startAdvertising() 163 AdvertisingSetCallback wrapOldCallback(AdvertiseCallback callback, AdvertiseSettings settings) { in wrapOldCallback() argument [all …]
|
D | PeriodicAdvertisingManager.java | 93 PeriodicAdvertisingCallback callback) { in registerSync() argument 94 registerSync(scanResult, skip, timeout, callback, null); in registerSync() 117 PeriodicAdvertisingCallback callback, Handler handler) { in registerSync() argument 118 if (callback == null) { in registerSync() 145 callback.onSyncEstablished(0, scanResult.getDevice(), scanResult.getAdvertisingSid(), in registerSync() 155 IPeriodicAdvertisingCallback wrapped = wrap(callback, handler); in registerSync() 156 mCallbackWrappers.put(callback, wrapped); in registerSync() 173 public void unregisterSync(PeriodicAdvertisingCallback callback) { in unregisterSync() argument 174 if (callback == null) { in unregisterSync() 186 IPeriodicAdvertisingCallback wrapper = mCallbackWrappers.remove(callback); in unregisterSync() [all …]
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | LoginTest.java | 104 MyAutofillCallback callback = new MyAutofillCallback(); in testFocus_autofillBothFields() local 105 mAfm.registerCallback(callback); in testFocus_autofillBothFields() 110 callback.expectEvent(mUsername, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 114 callback.expectEvent(mUsername, EVENT_INPUT_HIDDEN); in testFocus_autofillBothFields() 115 callback.expectEvent(mPassword, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 125 callback.expectEvent(mPassword, EVENT_INPUT_HIDDEN); in testFocus_autofillBothFields() 126 callback.expectEvent(mUsername, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 130 callback.expectEvent(mUsername, EVENT_INPUT_HIDDEN); in testFocus_autofillBothFields() 131 callback.expectEvent(mPassword, EVENT_INPUT_SHOWN); in testFocus_autofillBothFields() 136 callback.assertNoAsyncErrors(); in testFocus_autofillBothFields() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccCardController.java | 219 IGetAllProfilesCallback callback) { in getAllProfiles() argument 224 callback.onComplete(EuiccCardManager.RESULT_CALLER_NOT_ALLOWED, null); in getAllProfiles() 234 callback.onComplete(EuiccCardManager.RESULT_EUICC_NOT_FOUND, null); in getAllProfiles() 246 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getAllProfiles() 256 callback.onComplete(getResultCode(e), null); in getAllProfiles() 268 IGetProfileCallback callback) { in getProfile() argument 273 callback.onComplete(EuiccCardManager.RESULT_CALLER_NOT_ALLOWED, null); in getProfile() 283 callback.onComplete(EuiccCardManager.RESULT_EUICC_NOT_FOUND, null); in getProfile() 294 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getProfile() 304 callback.onComplete(getResultCode(e), null); in getProfile() [all …]
|
D | EuiccConnector.java | 420 public void getEid(int cardId, GetEidCommandCallback callback) { in getEid() argument 421 sendMessage(CMD_GET_EID, cardId, 0 /* arg2 */, callback); in getEid() 426 public void getOtaStatus(int cardId, GetOtaStatusCommandCallback callback) { in getOtaStatus() argument 427 sendMessage(CMD_GET_OTA_STATUS, cardId, 0 /* arg2 */, callback); in getOtaStatus() 432 public void startOtaIfNecessary(int cardId, OtaStatusChangedCallback callback) { in startOtaIfNecessary() argument 433 sendMessage(CMD_START_OTA_IF_NECESSARY, cardId, 0 /* arg2 */, callback); in startOtaIfNecessary() 440 boolean forceDeactivateSim, GetMetadataCommandCallback callback) { in getDownloadableSubscriptionMetadata() argument 445 request.mCallback = callback; in getDownloadableSubscriptionMetadata() 453 Bundle resolvedBundle, DownloadCommandCallback callback) { in downloadSubscription() argument 459 request.mCallback = callback; in downloadSubscription() [all …]
|
/frameworks/base/core/java/android/service/carrier/ |
D | CarrierMessagingService.java | 127 int subId, @NonNull ResultCallback<Boolean> callback) { in onFilterSms() argument 130 callback.onReceiveResult(true); in onFilterSms() 155 int destPort, int subId, @NonNull final ResultCallback<Integer> callback) { in onReceiveTextSms() argument 159 callback.onReceiveResult(result ? RECEIVE_OPTIONS_DEFAULT : RECEIVE_OPTIONS_DROP in onReceiveTextSms() 177 @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument 180 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendTextSms() 197 int sendSmsFlag, @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument 199 onSendTextSms(text, subId, destAddress, callback); in onSendTextSms() 215 @NonNull ResultCallback<SendSmsResult> callback) { in onSendDataSms() argument 218 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendDataSms() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 41 private void addNotifyCount(Integer callback) { in addNotifyCount() argument 42 if (callback == callback1) { in addNotifyCount() 44 } else if (callback == callback2) { in addNotifyCount() 46 } else if (callback == callback3) { in addNotifyCount() 49 deepNotifyCount[callback]++; in addNotifyCount() 56 public void onNotifyCallback(Integer callback, CallbackRegistryTest sender, in testAddListener() 61 Integer callback = 0; in testAddListener() local 66 registry.add(callback); in testAddListener() 69 assertEquals(callback, callbacks.get(0)); in testAddListener() 71 registry.add(callback); in testAddListener() [all …]
|
/frameworks/base/core/java/android/app/role/ |
D | RoleControllerService.java | 82 public void grantDefaultRoles(RemoteCallback callback) { in onBind() 85 Preconditions.checkNotNull(callback, "callback cannot be null"); in onBind() 89 callback)); in onBind() 94 RemoteCallback callback) { in onBind() argument 100 Preconditions.checkNotNull(callback, "callback cannot be null"); in onBind() 104 roleName, packageName, flags, callback)); in onBind() 109 RemoteCallback callback) { in onBind() argument 115 Preconditions.checkNotNull(callback, "callback cannot be null"); in onBind() 119 roleName, packageName, flags, callback)); in onBind() 123 public void onClearRoleHolders(String roleName, int flags, RemoteCallback callback) { in onBind() argument [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraCaptureSessionImpl.java | 87 CameraCaptureSession.StateCallback callback, Executor stateExecutor, in CameraCaptureSessionImpl() argument 90 if (callback == null) { in CameraCaptureSessionImpl() 99 mStateCallback = createUserStateCallbackProxy(mStateExecutor, callback); in CameraCaptureSessionImpl() 159 public int capture(CaptureRequest request, CaptureCallback callback, in capture() argument 166 handler = checkHandler(handler, callback); in capture() 169 Log.v(TAG, mIdString + "capture - request " + request + ", callback " + callback + in capture() 174 createCaptureCallbackProxy(handler, callback), mDeviceExecutor)); in capture() 180 CaptureCallback callback) throws CameraAccessException { in captureSingleRequest() argument 183 } else if (callback == null) { in captureSingleRequest() 191 executor = CameraDeviceImpl.checkExecutor(executor, callback); in captureSingleRequest() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockDispSync.cpp | 27 status_t DispSync::addEventListener(const char* /*name*/, nsecs_t phase, Callback* callback, in addEventListener() argument 29 if (mCallback.callback != nullptr) { in addEventListener() 33 mCallback = {callback, phase}; in addEventListener() 36 status_t DispSync::removeEventListener(Callback* callback, nsecs_t* /*outLastCallback*/) { in removeEventListener() argument 37 if (mCallback.callback != callback) { in removeEventListener() 45 status_t DispSync::changePhaseOffset(Callback* callback, nsecs_t phase) { in changePhaseOffset() argument 46 if (mCallback.callback != callback) { in changePhaseOffset() 55 if (mCallback.callback == nullptr) return; in triggerCallback() 57 mCallback.callback->onDispSyncEvent( in triggerCallback()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | AutoFillUI.java | 95 public void setCallback(@NonNull AutoFillUiCallback callback) { in setCallback() argument 97 if (mCallback != callback) { in setCallback() 102 mCallback = callback; in setCallback() 107 public void clearCallback(@NonNull AutoFillUiCallback callback) { in clearCallback() argument 109 if (mCallback == callback) { in clearCallback() 110 hideAllUiThread(callback); in clearCallback() 119 public void showError(int resId, @NonNull AutoFillUiCallback callback) { in showError() argument 120 showError(mContext.getString(resId), callback); in showError() local 126 public void showError(@Nullable CharSequence message, @NonNull AutoFillUiCallback callback) { in showError() argument 130 if (mCallback != callback) { in showError() [all …]
|
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/ |
D | BugreportManagerTest.java | 90 BugreportCallbackImpl callback = new BugreportCallbackImpl(); in normalFlow_wifi() local 93 mExecutor, callback); in normalFlow_wifi() 94 waitTillDoneOrTimeout(callback); in normalFlow_wifi() 96 assertThat(callback.isDone()).isTrue(); in normalFlow_wifi() 98 assertThat(callback.hasReceivedProgress()).isFalse(); in normalFlow_wifi() 102 assertThat(callback.getErrorCode()).isEqualTo( in normalFlow_wifi() 109 BugreportCallbackImpl callback = new BugreportCallbackImpl(); in normalFlow_interactive() local 112 mExecutor, callback); in normalFlow_interactive() 114 waitTillDoneOrTimeout(callback); in normalFlow_interactive() 115 assertThat(callback.isDone()).isTrue(); in normalFlow_interactive() [all …]
|
/frameworks/base/telephony/java/android/service/euicc/ |
D | IEuiccService.aidl | 40 in IDownloadSubscriptionCallback callback); in downloadSubscription() argument 42 boolean forceDeactivateSim, in IGetDownloadableSubscriptionMetadataCallback callback); in getDownloadableSubscriptionMetadata() argument 43 void getEid(int slotId, in IGetEidCallback callback); in getEid() argument 44 void getOtaStatus(int slotId, in IGetOtaStatusCallback callback); in getOtaStatus() argument 46 void getEuiccProfileInfoList(int slotId, in IGetEuiccProfileInfoListCallback callback); in getEuiccProfileInfoList() argument 48 in IGetDefaultDownloadableSubscriptionListCallback callback); in getDefaultDownloadableSubscriptionList() argument 49 void getEuiccInfo(int slotId, in IGetEuiccInfoCallback callback); in getEuiccInfo() argument 50 void deleteSubscription(int slotId, String iccid, in IDeleteSubscriptionCallback callback); in deleteSubscription() argument 52 in ISwitchToSubscriptionCallback callback); in switchToSubscription() argument 54 in IUpdateSubscriptionNicknameCallback callback); in updateSubscriptionNickname() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 178 private void addCallback(final IMediaProjectionWatcherCallback callback) { in addCallback() argument 182 removeCallback(callback); in addCallback() 186 mCallbackDelegate.add(callback); in addCallback() 187 linkDeathRecipientLocked(callback, deathRecipient); in addCallback() 191 private void removeCallback(IMediaProjectionWatcherCallback callback) { in removeCallback() argument 193 unlinkDeathRecipientLocked(callback); in removeCallback() 194 mCallbackDelegate.remove(callback); in removeCallback() 198 private void linkDeathRecipientLocked(IMediaProjectionWatcherCallback callback, in linkDeathRecipientLocked() argument 201 final IBinder token = callback.asBinder(); in linkDeathRecipientLocked() 209 private void unlinkDeathRecipientLocked(IMediaProjectionWatcherCallback callback) { in unlinkDeathRecipientLocked() argument [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/euicc/ |
D | IEuiccCardController.aidl | 45 in IGetAllProfilesCallback callback); in getAllProfiles() argument 47 in IGetProfileCallback callback); in getProfile() argument 49 in IDisableProfileCallback callback); in disableProfile() argument 51 in ISwitchToProfileCallback callback); in switchToProfile() argument 53 in ISetNicknameCallback callback); in setNickname() argument 55 in IDeleteProfileCallback callback); in deleteProfile() argument 56 …d resetMemory(String callingPackage, String cardId, int options, in IResetMemoryCallback callback); in resetMemory() argument 58 in IGetDefaultSmdpAddressCallback callback); in getDefaultSmdpAddress() argument 60 in IGetSmdsAddressCallback callback); in getSmdsAddress() argument 62 in ISetDefaultSmdpAddressCallback callback); in setDefaultSmdpAddress() argument [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConference.java | 169 final Callback callback = record.getCallback(); in setDestroyed() local 173 callback.onDestroyed(conference); in setDestroyed() 194 final Callback callback = record.getCallback(); in setState() local 198 callback.onStateChanged(conference, oldState, newState); in setState() 212 final Callback callback = record.getCallback(); in addConnection() local 216 callback.onConnectionAdded(conference, connection); in addConnection() 230 final Callback callback = record.getCallback(); in removeConnection() local 234 callback.onConnectionRemoved(conference, connection); in removeConnection() 247 final Callback callback = record.getCallback(); in setConnectionCapabilities() local 251 callback.onConnectionCapabilitiesChanged( in setConnectionCapabilities() [all …]
|
D | RemoteConnection.java | 730 public void registerCallback(Callback callback) { in registerCallback() argument 731 registerCallback(callback, new Handler()); in registerCallback() 740 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument 741 unregisterCallback(callback); in registerCallback() 742 if (callback != null && handler != null) { in registerCallback() 743 mCallbackRecords.add(new CallbackRecord(callback, handler)); in registerCallback() 752 public void unregisterCallback(Callback callback) { in unregisterCallback() argument 753 if (callback != null) { in unregisterCallback() 755 if (record.getCallback() == callback) { in unregisterCallback() 1185 final Callback callback = record.getCallback(); in setState() local [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | CellularDataService.java | 70 DataServiceCallback callback = mCallbackMap.remove(message); in CellularDataServiceProvider() 76 callback.onSetupDataCallComplete(ar.exception != null in CellularDataServiceProvider() 82 callback.onDeactivateDataCallComplete(ar.exception != null in CellularDataServiceProvider() 87 callback.onSetInitialAttachApnComplete(ar.exception != null in CellularDataServiceProvider() 92 callback.onSetDataProfileComplete(ar.exception != null in CellularDataServiceProvider() 97 callback.onRequestDataCallListComplete( in CellularDataServiceProvider() 122 DataServiceCallback callback) { in setupDataCall() argument 128 if (callback != null) { in setupDataCall() 130 mCallbackMap.put(message, callback); in setupDataCall() 138 public void deactivateDataCall(int cid, int reason, DataServiceCallback callback) { in deactivateDataCall() argument [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionControllerService.java | 94 @NonNull Consumer<Map<String, List<String>>> callback); in onRevokeRuntimePermissions() argument 105 @NonNull OutputStream backup, @NonNull Runnable callback); in onGetRuntimePermissionsBackup() argument 119 @NonNull InputStream backup, @NonNull Runnable callback); in onRestoreRuntimePermissionsBackup() argument 131 @NonNull UserHandle user, @NonNull Consumer<Boolean> callback); in onRestoreDelayedRuntimePermissionsBackup() argument 141 @NonNull Consumer<List<RuntimePermissionPresentationInfo>> callback); in onGetAppPermissions() argument 152 @NonNull String permissionName, @NonNull Runnable callback); in onRevokeRuntimePermission() argument 164 @CountPermissionAppsFlag int flags, @NonNull IntConsumer callback); in onCountPermissionApps() argument 175 @NonNull Consumer<List<RuntimePermissionUsageInfo>> callback); in onGetPermissionUsages() argument 189 public abstract void onGrantOrUpgradeDefaultRuntimePermissions(@NonNull Runnable callback); in onGrantOrUpgradeDefaultRuntimePermissions() argument 204 @NonNull Consumer<Boolean> callback); in onSetRuntimePermissionGrantStateByDeviceAdmin() argument [all …]
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriverUtils.cpp | 28 void notify(const sp<V1_0::IPreparedModelCallback>& callback, const ErrorStatus& status, in notify() argument 30 const auto ret = callback->notify(convertToV1_0(status), preparedModel); in notify() 36 void notify(const sp<V1_2::IPreparedModelCallback>& callback, const ErrorStatus& status, in notify() argument 38 const auto ret = callback->notify_1_2(convertToV1_0(status), preparedModel); in notify() 45 void notify(const sp<V1_3::IPreparedModelCallback>& callback, const ErrorStatus& status, in notify() argument 47 const auto ret = callback->notify_1_3(status, preparedModel); in notify() 54 void notify(const sp<V1_0::IExecutionCallback>& callback, const ErrorStatus& status, in notify() argument 56 const auto ret = callback->notify(convertToV1_0(status)); in notify() 62 void notify(const sp<V1_2::IExecutionCallback>& callback, const ErrorStatus& status, in notify() argument 64 const auto ret = callback->notify_1_2(convertToV1_0(status), outputShapes, timing); in notify() [all …]
|