Home
last modified time | relevance | path

Searched refs:onComplete (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccCard.java108 public void supplyPin(String pin, Message onComplete) { in supplyPin() argument
109 sendMessageWithCardAbsentException(onComplete); in supplyPin()
116 public void supplyPuk(String puk, String newPin, Message onComplete) { in supplyPuk() argument
117 sendMessageWithCardAbsentException(onComplete); in supplyPuk()
123 public void supplyPin2(String pin2, Message onComplete) { in supplyPin2() argument
124 sendMessageWithCardAbsentException(onComplete); in supplyPin2()
130 public void supplyPuk2(String puk2, String newPin2, Message onComplete) { in supplyPuk2() argument
131 sendMessageWithCardAbsentException(onComplete); in supplyPuk2()
138 public void supplyNetworkDepersonalization(String pin, Message onComplete) { in supplyNetworkDepersonalization() argument
139 sendMessageWithCardAbsentException(onComplete); in supplyNetworkDepersonalization()
[all …]
DCallWaitingController.java74 Cw(boolean enable, boolean imsRegistered, Message onComplete) { in Cw() argument
76 mOnComplete = onComplete; in Cw()
166 public synchronized boolean getCallWaiting(@Nullable Message onComplete) { in getCallWaiting() argument
176 Cw cw = new Cw(false, isImsRegistered(), onComplete); in getCallWaiting()
188 sendGetCallWaitingResponse(onComplete); in getCallWaiting()
192 Cw cw = new Cw(false, isImsRegistered(), onComplete); in getCallWaiting()
209 int serviceClass, @Nullable Message onComplete) { in setCallWaiting() argument
220 Cw cw = new Cw(true, isImsRegistered(), onComplete); in setCallWaiting()
239 sendToTarget(onComplete, null, null); in setCallWaiting()
243 Cw cw = new Cw(enable, isImsRegistered(), onComplete); in setCallWaiting()
[all …]
DGsmCdmaPhone.java268 Cfu(String cfNumber, Message onComplete) { in Cfu() argument
270 mOnComplete = onComplete; in Cfu()
1078 public void enableEnhancedVoicePrivacy(boolean enable, Message onComplete) { in enableEnhancedVoicePrivacy() argument
1082 mCi.setPreferredVoicePrivacy(enable, onComplete); in enableEnhancedVoicePrivacy()
1087 public void getEnhancedVoicePrivacy(Message onComplete) { in getEnhancedVoicePrivacy() argument
1091 mCi.getPreferredVoicePrivacy(onComplete); in getEnhancedVoicePrivacy()
1857 public void sendBurstDtmf(String dtmfString, int on, int off, Message onComplete) { in sendBurstDtmf() argument
1874 mCi.sendBurstDtmf(dtmfString, on, off, onComplete); in sendBurstDtmf()
2350 public boolean setLine1Number(String alphaTag, String number, Message onComplete) { in setLine1Number() argument
2354 r.setMsisdnNumber(alphaTag, number, onComplete); in setLine1Number()
[all …]
DPhoneInternalInterface.java717 boolean setLine1Number(String alphaTag, String number, Message onComplete); in setLine1Number() argument
750 Message onComplete); in setVoiceMailNumber() argument
764 Message onComplete); in getCallForwardingOption() argument
780 Message onComplete); in getCallForwardingOption() argument
801 Message onComplete); in setCallForwardingOption() argument
825 Message onComplete); in setCallForwardingOption() argument
838 Message onComplete, in getCallBarring() argument
853 Message onComplete, in setCallBarring() argument
864 void getOutgoingCallerIdDisplay(Message onComplete); in getOutgoingCallerIdDisplay() argument
876 Message onComplete); in setOutgoingCallerIdDisplay() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccCardController.java307 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()
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()
408 callback.onComplete(EuiccCardManager.RESULT_CALLER_NOT_ALLOWED, null); in getEnabledProfile()
431 callback.onComplete(EuiccCardManager.RESULT_EUICC_NOT_FOUND, null); in getEnabledProfile()
[all …]
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccCardManager.java162 void onComplete(int resultCode, T result); in onComplete() method
196 public void onComplete(int resultCode, EuiccProfileInfo[] profiles) { in requestAllProfiles() method
199 executor.execute(() -> callback.onComplete(resultCode, profiles)); in requestAllProfiles()
228 public void onComplete(int resultCode, EuiccProfileInfo profile) { in requestProfile() method
231 executor.execute(() -> callback.onComplete(resultCode, profile)); in requestProfile()
265 public void onComplete(int resultCode, EuiccProfileInfo profile) { in requestEnabledProfileForPort() method
268 executor.execute(() -> callback.onComplete(resultCode, profile)); in requestEnabledProfileForPort()
298 public void onComplete(int resultCode) { in disableProfile() method
301 executor.execute(() -> callback.onComplete(resultCode, null)); in disableProfile()
336 public void onComplete(int resultCode, EuiccProfileInfo profile) { in switchToProfile() method
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiPlaybackClient.java49 public void onComplete(int result); in onComplete() method
68 public void onComplete(int status); in onComplete() method
130 public void onComplete(int result) { in getCallbackWrapper()
131 callback.onComplete(result); in getCallbackWrapper()
142 public void onComplete(int status) {
143 callback.onComplete(status);
DHdmiSwitchClient.java52 public void onComplete(int result) { in getCallbackWrapper()
119 public void onComplete(int result) {
148 public void onComplete(int result) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java389 public boolean setLine1Number(String alphaTag, String number, Message onComplete) { in setLine1Number() argument
396 Message onComplete) { in setVoiceMailNumber() argument
398 AsyncResult.forMessage(onComplete, null, null); in setVoiceMailNumber()
399 onComplete.sendToTarget(); in setVoiceMailNumber()
403 public void getCallForwardingOption(int commandInterfaceCFReason, Message onComplete) { in getCallForwardingOption() argument
408 Message onComplete) { in getCallForwardingOption() argument
414 int timerSeconds, Message onComplete) { in setCallForwardingOption() argument
420 int timerSeconds, Message onComplete) { in setCallForwardingOption() argument
424 public void getOutgoingCallerIdDisplay(Message onComplete) { in getOutgoingCallerIdDisplay() argument
426 AsyncResult.forMessage(onComplete, null, null); in getOutgoingCallerIdDisplay()
[all …]
DImsPhone.java387 Cf(String cfNumber, boolean isCfu, Message onComplete) { in Cf() argument
390 mOnComplete = onComplete; in Cf()
413 SS(Message onComplete) { in SS() argument
414 mOnComplete = onComplete; in SS()
418 SS(boolean enable, Message onComplete) { in SS() argument
420 mOnComplete = onComplete; in SS()
424 SS(int clirMode, Message onComplete) { in SS() argument
426 mOnComplete = onComplete; in SS()
430 SS(boolean enable, int serviceClass, Message onComplete) { in SS() argument
433 mOnComplete = onComplete; in SS()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DPendingTasksContainer.kt45 val onComplete = completionCallback.getAndSet(null) in registerTask() constant
46 onComplete?.run() in registerTask()
64 fun onTasksComplete(onComplete: Runnable) { in onTasksComplete()
65 completionCallback.set(onComplete) in onTasksComplete()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccProfile.java913 public void supplyPin(String pin, Message onComplete) { in supplyPin() argument
916 mUiccApplication.supplyPin(pin, onComplete); in supplyPin()
917 } else if (onComplete != null) { in supplyPin()
919 AsyncResult.forMessage(onComplete).exception = e; in supplyPin()
920 onComplete.sendToTarget(); in supplyPin()
927 public void supplyPuk(String puk, String newPin, Message onComplete) { in supplyPuk() argument
930 mUiccApplication.supplyPuk(puk, newPin, onComplete); in supplyPuk()
931 } else if (onComplete != null) { in supplyPuk()
933 AsyncResult.forMessage(onComplete).exception = e; in supplyPuk()
934 onComplete.sendToTarget(); in supplyPuk()
[all …]
DUiccCardApplication.java726 public void supplyPin (String pin, Message onComplete) { in supplyPin() argument
729 onComplete)); in supplyPin()
755 public void supplyPuk (String puk, String newPin, Message onComplete) { in supplyPuk() argument
758 mHandler.obtainMessage(EVENT_PIN1_PUK1_DONE, onComplete)); in supplyPuk()
762 public void supplyPin2 (String pin2, Message onComplete) { in supplyPin2() argument
765 mHandler.obtainMessage(EVENT_PIN2_PUK2_DONE, onComplete)); in supplyPin2()
769 public void supplyPuk2 (String puk2, String newPin2, Message onComplete) { in supplyPuk2() argument
772 mHandler.obtainMessage(EVENT_PIN2_PUK2_DONE, onComplete)); in supplyPuk2()
776 public void supplyNetworkDepersonalization (String pin, Message onComplete) { in supplyNetworkDepersonalization() argument
779 mCi.supplyNetworkDepersonalization(pin, onComplete); in supplyNetworkDepersonalization()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/settings/
DControlsSettingsDialogManager.kt158 private fun turnOnSettingSecurely(settings: List<String>, onComplete: () -> Unit) { in turnOnSettingSecurely()
164 onComplete() in turnOnSettingSecurely()
169 /* cancel */ onComplete, in turnOnSettingSecurely()
181 private val onComplete: () -> Unit constant in com.android.systemui.controls.settings.ControlsSettingsDialogManagerImpl.DialogListener
192 turnOnSettingSecurely(settings, onComplete) in onClick()
194 onComplete() in onClick()
209 onComplete() in onCancel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DRadioOnStateListener.java47 void onComplete(RadioOnStateListener listener, boolean isRadioReady); in onComplete() method
250 onComplete(true); in onImsCapabilityChanged()
267 onComplete(true); in onTimeoutCallbackTimeout()
301 onComplete(true); in onServiceStateChanged()
316 onComplete(true); in onRadioOn()
329 onComplete(true); in onSatelliteEnabledChanged()
375 onComplete(true); in onRetryTimeout()
434 onComplete(false); in cleanup()
537 private void onComplete(boolean isRadioReady) { in onComplete() method in RadioOnStateListener
541 tempCallback.onComplete(this, isRadioReady); in onComplete()
/frameworks/base/services/core/java/com/android/server/audio/
DSoundEffectsHelper.java125 /*package*/ void loadSoundEffects(OnEffectsLoadCompleteHandler onComplete) { in loadSoundEffects() argument
126 sendMsg(MSG_LOAD_EFFECTS, 0, 0, onComplete, 0); in loadSoundEffects()
176 private void onLoadSoundEffects(OnEffectsLoadCompleteHandler onComplete) { in onLoadSoundEffects() argument
179 mSoundPoolLoader.addHandler(onComplete); in onLoadSoundEffects()
183 if (onComplete != null) { in onLoadSoundEffects()
184 onComplete.run(true /*success*/); in onLoadSoundEffects()
211 mSoundPoolLoader.addHandler(onComplete); in onLoadSoundEffects()
231 mSoundPoolLoader.onComplete(true /*success*/); in onLoadSoundEffects()
535 onComplete(true); in onLoadComplete()
548 onComplete(false); in onLoadComplete()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DScrollCaptureViewSupport.java239 CancellationSignal signal, Rect requestRect, Consumer<Rect> onComplete) { in onScrollCaptureImageRequest() argument
248 onComplete.accept(new Rect()); in onScrollCaptureImageRequest()
254 (result) -> onScrollResult(result, view, signal, onComplete)); in onScrollCaptureImageRequest()
258 Consumer<Rect> onComplete) { in onScrollResult() argument
266 onComplete.accept(scrollResult.availableArea); in onScrollResult()
276 () -> doCapture(scrollResult, view, viewCaptureArea, onComplete), in onScrollResult()
281 Consumer<Rect> onComplete) { in doCapture() argument
286 onComplete.accept(new Rect(scrollResult.availableArea)); in doCapture()
290 onComplete.accept(new Rect(/* empty */)); in doCapture()
/frameworks/base/telephony/java/android/service/euicc/
DEuiccService.java830 callback.onComplete(result); in downloadSubscription()
943 callback.onComplete(result); in getDownloadableSubscriptionMetadata()
961 callback.onComplete(result); in getDefaultDownloadableSubscriptionList()
977 callback.onComplete(result); in getEuiccProfileInfoList()
1009 callback.onComplete(result); in deleteSubscription()
1032 callback.onComplete(result); in switchToSubscription()
1049 callback.onComplete(result); in updateSubscriptionNickname()
1064 callback.onComplete(result); in eraseSubscriptions()
1080 callback.onComplete(result); in eraseSubscriptionsWithOptions()
1096 callback.onComplete(result); in retainSubscriptionsForFactoryReset()
[all …]
/frameworks/base/core/java/com/android/internal/listeners/
DListenerExecutor.java72 default void onComplete(boolean success) {} in onComplete() method
141 operation.onComplete(success); in executeSafely()
150 operation.onComplete(false); in executeSafely()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DRadioOnStateListenerTest.java137 verify(mCallback).onComplete(eq(mListener), eq(true)); in testPhoneChangeState_OkToCallTrue()
160 verify(mCallback).onComplete(eq(mListener), eq(true)); in testSatelliteChangeState_OkToCallTrue()
182 verify(mCallback, never()).onComplete(any(RadioOnStateListener.class), anyBoolean()); in testPhoneChangeState_NoOkToCall_Timeout()
205 verify(mCallback).onComplete(eq(mListener), eq(false)); in testTimeout_RetryFailure()
225 verify(mCallback).onComplete(eq(mListener), eq(false)); in testTimeout_RetryFailure_ForEmergency()
246 verify(mCallback).onComplete(eq(mListener), eq(false)); in testTimeout_RetryFailure_WithSatellite()
270 verify(mCallback).onComplete(eq(mListener), eq(true)); in testTimeout_OnTimeoutForEmergency()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DDevicePowerStatusActionTest.java143 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_STANDBY); in queryDisplayStatus_sendsRequestAndHandlesResponse()
154 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_UNKNOWN); in queryDisplayStatus_sendsRequest_nack()
181 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_STANDBY); in queryDisplayStatus_sendsRequest_timeout_retriesSuccessfully()
202 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_UNKNOWN); in queryDisplayStatus_sendsRequest_timeout_retriesFailure()
226 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_STANDBY); in queryDisplayStatus_localDevice_2_0_targetDevice_1_4()
250 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_STANDBY); in queryDisplayStatus_localDevice_2_0_targetDevice_2_0()
282 verify(mCallbackMock).onComplete(HdmiControlManager.POWER_STATUS_STANDBY); in queryDisplayStatus_localDevice_2_0_targetDevice_2_0_unknown()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationThreadTest.java140 }).when(mControllerCallbacks).onComplete(anyInt(), anyLong()); in setUp()
173 verify(mControllerCallbacks, never()).onComplete(anyInt(), eq(vibrationId)); in vibrate_noVibrator_ignoresVibration()
186 verify(mControllerCallbacks, never()).onComplete(anyInt(), eq(vibrationId)); in vibrate_missingVibrators_ignoresVibration()
200 verify(mControllerCallbacks).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude()
217 verify(mControllerCallbacks).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude()
237 verify(mControllerCallbacks).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes()
613 verify(mControllerCallbacks).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_singleVibratorPrebaked_runsVibration()
634 verify(mControllerCallbacks).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback()
651 verify(mControllerCallbacks, never()).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_singleVibratorPrebakedAndUnsupportedEffect_ignoresVibration()
672 verify(mControllerCallbacks).onComplete(eq(VIBRATOR_ID), eq(vibrationId)); in vibrate_singleVibratorComposed_runsVibration()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStatePolicyImpl.java46 public void configureDeviceForState(int state, @NonNull Runnable onComplete) { in configureDeviceForState() argument
47 onComplete.run(); in configureDeviceForState()
/frameworks/base/telephony/java/android/telephony/ims/
DRcsUceAdapter.java491 default void onComplete() {} in onComplete() method
521 default void onComplete(@Nullable SipDetails details) { in onComplete() method
522 onComplete(); in onComplete()
629 public void onComplete(@Nullable SipDetails details) { in requestCapabilities()
632 executor.execute(() -> c.onComplete(details)); in requestCapabilities()
728 public void onComplete(@Nullable SipDetails details) { in requestAvailability()
731 executor.execute(() -> c.onComplete(details)); in requestAvailability()
/frameworks/base/core/java/android/hardware/location/
DContextHubTransaction.java177 void onComplete( in onComplete() method
320 mExecutor.execute(() -> mListener.onComplete(this, mResponse)); in setOnCompleteListener()
369 mExecutor.execute(() -> mListener.onComplete(this, mResponse)); in setResponse()

1234567