Searched defs:callback (Results 126 - 150 of 194) sorted by relevance

12345678

/frameworks/base/services/java/com/android/server/content/
H A DContentService.java707 public void addStatusChangeListener(int mask, ISyncStatusObserver callback) { argument
711 if (syncManager != null && callback != null) {
712 syncManager.getSyncStorageEngine().addStatusChangeListener(mask, callback);
719 public void removeStatusChangeListener(ISyncStatusObserver callback) { argument
723 if (syncManager != null && callback != null) {
724 syncManager.getSyncStorageEngine().removeStatusChangeListener(callback);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarActivityDelegateBase.java363 public ActionMode startSupportActionMode(ActionMode.Callback callback) { argument
364 if (callback == null) {
365 throw new IllegalArgumentException("ActionMode callback can not be null.");
372 final ActionMode.Callback wrappedCallback = new ActionModeCallbackWrapper(callback);
H A DActionBarImplICS.java40 public ActionBarImplICS(Activity activity, Callback callback) { argument
41 this(activity, callback, true);
44 ActionBarImplICS(Activity activity, Callback callback, boolean checkHomeAsUpOption) { argument
46 mCallback = callback;
112 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument
114 callback != null ? new OnNavigationListenerWrapper(callback) : null);
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
H A DMediaRouterJellybean.java106 public static Object createCallback(Callback callback) { argument
107 return new CallbackProxy<Callback>(callback);
110 public static Object createVolumeCallback(VolumeCallback callback) { argument
111 return new VolumeCallbackProxy<VolumeCallback>(callback);
367 public CallbackProxy(T callback) { argument
368 mCallback = callback;
426 public VolumeCallbackProxy(T callback) { argument
427 mCallback = callback;
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRegisteredMediaRouteProvider.java371 public boolean onControlRequest(Intent intent, ControlRequestCallback callback) { argument
373 return mConnection.sendControlRequest(mControllerId, intent, callback);
441 ControlRequestCallback callback = mPendingCallbacks.get(requestId);
442 if (callback != null) {
444 callback.onError(null, null);
478 ControlRequestCallback callback = mPendingCallbacks.get(requestId);
479 if (callback != null) {
481 callback.onResult(data);
488 ControlRequestCallback callback = mPendingCallbacks.get(requestId);
489 if (callback !
545 sendControlRequest(int controllerId, Intent intent, ControlRequestCallback callback) argument
[all...]
H A DRemotePlaybackClient.java203 * Sets a callback that should receive status updates when the state of
207 * The callback should be set before the session is created or any play
211 * @param callback The callback to set. May be null to remove the previous callback.
213 public void setStatusCallback(StatusCallback callback) { argument
214 mStatusCallback = callback;
237 * @param callback A callback to invoke when the request has been
246 long positionMillis, Bundle extras, ItemActionCallback callback) {
245 play(Uri contentUri, String mimeType, Bundle metadata, long positionMillis, Bundle extras, ItemActionCallback callback) argument
280 enqueue(Uri contentUri, String mimeType, Bundle metadata, long positionMillis, Bundle extras, ItemActionCallback callback) argument
286 playOrEnqueue(Uri contentUri, String mimeType, Bundle metadata, long positionMillis, Bundle extras, final ItemActionCallback callback, String action) argument
335 seek(String itemId, long positionMillis, Bundle extras, ItemActionCallback callback) argument
367 getStatus(String itemId, Bundle extras, ItemActionCallback callback) argument
399 remove(String itemId, Bundle extras, ItemActionCallback callback) argument
430 pause(Bundle extras, SessionActionCallback callback) argument
457 resume(Bundle extras, SessionActionCallback callback) argument
484 stop(Bundle extras, SessionActionCallback callback) argument
513 startSession(Bundle extras, SessionActionCallback callback) argument
543 getSessionStatus(Bundle extras, SessionActionCallback callback) argument
574 endSession(Bundle extras, SessionActionCallback callback) argument
582 performItemAction(final Intent intent, final String sessionId, final String itemId, Bundle extras, final ItemActionCallback callback) argument
633 performSessionAction(final Intent intent, final String sessionId, Bundle extras, final SessionActionCallback callback) argument
686 handleInvalidResult(Intent intent, ActionCallback callback, Bundle data) argument
693 handleError(Intent intent, ActionCallback callback, String error, Bundle data) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c82 // This callback is called each time a buffer finishes playing
84 static void callback(SLBufferQueueItf bufq, void *param) function
454 // register a callback on the buffer queue
455 result = (*playerBufferQueue)->RegisterCallback(playerBufferQueue, callback, NULL);
H A Dplaybq.cpp82 // This callback is called each time a buffer finishes playing
84 static void callback(SLBufferQueueItf bufq, void *param) function
454 // register a callback on the buffer queue
455 result = (*playerBufferQueue)->RegisterCallback(playerBufferQueue, callback, NULL);
/frameworks/base/core/java/android/accounts/
H A DAccountManager.java128 * run asynchronously. If a callback is provided then
133 * to the callback). This method waits for the operation to complete (if
137 * future from the method; no callback need be supplied.
478 * @param callback callback to invoke when the result is available. may be null.
479 * @param handler the handler on which to invoke the callback, or null for the main thread
485 AccountManagerCallback<String> callback, Handler handler) {
488 return new Future2Task<String>(handler, callback) {
519 * @param callback Callback to invoke when the request completes,
520 * null for no callback
483 getAuthTokenLabel( final String accountType, final String authTokenType, AccountManagerCallback<String> callback, Handler handler) argument
526 hasFeatures(final Account account, final String[] features, AccountManagerCallback<Boolean> callback, Handler handler) argument
571 getAccountsByTypeAndFeatures( final String type, final String[] features, AccountManagerCallback<Account[]> callback, Handler handler) argument
640 removeAccount(final Account account, AccountManagerCallback<Boolean> callback, Handler handler) argument
911 getAuthToken( final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
1001 getAuthToken( final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1079 getAuthToken( final Account account, final String authTokenType, final Bundle options, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1147 addAccount(final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle addAccountOptions, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
1271 confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1285 confirmCredentialsAsUser(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler, UserHandle userHandle) argument
1347 updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1398 editProperties(final String accountType, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1422 postToHandler(Handler handler, final AccountManagerCallback<Bundle> callback, final AccountManagerFuture<Bundle> future) argument
1457 AmsTask(Activity activity, Handler handler, AccountManagerCallback<Bundle> callback) argument
1639 Future2Task(Handler handler, AccountManagerCallback<T> callback) argument
1731 GetAuthTokenByTypeAndFeaturesTask(final String accountType, final String authTokenType, final String[] features, Activity activityForPrompting, final Bundle addAccountOptions, final Bundle loginOptions, AccountManagerCallback<Bundle> callback, Handler handler) argument
1926 getAuthTokenByFeatures( final String accountType, final String authTokenType, final String[] features, final Activity activity, final Bundle addAccountOptions, final Bundle getAuthTokenOptions, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActionBar.java254 * Set the adapter and navigation callback for list navigation mode.
265 * @param callback An OnNavigationListener that will receive events when the user
269 OnNavigationListener callback);
268 setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) argument
H A DAppOpsManager.java795 * @param callback Where to report changes.
798 final OnOpChangedListener callback) {
799 startWatchingMode(strOpToOp(op), packageName, callback);
806 * @param callback Where to report changes.
809 public void startWatchingMode(int op, String packageName, final OnOpChangedListener callback) { argument
811 IAppOpsCallback cb = mModeWatchers.get(callback);
815 if (callback instanceof OnOpChangedInternalListener) {
816 ((OnOpChangedInternalListener)callback).onOpChanged(op, packageName);
819 callback.onOpChanged(sOpToString[op], packageName);
823 mModeWatchers.put(callback, c
797 startWatchingMode(String op, String packageName, final OnOpChangedListener callback) argument
836 stopWatchingMode(OnOpChangedListener callback) argument
[all...]
H A DDialog.java969 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { argument
971 return mActionBar.startActionMode(callback);
1221 * Sets the callback that will be called if a key is dispatched to the dialog.
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAdapter.java65 * Bluetooth LE devices with {@link #startLeScan(LeScanCallback callback)}.
162 * {@link android.app.Activity#onActivityResult} callback. The
191 * {@link android.app.Activity#onActivityResult} callback. The
1321 * <p> If this API returns true, it means the callback will be called.
1322 * The callback will be called with the current state of Bluetooth.
1325 * it on, the api will return true and a callback will be called.
1330 * @param callback The callback to notify changes to the state.
1334 BluetoothStateChangeCallback callback) {
1335 if (callback
1333 changeApplicationBluetoothState(boolean on, BluetoothStateChangeCallback callback) argument
1361 StateChangeCallbackWrapper(BluetoothStateChangeCallback callback) argument
1473 startLeScan(LeScanCallback callback) argument
1490 startLeScan(UUID[] serviceUuids, LeScanCallback callback) argument
1533 stopLeScan(LeScanCallback callback) argument
[all...]
H A DBluetoothDevice.java1204 * The callback is used to deliver results to Caller, such as connection status as well
1208 * @param callback GATT callback handler that will receive asynchronous callbacks.
1212 * @throws IllegalArgumentException if callback is null
1215 BluetoothGattCallback callback) {
1227 gatt.connect(autoConnect, callback);
1214 connectGatt(Context context, boolean autoConnect, BluetoothGattCallback callback) argument
/frameworks/base/core/java/android/content/
H A DContentResolver.java2133 * @param mask the status change types that will cause the callback to be invoked
2134 * @param callback observer to be invoked when the status changes
2137 public static Object addStatusChangeListener(int mask, final SyncStatusObserver callback) { argument
2138 if (callback == null) {
2139 throw new IllegalArgumentException("you passed in a null callback");
2144 callback.onStatusChanged(which);
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabase.java831 * Registers a CustomFunction callback as a function that can be called from
836 * @param function callback to call when the function is executed
1813 * or in the {@link SQLiteOpenHelper#onConfigure} callback.
2185 * A callback interface for a custom sqlite3 function.
2191 public void callback(String[] args); method in interface:SQLiteDatabase.CustomFunction
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java63 * return synthesized data via the supplied callback. This class and its helpers
67 * must be synchronous which means the engine must NOT hold on the callback or call
200 * @param callback The callback the the engine must use to make data available for
204 SynthesisCallback callback);
627 // If the synthesis callback is null, it implies that we haven't
927 // Note that passing in a null callback is a valid use case.
999 public void onCallbackDied(ITextToSpeechCallback callback, Object cookie) { argument
203 onSynthesizeText(SynthesisRequest request, SynthesisCallback callback) argument
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuItemImpl.java223 public MenuItem setCallback(Runnable callback) { argument
224 mItemCallback = callback;
/frameworks/base/graphics/java/android/renderscript/
H A DAllocation.java1856 * @param callback instance of the OnBufferAvailableListener
1859 public void setOnBufferAvailableListener(OnBufferAvailableListener callback) { argument
1862 mBufferNotifier = callback;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardUpdateMonitor.java901 * Remove the given observer's callback.
903 * @param callback The callback to remove
905 public void removeCallback(KeyguardUpdateMonitorCallback callback) { argument
906 if (DEBUG) Log.v(TAG, "*** unregister callback for " + callback);
908 if (mCallbacks.get(i).get() == callback) {
917 * @param callback The callback to register
919 public void registerCallback(KeyguardUpdateMonitorCallback callback) { argument
934 sendUpdates(KeyguardUpdateMonitorCallback callback) argument
[all...]
H A DKeyguardViewMediator.java143 * callback before unblocking a call to {@link #setKeyguardEnabled(boolean)}
261 * The callback used by the keyguard view to tell the {@link KeyguardViewMediator}
577 if (DEBUG) Log.d(TAG, "pending exit secure callback cancelled");
656 public void onScreenTurnedOn(IKeyguardShowCallback callback) { argument
661 if (callback != null) {
662 notifyScreenOnLocked(callback);
766 public void verifyUnlock(IKeyguardExitCallback callback) { argument
773 callback.onKeyguardExitResult(false);
783 callback.onKeyguardExitResult(false);
790 callback
1328 handleNotifyScreenOn(IKeyguardShowCallback callback) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
H A DPrintSpoolerService.java1177 public void getPrintJobInfos(IPrintSpoolerCallbacks callback, argument
1185 callback.onGetPrintJobInfosResult(printJobs, sequence);
1190 public void getPrintJobInfo(PrintJobId printJobId, IPrintSpoolerCallbacks callback, argument
1196 callback.onGetPrintJobInfoResult(printJob, sequence);
1207 IPrintSpoolerCallbacks callback, int sequece) throws RemoteException {
1213 callback.onSetPrintJobStateResult(success, sequece);
1219 IPrintSpoolerCallbacks callback, int sequece) throws RemoteException {
1224 callback.onSetPrintJobTagResult(success, sequece);
1206 setPrintJobState(PrintJobId printJobId, int state, String error, IPrintSpoolerCallbacks callback, int sequece) argument
1218 setPrintJobTag(PrintJobId printJobId, String tag, IPrintSpoolerCallbacks callback, int sequece) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsPanelView.java99 public void setCallback(RecentsCallback callback); argument
/frameworks/base/services/java/com/android/server/
H A DBluetoothManagerService.java309 public IBluetooth registerAdapter(IBluetoothManagerCallback callback){ argument
311 msg.obj = callback;
318 public void unregisterAdapter(IBluetoothManagerCallback callback) { argument
322 msg.obj = callback;
326 public void registerStateChangeCallback(IBluetoothStateChangeCallback callback) { argument
330 msg.obj = callback;
334 public void unregisterStateChangeCallback(IBluetoothStateChangeCallback callback) { argument
338 msg.obj = callback;
455 //Unregister callback object
486 Log.e(TAG, "Unable to call onBluetoothStateChange() on callback #"
[all...]
/frameworks/base/services/java/com/android/server/display/
H A DDisplayManagerService.java147 // All callback records indexed by calling process id.
187 // Temporary callback list, used when sending display events to applications.
436 public void registerCallback(IDisplayManagerCallback callback) { argument
437 if (callback == null) {
448 CallbackRecord record = new CallbackRecord(callingPid, callback);
450 IBinder binder = callback.asBinder();
1245 public CallbackRecord(int pid, IDisplayManagerCallback callback) { argument
1247 mCallback = callback;

Completed in 749 milliseconds

12345678