Searched defs:listener (Results 1 - 25 of 674) sorted by relevance

1234567891011>>

/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DViewStubBindingAdapter.java32 OnInflateListener listener) {
33 viewStubProxy.setOnInflateListener(listener);
31 setOnInflateListener(ViewStubProxy viewStubProxy, OnInflateListener listener) argument
H A DCompoundButtonBindingAdapter.java45 public static void setListeners(CompoundButton view, final OnCheckedChangeListener listener, argument
48 view.setOnCheckedChangeListener(listener);
53 if (listener != null) {
54 listener.onCheckedChanged(buttonView, isChecked);
H A DListenerUtil.java31 * This method tracks listeners for a View. Only one listener per listenerResourceId
33 * when used with BindingAdapters. This guarantees not to leak the listener or the View,
38 * public static void addFooListener(MyView view, OnFooListener listener) {
39 * OnFooListener oldValue = ListenerUtil.trackListener(view, listener, R.id.fooListener);
43 * if (listener != null) {
44 * view.addOnFooListener(listener);
48 * @param view The View that will have this listener
49 * @param listener The listener to keep track of. May be null if the listener i
55 trackListener(View view, T listener, int listenerResourceId) argument
[all...]
H A DNumberPickerBindingAdapter.java47 public static void setListeners(NumberPicker view, final OnValueChangeListener listener, argument
50 view.setOnValueChangedListener(listener);
55 if (listener != null) {
56 listener.onValueChange(picker, oldVal, newVal);
H A DRadioGroupBindingAdapter.java38 public static void setListeners(RadioGroup view, final OnCheckedChangeListener listener, argument
41 view.setOnCheckedChangeListener(listener);
46 if (listener != null) {
47 listener.onCheckedChanged(group, checkedId);
H A DRatingBarBindingAdapter.java38 public static void setListeners(RatingBar view, final OnRatingBarChangeListener listener, argument
41 view.setOnRatingBarChangeListener(listener);
46 if (listener != null) {
47 listener.onRatingChanged(ratingBar, rating, fromUser);
/frameworks/base/core/java/android/widget/
H A DDatePickerController.java30 void registerOnDateChangedListener(OnDateChangedListener listener); argument
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightManager.java22 void registerListener(TwilightListener listener, Handler handler); argument
23 void unregisterListener(TwilightListener listener); argument
/frameworks/base/tests/Assist/src/com/android/test/assist/
H A DAssistRecognitionService.java28 protected void onStartListening(Intent recognizerIntent, Callback listener) { argument
32 protected void onCancel(Callback listener) { argument
36 protected void onStopListening(Callback listener) { argument
/frameworks/support/v4/kitkat/android/support/v4/view/
H A DViewPropertyAnimatorCompatKK.java24 final ViewPropertyAnimatorUpdateListener listener) {
26 if (listener != null) {
30 listener.onAnimationUpdate(view);
23 setUpdateListener(final View view, final ViewPropertyAnimatorUpdateListener listener) argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DFitWindowsViewGroup.java30 public void setOnFitSystemWindowsListener(OnFitSystemWindowsListener listener); argument
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DTaskSingleDrainer.java40 * Create a new task drainer; {@code onDrained} callbacks will be posted to the listener
44 * @param listener a non-{@code null} listener where {@code onDrained} will be called
46 public TaskSingleDrainer(Handler handler, DrainListener listener) { argument
47 mTaskDrainer = new TaskDrainer<>(handler, listener);
51 * Create a new task drainer; {@code onDrained} callbacks will be posted to the listener
55 * @param listener a non-{@code null} listener where {@code onDrained} will be called
58 public TaskSingleDrainer(Handler handler, DrainListener listener, String name) { argument
59 mTaskDrainer = new TaskDrainer<>(handler, listener, nam
[all...]
/frameworks/base/core/java/android/view/
H A DFrameMetricsObserver.java52 @NonNull Window.OnFrameMetricsAvailableListener listener) {
64 mListener = listener;
51 FrameMetricsObserver(@onNull Window window, @NonNull Looper looper, @NonNull Window.OnFrameMetricsAvailableListener listener) argument
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java71 public void setExtendedSettingsClickListener(View.OnClickListener listener) { argument
72 if (listener != mExtendedSettingsClickListener) {
73 mExtendedSettingsClickListener = listener;
77 dialog.setExtendedSettingsClickListener(listener);
H A DNavItemSelectedListener.java31 public NavItemSelectedListener(ActionBar.OnNavigationListener listener) { argument
32 mListener = listener;
/frameworks/base/media/java/android/media/
H A DAudioRouting.java54 * @param listener The {@link AudioRouting.OnRoutingChangedListener} interface to receive
60 public void addOnRoutingChangedListener(OnRoutingChangedListener listener, argument
66 * @param listener The previously added {@link AudioRouting.OnRoutingChangedListener} interface
69 public void removeOnRoutingChangedListener(OnRoutingChangedListener listener); argument
H A DMediaTimeProvider.java28 * Cancels all previous notification request from this listener if any. It
29 * registers the listener to get seek and stop notifications. If timeUs is
30 * not negative, it also registers the listener for a timed event
38 public void notifyAt(long timeUs, OnMediaTimeListener listener); argument
41 * Cancels all previous notification request from this listener if any. It
42 * registers the listener to get seek and stop notifications. If the media
43 * is stopped, the listener will immediately receive a stop notification.
46 public void scheduleUpdate(OnMediaTimeListener listener); argument
49 * Cancels all previous notification request from this listener if any.
51 public void cancelNotifications(OnMediaTimeListener listener); argument
[all...]
/frameworks/base/media/mca/effect/java/android/media/effect/
H A DEffect.java89 * Set an effect listener.
91 * Some effects may report state changes back to the host, if a listener is set. Consult the
94 * @param listener The listener to receive update callbacks on.
96 public void setUpdateListener(EffectUpdateListener listener) { argument
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
H A DBackDropperEffect.java101 public void setUpdateListener(EffectUpdateListener listener) { argument
102 mEffectListener = listener;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentsToolbar.java61 * Adds a listener that is invoked after collapsing the action view.
62 * @param listener
65 OnActionViewCollapsedListener listener) {
66 mOnActionViewCollapsedListener = listener;
64 setOnActionViewCollapsedListener( OnActionViewCollapsedListener listener) argument
/frameworks/base/services/core/java/com/android/server/location/
H A DCountryDetectorBase.java53 * Register a listener to receive the notification when the country is detected or changed.
55 * The previous listener will be replaced if it exists.
57 public void setCountryListener(CountryListener listener) { argument
58 mListener = listener;
/frameworks/base/services/core/java/com/android/server/wm/
H A DPointerEventDispatcher.java62 * Add the specified listener to the list.
63 * @param listener The listener to add.
65 public void registerInputEventListener(PointerEventListener listener) { argument
67 if (mListeners.contains(listener)) {
69 listener + " twice.");
71 mListeners.add(listener);
77 * Remove the specified listener from the list.
78 * @param listener The listener t
80 unregisterInputEventListener(PointerEventListener listener) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
H A DFrameTargetFilter.java19 * A {@link Filter} that consumes frames and allows to register a listener to observe when
45 public synchronized void setListener(Listener listener) { argument
46 mListener = listener;
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
H A DMusicProviderTask.java36 * listener to be informed when the task is done.
39 * @param listener
42 MusicProviderTaskListener listener) {
44 mMusicProviderTaskListener = listener;
41 MusicProviderTask(MusicProvider musicProvider, MusicProviderTaskListener listener) argument
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DMainRecognitionService.java37 protected void onStartListening(Intent recognizerIntent, Callback listener) { argument
42 protected void onCancel(Callback listener) { argument
47 protected void onStopListening(Callback listener) { argument

Completed in 4352 milliseconds

1234567891011>>