Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/IM/src/com/android/im/service/
DAndroidHeartBeatService.java73 public synchronized void startHeartbeat(Callback callback, long triggerTime) { in startHeartbeat() argument
74 Alarm alarm = findAlarm(callback); in startHeartbeat()
78 alarm.mCallback = callback; in startHeartbeat()
92 public synchronized void stopHeartbeat(Callback callback) { in stopHeartbeat() argument
93 Alarm alarm = findAlarm(callback); in stopHeartbeat()
126 Callback callback = mAlarm.mCallback; in run() local
127 long nextSchedule = callback.sendHeartbeat(); in run()
139 private Alarm findAlarm(Callback callback) { in findAlarm() argument
142 if (alarm.mCallback == callback) { in findAlarm()
DAndroidSmsService.java75 SmsSendFailureCallback callback) { in sendSms() argument
90 if (callback == null) { in sendSms()
94 mFailureCallbacks.put(msgId, callback); in sendSms()
164 SmsSendFailureCallback callback = mFailureCallbacks.get(id); in onReceive() local
165 if (callback == null) { in onReceive()
171 callback.onFailure(SmsSendFailureCallback.ERROR_GENERIC_FAILURE); in onReceive()
173 callback.onFailure(SmsSendFailureCallback.ERROR_RADIO_OFF); in onReceive()
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DExpandableDictionary.java119 public void getWords(final WordComposer codes, final WordCallback callback) { in getWords() argument
127 getWordsRec(mRoots, codes, mWordBuilder, 0, false, 1, 0, -1, callback); in getWords()
129 getWordsRec(mRoots, codes, mWordBuilder, 0, false, 1, 0, i, callback); in getWords()
192 WordCallback callback) { in getWordsRec() argument
216 if (!callback.addWord(word, 0, depth + 1, freq * snr)) { in getWordsRec()
222 skipPos, callback); in getWordsRec()
229 skipPos, callback); in getWordsRec()
249 callback.addWord(word, 0, depth + 1, finalFreq); in getWordsRec()
255 skipPos, callback); in getWordsRec()
260 skipPos, callback); in getWordsRec()
DBinaryDictionary.java77 public void getWords(final WordComposer codes, final WordCallback callback) { in getWords() argument
78 mWordCallback = callback; in getWords()
118 callback.addWord(mOutputChars, start, len, mFrequencies[j]); in getWords()
DUserDictionary.java97 public synchronized void getWords(final WordComposer codes, final WordCallback callback) { in getWords() argument
99 super.getWords(codes, callback); in getWords()
DContactsDictionary.java87 public synchronized void getWords(final WordComposer codes, final WordCallback callback) { in getWords() argument
94 super.getWords(codes, callback); in getWords()
DDictionary.java60 abstract public void getWords(final WordComposer composer, final WordCallback callback); in getWords() argument
/packages/apps/Camera/src/com/android/camera/
DImageGetter.java102 private Runnable callback(final int position, final int offset, in callback() method in ImageGetter.ImageGetterRunnable
180 Runnable cb = callback(mCurrentPosition, offset,
216 Runnable cb = callback(mCurrentPosition, offset,
299 public void postGetterCallback(Runnable callback) {
300 postDelayedGetterCallback(callback, 0);
303 public void postDelayedGetterCallback(Runnable callback, long delay) {
304 if (callback == null) {
309 message.obj = callback;
DReverseGeocoderTask.java41 Callback callback) { in ReverseGeocoderTask() argument
45 mCallback = callback; in ReverseGeocoderTask()
/packages/apps/Gallery/src/com/android/camera/
DImageGetter.java102 private Runnable callback(final int position, final int offset, in callback() method in ImageGetter.ImageGetterRunnable
180 Runnable cb = callback(mCurrentPosition, offset,
216 Runnable cb = callback(mCurrentPosition, offset,
299 public void postGetterCallback(Runnable callback) {
300 postDelayedGetterCallback(callback, 0);
303 public void postDelayedGetterCallback(Runnable callback, long delay) {
304 if (callback == null) {
309 message.obj = callback;
DReverseGeocoderTask.java41 Callback callback) { in ReverseGeocoderTask() argument
45 mCallback = callback; in ReverseGeocoderTask()
/packages/apps/IM/src/com/android/im/engine/
DHeartbeatService.java38 public void startHeartbeat(Callback callback, long triggerTime); in startHeartbeat() argument
45 public void stopHeartbeat(Callback callback); in stopHeartbeat() argument
DSmsService.java91 SmsSendFailureCallback callback); in sendSms() argument
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothManager.java153 public void registerCallback(Callback callback) { in registerCallback() argument
155 mCallbacks.add(callback); in registerCallback()
159 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
161 mCallbacks.remove(callback); in unregisterCallback()
262 for (Callback callback : mCallbacks) { in dispatchScanningStateChanged()
263 callback.onScanningStateChanged(started); in dispatchScanningStateChanged()
DCachedBluetoothDeviceManager.java153 for (Callback callback : mCallbacks) { in dispatchDeviceAdded()
154 callback.onDeviceAdded(cachedDevice); in dispatchDeviceAdded()
163 for (Callback callback : mCallbacks) { in dispatchDeviceDeleted()
164 callback.onDeviceDeleted(cachedDevice); in dispatchDeviceDeleted()
DCachedBluetoothDevice.java896 public void registerCallback(Callback callback) { in registerCallback() argument
898 mCallbacks.add(callback); in registerCallback()
902 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
904 mCallbacks.remove(callback); in unregisterCallback()
910 for (Callback callback : mCallbacks) { in dispatchAttributesChanged()
911 callback.onDeviceAttributesChanged(this); in dispatchAttributesChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapAuthenticator.java57 public BluetoothPbapAuthenticator(final Handler callback) { in BluetoothPbapAuthenticator() argument
58 mCallback = callback; in BluetoothPbapAuthenticator()
/packages/apps/Launcher2/src/com/android/launcher2/
DSymmetricalLinearTween.java45 public SymmetricalLinearTween(boolean initial, int duration, TweenCallback callback) { in SymmetricalLinearTween() argument
49 mCallback = callback; in SymmetricalLinearTween()
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java274 Message callback = Message.obtain(mHandler, ENABLE_ICC_PIN_COMPLETE); in tryChangeIccLockState() local
275 mPhone.getIccCard().setIccLockEnabled(mToState, mPin, callback); in tryChangeIccLockState()
304 Message callback = Message.obtain(mHandler, CHANGE_ICC_PIN_COMPLETE); in tryChangePin() local
306 mNewPin, callback); in tryChangePin()
/packages/apps/Browser/src/com/android/browser/
DGeolocationPermissionsPrompt.java62 public void show(String origin, GeolocationPermissions.Callback callback) { in show() argument
64 mCallback = callback; in show()
/packages/apps/Phone/src/com/android/phone/
DEnableFdnScreen.java110 Message callback = Message.obtain(mHandler, ENABLE_FDN_COMPLETE); in enableFdn() local
111 mPhone.getIccCard().setIccFdnEnabled(mEnable, getPin2(), callback); in enableFdn()
DEnableIccPinScreen.java104 Message callback = Message.obtain(mHandler, ENABLE_ICC_PIN_COMPLETE); in enableIccPin() local
106 mPhone.getIccCard().setIccLockEnabled(mEnable, getPin(), callback); in enableIccPin()
/packages/apps/Email/src/com/android/email/
DController.java155 public void updateMailboxList(final long accountId, final Result callback) { in updateMailboxList() argument
185 final Result callback) { in serviceCheckMail() argument
193 callback.serviceCheckMailCallback(null, accountId, mailboxId, 100, tag); in serviceCheckMail()
217 public void updateMailbox(final long accountId, final long mailboxId, final Result callback) { in updateMailbox() argument
255 public void loadMessageForView(final long messageId, final Result callback) { in loadMessageForView() argument
424 public void sendPendingMessages(long accountId, Result callback) { in sendPendingMessages() argument
504 public void loadMoreMessages(final long mailboxId, Result callback) { in loadMoreMessages() argument
698 final long accountId, final Result callback) { in loadAttachment() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppRfcommListener.java85 public synchronized boolean start(Handler callback) { in start() argument
87 mCallback = callback; in start()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java668 final Runnable callback) { in handleReadReport() argument
688 if (callback != null) { in handleReadReport()
689 callback.run(); in handleReadReport()
709 if (callback != null) { in handleReadReport()
710 callback.run(); in handleReadReport()
717 if (callback != null) { in handleReadReport()
718 callback.run(); in handleReadReport()
725 if (callback != null) { in handleReadReport()
726 callback.run(); in handleReadReport()

12