/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteSession.java | 280 * @param transactionListener The transaction listener, or null if none. 413 final SQLiteTransactionListener listener = top.mListener; 414 if (listener != null) { 417 listener.onCommit(); // might throw 419 listener.onRollback(); // might throw 535 final SQLiteTransactionListener listener = mTransactionStack.mListener; 547 beginTransactionUnchecked(transactionMode, listener, connectionFlags, 935 private Transaction obtainTransaction(int mode, SQLiteTransactionListener listener) { argument 946 transaction.mListener = listener;
|
/frameworks/base/core/java/android/hardware/ |
H A D | LegacySensorManager.java | 89 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument 90 if (listener == null) { 95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; 97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; 99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; 108 SensorListener listener, int sensors, int rate) { 115 // We do all of this work holding the legacy listener lock to ensure 121 // to wrap this listener an 107 registerLegacyListener(int legacyType, int type, SensorListener listener, int sensors, int rate) argument 144 unregisterListener(SensorListener listener, int sensors) argument 160 unregisterLegacyListener(int legacyType, int type, SensorListener listener, int sensors) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraCaptureSession.java | 47 * send the ready-to-use CameraCaptureSession to the provided listener's 256 * @param listener The callback object to notify once this request has been 259 * @param handler the handler on which the listener should be invoked, or 280 * handler is null, the listener is not null, and the calling 290 @Nullable CaptureCallback listener, @Nullable Handler handler) 318 * @param listener The callback object to notify each time one of the 322 * @param handler the handler on which the listener should be invoked, or 344 * listener is not null, and the calling thread has no looper. 352 @Nullable CaptureCallback listener, @Nullable Handler handler) 389 * @param listener Th 289 capture(@onNull CaptureRequest request, @Nullable CaptureCallback listener, @Nullable Handler handler) argument 351 captureBurst(@onNull List<CaptureRequest> requests, @Nullable CaptureCallback listener, @Nullable Handler handler) argument 418 setRepeatingRequest(@onNull CaptureRequest request, @Nullable CaptureCallback listener, @Nullable Handler handler) argument 490 setRepeatingBurst(@onNull List<CaptureRequest> requests, @Nullable CaptureCallback listener, @Nullable Handler handler) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraConstrainedHighSpeedCaptureSessionImpl.java | 182 public int capture(CaptureRequest request, CaptureCallback listener, Handler handler) argument 189 public int captureBurst(List<CaptureRequest> requests, CaptureCallback listener, argument 196 return mSessionImpl.captureBurst(requests, listener, handler); 200 public int setRepeatingRequest(CaptureRequest request, CaptureCallback listener, argument 207 public int setRepeatingBurst(List<CaptureRequest> requests, CaptureCallback listener, argument 214 return mSessionImpl.setRepeatingBurst(requests, listener, handler);
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | CameraDeviceState.java | 221 * Set the listener for state transition callbacks. 224 * @param listener the {@link CameraDeviceStateListener} callbacks to call. 227 CameraDeviceStateListener listener) { 229 mCurrentListener = listener; 226 setCameraDeviceCallbacks(Handler handler, CameraDeviceStateListener listener) argument
|
/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayManager.java | 338 * Registers an display listener to receive notifications about when 341 * @param listener The listener to register. 342 * @param handler The handler on which the listener should be invoked, or null 343 * if the listener should be invoked on the calling thread's looper. 347 public void registerDisplayListener(DisplayListener listener, Handler handler) { argument 348 mGlobal.registerDisplayListener(listener, handler); 352 * Unregisters a display listener. 354 * @param listener The listener t 358 unregisterDisplayListener(DisplayListener listener) argument [all...] |
H A D | DisplayManagerInternal.java | 71 * Registers a display transaction listener to provide the client a chance to 74 * @param listener The listener to register. 76 public abstract void registerDisplayTransactionListener(DisplayTransactionListener listener); argument 79 * Unregisters a display transaction listener to provide the client a chance to 82 * @param listener The listener to unregister. 84 public abstract void unregisterDisplayTransactionListener(DisplayTransactionListener listener); argument
|
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiTvClient.java | 131 * Sets the listener used to get informed of the input change event. 133 * @param listener listener object 135 public void setInputChangeListener(InputChangeListener listener) { argument 136 if (listener == null) { 137 throw new IllegalArgumentException("listener must not be null."); 140 mService.setInputChangeListener(getListenerWrapper(listener)); 146 private static IHdmiInputChangeListener getListenerWrapper(final InputChangeListener listener) { argument 150 listener.onChanged(info); 214 * Sets record listener 218 setRecordListener(@onNull HdmiRecordListener listener) argument 392 setHdmiMhlVendorCommandListener(HdmiMhlVendorCommandListener listener) argument 403 getListenerWrapper( final HdmiMhlVendorCommandListener listener) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkPolicyManager.java | 182 public void registerListener(INetworkPolicyListener listener) { argument 184 mService.registerListener(listener); 190 public void unregisterListener(INetworkPolicyListener listener) { argument 192 mService.unregisterListener(listener);
|
/frameworks/base/core/java/android/os/ |
H A D | CommonClock.java | 238 * client application can implement this interface and register the listener with the 254 * <p>Call this method with a null listener to stop receiving server death notifications. 256 public void setTimelineChangedListener(OnTimelineChangedListener listener) { argument 258 mTimelineChangedListener = listener; 267 * the listener with the {@link #setServerDiedListener(OnServerDiedListener)} method. 282 * <p>Call this method with a null listener to stop receiving server death notifications. 284 public void setServerDiedListener(OnServerDiedListener listener) { argument 286 mServerDiedListener = listener;
|
H A D | PowerManagerInternal.java | 149 public abstract void registerLowPowerModeObserver(LowPowerModeListener listener); argument
|
H A D | RecoverySystem.java | 160 * @param listener an object to receive periodic progress 173 ProgressListener listener, 181 if (listener != null) { 182 listener.onProgress(0); 251 final ProgressListener listenerForInner = listener; 298 if (listener != null) { 299 listener.onProgress(100); 320 * @param listener an object to receive periodic progress updates as 332 final ProgressListener listener, 342 if (listener ! 172 verifyPackage(File packageFile, ProgressListener listener, File deviceCertsZipFile) argument 330 processPackage(Context context, File packageFile, final ProgressListener listener, final Handler handler) argument 390 processPackage(Context context, File packageFile, final ProgressListener listener) argument 845 uncrypt(String packageFile, IRecoverySystemProgressListener listener) argument [all...] |
/frameworks/base/core/java/android/print/ |
H A D | PrinterDiscoverySession.java | 168 public final void setOnPrintersChangeListener(OnPrintersChangeListener listener) { argument 170 mListener = listener;
|
/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 242 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, argument 244 mListener = listener; 316 String locale, ISpellCheckerSessionListener listener, Bundle bundle) { 321 new InternalISpellCheckerSession(locale, listener, bundle, session); 315 getISpellCheckerSession( String locale, ISpellCheckerSessionListener listener, Bundle bundle) argument
|
/frameworks/base/core/java/android/speech/ |
H A D | RecognitionService.java | 97 private void dispatchStartListening(Intent intent, final IRecognitionListener listener, argument 100 if (DBG) Log.d(TAG, "created new mCurrentCallback, listener = " + listener.asBinder()); 102 listener.asBinder().linkToDeath(new IBinder.DeathRecipient() { 105 mHandler.sendMessage(mHandler.obtainMessage(MSG_CANCEL, listener)); 109 Log.e(TAG, "dead listener on startListening"); 112 mCurrentCallback = new Callback(listener, callingUid); 116 listener.onError(SpeechRecognizer.ERROR_RECOGNIZER_BUSY); 124 private void dispatchStopListening(IRecognitionListener listener) { argument 127 listener 140 dispatchCancel(IRecognitionListener listener) argument 162 StartListeningArgs(Intent intent, IRecognitionListener listener, int callingUid) argument 175 checkPermissions(IRecognitionListener listener) argument 198 onStartListening(Intent recognizerIntent, Callback listener) argument 203 onCancel(Callback listener) argument 210 onStopListening(Callback listener) argument 236 Callback(IRecognitionListener listener, int callingUid) argument 342 startListening(Intent recognizerIntent, IRecognitionListener listener) argument 353 stopListening(IRecognitionListener listener) argument 363 cancel(IRecognitionListener listener) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 45 * The listener for receiving notifications when gestures occur. 172 * Creates a ScaleGestureDetector with the supplied listener. 176 * @param listener the listener invoked for all the callbacks, this must 179 * @throws NullPointerException if {@code listener} is null. 181 public ScaleGestureDetector(Context context, OnScaleGestureListener listener) { argument 182 this(context, listener, null); 186 * Creates a ScaleGestureDetector with the supplied listener. 190 * @param listener the listener invoke 196 ScaleGestureDetector(Context context, OnScaleGestureListener listener, Handler handler) argument [all...] |
H A D | WindowManagerInternal.java | 91 * as an abstract class so a listener only needs to implement the methods of its interest. 245 * Registers a listener to be notified about app transition events. 247 * @param listener The listener to register. 249 public abstract void registerAppTransitionListener(AppTransitionListener listener); argument 276 * Sets the callback listener for hardware keyboard status changes. 278 * @param listener The listener to set. 281 OnHardKeyboardStatusChangeListener listener); 280 setOnHardKeyboardStatusChangeListener( OnHardKeyboardStatusChangeListener listener) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 191 * Sets the listener to be called when the chronometer changes. 193 * @param listener The listener. 195 public void setOnChronometerTickListener(OnChronometerTickListener listener) { argument 196 mOnChronometerTickListener = listener; 200 * @return The listener (may be null) that is listening for chronometer change
|
H A D | DayPickerPagerAdapter.java | 140 * Sets the listener to call when the user selects a day. 142 * @param listener The listener to call. 144 public void setOnDaySelectedListener(OnDaySelectedListener listener) { argument 145 mOnDaySelectedListener = listener;
|
H A D | RadioGroup.java | 105 public void setOnHierarchyChangeListener(OnHierarchyChangeListener listener) { argument 106 // the user listener is delegated to our pass-through listener 107 mPassThroughListener.mOnHierarchyChangeListener = listener; 216 * @param listener the callback to call on checked state change 218 public void setOnCheckedChangeListener(OnCheckedChangeListener listener) { argument 219 mOnCheckedChangeListener = listener; 356 * <p>A pass-through listener acts upon the events and dispatches them 357 * to another listener. This allows the table layout to set its own internal 358 * hierarchy change listener withou [all...] |
H A D | RatingBar.java | 126 * Sets the listener to be called when the rating changes. 128 * @param listener The listener. 130 public void setOnRatingBarChangeListener(OnRatingBarChangeListener listener) { argument 131 mOnRatingBarChangeListener = listener; 135 * @return The listener (may be null) that is listening for rating change
|
H A D | YearPickerView.java | 75 public void setOnYearSelectedListener(OnYearSelectedListener listener) { argument 76 mOnYearSelectedListener = listener; 253 * @param view The view associated with this listener.
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocalePicker.java | 231 public void setLocaleSelectionListener(LocaleSelectionListener listener) { argument 232 mListener = listener; 242 * Each listener needs to call {@link #updateLocale(Locale)} to actually change the locale.
|
H A D | LocalePickerWithRegion.java | 75 LocaleSelectedListener listener, LocaleStore.LocaleInfo parent, 78 boolean shouldShowTheList = localePicker.setListener(context, listener, parent, 84 LocaleSelectedListener listener, boolean translatedOnly) { 86 localePicker.setListener(context, listener, /* parent */ null, translatedOnly); 91 * Sets the listener and initializes the locale list. 100 * In this case we don't even show the list, we call the listener with that locale, 103 private boolean setListener(Context context, LocaleSelectedListener listener, argument 106 this.mListener = listener; 121 if (listener != null && (mLocaleList.size() == 1)) { 122 listener 74 createCountryPicker(Context context, LocaleSelectedListener listener, LocaleStore.LocaleInfo parent, boolean translatedOnly) argument 83 createLanguagePicker(Context context, LocaleSelectedListener listener, boolean translatedOnly) argument [all...] |
H A D | MediaRouteChooserDialog.java | 98 public void setExtendedSettingsClickListener(View.OnClickListener listener) { argument 99 if (listener != mExtendedSettingsClickListener) { 100 mExtendedSettingsClickListener = listener;
|