/frameworks/av/services/camera/libcameraservice/common/ |
H A D | FrameProcessorBase.cpp | 49 int32_t maxId, const wp<FilteredListener>& listener, bool sendPartials) { 55 item->listener == listener) { 63 ALOGV("%s: Registering listener for frame id range %d - %d", 65 RangeListener rListener = { minId, maxId, listener, sendPartials }; 72 const wp<FilteredListener>& listener) { 78 item->listener == listener) { 196 sp<FilteredListener> listener = item->listener variable 48 registerListener(int32_t minId, int32_t maxId, const wp<FilteredListener>& listener, bool sendPartials) argument 70 removeListener(int32_t minId, int32_t maxId, const wp<FilteredListener>& listener) argument [all...] |
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | MtpClient.java | 78 for (Listener listener : mListeners) { 79 listener.deviceAdded(mtpDevice); 85 for (Listener listener : mListeners) { 86 listener.deviceRemoved(mtpDevice); 98 for (Listener listener : mListeners) { 99 listener.deviceAdded(mtpDevice); 200 * @param listener the listener to register 202 public void addListener(Listener listener) { argument 204 if (!mListeners.contains(listener)) { 215 removeListener(Listener listener) argument [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
H A D | FakeSensorManager.java | 49 * listener on the right thread. 104 protected void unregisterListenerImpl(SensorEventListener listener, Sensor sensor) { argument 105 Preconditions.checkNotNull(listener); 108 s.mListeners.remove(listener); 114 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, argument 118 Preconditions.checkNotNull(listener); 121 s.mListeners.add(listener); 129 protected boolean flushImpl(SensorEventListener listener) { argument 162 protected boolean requestTriggerSensorImpl(TriggerEventListener listener, Sensor sensor) { argument 167 protected boolean cancelTriggerSensorImpl(TriggerEventListener listener, Senso argument [all...] |
/frameworks/native/headers/media_plugin/media/drm/ |
H A D | DrmAPI.h | 339 status_t setListener(const sp<DrmPluginListener>& listener) { argument 341 mListener = listener; 384 sp<DrmPluginListener> listener = mListener; local 387 if (listener != NULL) { 388 listener->sendEvent(eventType, extra, sessionId, data); 395 sp<DrmPluginListener> listener = mListener; local 398 if (listener != NULL) { 399 listener->sendExpirationUpdate(sessionId, expiryTimeInMS); 407 sp<DrmPluginListener> listener = mListener; local 410 if (listener ! [all...] |
/frameworks/native/include/media/drm/ |
H A D | DrmAPI.h | 339 status_t setListener(const sp<DrmPluginListener>& listener) { argument 341 mListener = listener; 384 sp<DrmPluginListener> listener = mListener; local 387 if (listener != NULL) { 388 listener->sendEvent(eventType, extra, sessionId, data); 395 sp<DrmPluginListener> listener = mListener; local 398 if (listener != NULL) { 399 listener->sendExpirationUpdate(sessionId, expiryTimeInMS); 407 sp<DrmPluginListener> listener = mListener; local 410 if (listener ! [all...] |
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/ |
H A D | LowpanServiceImpl.java | 112 for (ILowpanManagerListener listener : mListenerSet) { 114 listener.onInterfaceRemoved(lowpanInterface); 116 // Don't let misbehavior of a listener 120 // TODO: Consider removing the listener...? 129 for (ILowpanManagerListener listener : mListenerSet) { 131 listener.onInterfaceAdded(lowpanInterface); 133 // Don't let misbehavior of a listener 137 // TODO: Consider removing the listener...? 252 public void addListener(ILowpanManagerListener listener) { argument 255 if (!mListenerSet.contains(listener)) { 277 removeListener(ILowpanManagerListener listener) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | RotationPolicy.java | 155 * Registers a listener for rotation policy changes affecting the caller's user 158 RotationPolicyListener listener) { 159 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId()); 163 * Registers a listener for rotation policy changes affecting a specific user, 167 RotationPolicyListener listener, int userHandle) { 170 false, listener.mObserver, userHandle); 173 false, listener.mObserver, userHandle); 177 * Unregisters a listener for rotation policy changes. 180 RotationPolicyListener listener) { 181 context.getContentResolver().unregisterContentObserver(listener 157 registerRotationPolicyListener(Context context, RotationPolicyListener listener) argument 166 registerRotationPolicyListener(Context context, RotationPolicyListener listener, int userHandle) argument 179 unregisterRotationPolicyListener(Context context, RotationPolicyListener listener) argument [all...] |
/frameworks/base/telephony/java/android/telephony/ims/ |
H A D | ImsServiceProxyCompat.java | 56 public int startSession(PendingIntent incomingCallIntent, IImsRegistrationListener listener) argument 60 listener); 83 public void addRegistrationListener(IImsRegistrationListener listener) argument 86 getServiceInterface(mBinder).addRegistrationListener(mSlotId, ImsFeature.MMTEL, listener); 90 public void removeRegistrationListener(IImsRegistrationListener listener) argument 92 // Not Implemented in old ImsService. If the registration listener becomes invalid, the 105 IImsCallSessionListener listener) throws RemoteException { 107 return getServiceInterface(mBinder).createCallSession(sessionId, profile, listener); 104 createCallSession(int sessionId, ImsCallProfile profile, IImsCallSessionListener listener) argument
|
/frameworks/base/location/java/android/location/ |
H A D | ILocationManager.aidl | 42 void requestLocationUpdates(in LocationRequest request, in ILocationListener listener, 44 void removeUpdates(in ILocationListener listener, in PendingIntent intent, String packageName); 65 boolean addGnssMeasurementsListener(in IGnssMeasurementsListener listener, in String packageName); 66 void removeGnssMeasurementsListener(in IGnssMeasurementsListener listener); 69 in IGnssNavigationMessageListener listener, 71 void removeGnssNavigationMessageListener(in IGnssNavigationMessageListener listener); 114 void locationCallbackFinished(ILocationListener listener);
|
/frameworks/base/media/java/android/media/session/ |
H A D | MediaSessionManager.java | 108 * your app is an enabled notification listener using the 110 * {@link ComponentName} of your enabled listener. 112 * @param notificationListener The enabled notification listener component. 126 * listener you may only get sessions for the users you are enabled for. 128 * @param notificationListener The enabled notification listener component. 152 * Add a listener to be notified when the list of active sessions 156 * enabled notification listener using the 158 * {@link ComponentName} of your enabled listener. Updates will be posted to 159 * the thread that registered the listener. 161 * @param sessionListener The listener t 239 removeOnActiveSessionsChangedListener( @onNull OnActiveSessionsChangedListener listener) argument 361 setOnVolumeKeyLongPressListener( OnVolumeKeyLongPressListener listener, @Nullable Handler handler) argument 397 setOnMediaKeyListener(OnMediaKeyListener listener, @Nullable Handler handler) argument 539 SessionsChangedWrapper(Context context, OnActiveSessionsChangedListener listener, Handler handler) argument 585 OnVolumeKeyLongPressListenerImpl( OnVolumeKeyLongPressListener listener, Handler handler) argument 611 OnMediaKeyListenerImpl(OnMediaKeyListener listener, Handler handler) argument [all...] |
/frameworks/base/cmds/incidentd/src/ |
H A D | Reporter.cpp | 58 listener(l), 186 if ((*it)->listener != NULL) { 187 (*it)->listener->onReportStarted(); 218 // Notify listener of starting 220 if ((*it)->listener != NULL && (*it)->args.containsSection(id)) { 221 (*it)->listener->onReportSectionStatus(id, 234 // Notify listener of starting 236 if ((*it)->listener != NULL && (*it)->args.containsSection(id)) { 237 (*it)->listener->onReportSectionStatus(id, 252 if ((*it)->listener ! [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 38 void NotifyConfigurationChangedArgs::notify(const sp<InputListenerInterface>& listener) const { 39 listener->notifyConfigurationChanged(this); 62 void NotifyKeyArgs::notify(const sp<InputListenerInterface>& listener) const { 63 listener->notifyKey(this); 99 void NotifyMotionArgs::notify(const sp<InputListenerInterface>& listener) const { 100 listener->notifyMotion(this); 117 void NotifySwitchArgs::notify(const sp<InputListenerInterface>& listener) const { 118 listener->notifySwitch(this); 132 void NotifyDeviceResetArgs::notify(const sp<InputListenerInterface>& listener) const { 133 listener [all...] |
H A D | InputListener.h | 33 virtual void notify(const sp<InputListenerInterface>& listener) const = 0; 49 virtual void notify(const sp<InputListenerInterface>& listener) const; 76 virtual void notify(const sp<InputListenerInterface>& listener) const; 113 virtual void notify(const sp<InputListenerInterface>& listener) const; 133 virtual void notify(const sp<InputListenerInterface>& listener) const; 151 virtual void notify(const sp<InputListenerInterface>& listener) const; 173 * An implementation of the listener interface that queues up and defers dispatch
|
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceManager.java | 744 * Registers a listener. 748 void registerOnActivityResultListener(OnActivityResultListener listener) { argument 754 if (!mActivityResultListeners.contains(listener)) { 755 mActivityResultListeners.add(listener); 761 * Unregisters a listener. 765 void unregisterOnActivityResultListener(OnActivityResultListener listener) { argument 768 mActivityResultListeners.remove(listener); 793 * Registers a listener. 798 public void registerOnActivityStopListener(OnActivityStopListener listener) { argument 804 if (!mActivityStopListeners.contains(listener)) { 816 unregisterOnActivityStopListener(OnActivityStopListener listener) argument 847 registerOnActivityDestroyListener(OnActivityDestroyListener listener) argument 864 unregisterOnActivityDestroyListener(OnActivityDestroyListener listener) argument 965 setOnPreferenceTreeClickListener(OnPreferenceTreeClickListener listener) argument [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkImageReaderPriv.h | 66 media_status_t setImageListener(AImageReader_ImageListener* listener); 67 media_status_t setBufferRemovedListener(AImageReader_BufferRemovedListener* listener); 94 media_status_t setImageListenerLocked(AImageReader_ImageListener* listener); 95 media_status_t setBufferRemovedListenerLocked(AImageReader_BufferRemovedListener* listener); 131 media_status_t setImageListener(AImageReader_ImageListener* listener); 146 media_status_t setBufferRemovedListener(AImageReader_BufferRemovedListener* listener);
|
/frameworks/base/core/java/android/widget/ |
H A D | Filter.java | 92 * <p>Upon completion, the listener is notified.</p> 95 * @param listener a listener notified upon completion of the operation 101 public final void filter(CharSequence constraint, FilterListener listener) { argument 118 args.listener = listener; 273 * to post the results back in the UI and then notifying the listener, 283 if (args.listener != null) { 285 args.listener.onFilterComplete(count); 301 * <p>The listener t 303 FilterListener listener; field in class:Filter.RequestArguments [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ProgressReporter.java | 78 * reported to the given listener. 85 * Add given listener to watch for progress events. The current state will 86 * be immediately dispatched to the given listener. 88 public void addListener(@Nullable IProgressListener listener) { argument 89 if (listener == null) return; 91 mListeners.register(listener); 98 listener.onStarted(mId, null); 99 listener.onProgress(mId, mProgress, mExtras); 105 listener.onFinished(mId, null);
|
/frameworks/base/libs/common_time/ |
H A D | common_clock_service.cpp | 95 const sp<ICommonClockListener>& listener) { 102 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) 107 mListeners.add(listener); 109 return IInterface::asBinder(listener)->linkToDeath(this); 113 const sp<ICommonClockListener>& listener) { 120 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) { 94 registerListener( const sp<ICommonClockListener>& listener) argument 112 unregisterListener( const sp<ICommonClockListener>& listener) argument
|
/frameworks/base/libs/hwui/ |
H A D | PropertyValuesAnimatorSet.cpp | 49 sp<AnimationListener> listener = std::move(mOneShotListener); local 50 // Set the listener to nullptr before the onAnimationFinished callback, rather than after, 56 // 2) It's possible that there are changes to the listener during the callback, therefore 57 // we need to reset the listener before the callback rather than afterwards. 59 listener->onAnimationFinished(animator); 87 void PropertyValuesAnimatorSet::start(AnimationListener* listener) { argument 89 mOneShotListener = listener; 94 void PropertyValuesAnimatorSet::reverse(AnimationListener* listener) { argument 96 mOneShotListener = listener;
|
/frameworks/base/lowpan/tests/src/android/net/lowpan/ |
H A D | LowpanManagerTest.java | 95 // Verify a listener was added 99 listener -> { 100 mManagerListener = listener; 101 return listener instanceof ILowpanManagerListener; 143 // Verify a listener was added 147 listener -> { 148 mManagerListener = listener; 149 return listener instanceof ILowpanManagerListener; 169 // Verify the listener was removed
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | AnimationProps.java | 79 Animator.AnimatorListener listener) { 80 this(0, duration, interpolator, listener); 96 Animator.AnimatorListener listener) { 100 setListener(listener); 204 * Sets an animator listener for this animation. 206 public AnimationProps setListener(Animator.AnimatorListener listener) { argument 207 mListener = listener; 212 * Returns the animator listener for this animation. 78 AnimationProps(int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument 95 AnimationProps(int startDelay, int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | CallbackHandler.java | 63 for (EmergencyListener listener : mEmergencyListeners) { 64 listener.setEmergencyCallsOnly(msg.arg1 != 0); 171 public void setListening(EmergencyListener listener, boolean listening) { argument 172 obtainMessage(MSG_ADD_REMOVE_EMERGENCY, listening ? 1 : 0, 0, listener).sendToTarget(); 175 public void setListening(SignalCallback listener, boolean listening) { argument 176 obtainMessage(MSG_ADD_REMOVE_SIGNAL, listening ? 1 : 0, 0, listener).sendToTarget();
|
/frameworks/base/telephony/java/com/android/ims/ |
H A D | ImsConfig.java | 658 * @param listener, provided to be notified for the feature on/off status. 664 ImsConfigListener listener) throws ImsException { 667 ", listener =" + listener); 670 miConfig.getFeatureValue(feature, network, listener); 683 * @param listener, provided if caller needs to be notified for set result. 689 ImsConfigListener listener) throws ImsException { 692 ", value =" + value + ", listener =" + listener); 695 miConfig.setFeatureValue(feature, network, value, listener); 663 getFeatureValue(int feature, int network, ImsConfigListener listener) argument 688 setFeatureValue(int feature, int network, int value, ImsConfigListener listener) argument [all...] |
/frameworks/base/tests/utils/testutils/java/android/app/test/ |
H A D | TestAlarmManager.java | 140 AlarmManager.OnAlarmListener listener, Handler handler) { 142 new AlarmListenerRunnable(listener, handler))); 147 public void answer(AlarmManager.OnAlarmListener listener) { argument 154 if (alarmCallback.getListener() == listener) { 165 public AlarmListenerRunnable(AlarmManager.OnAlarmListener listener, Handler handler) { argument 166 mListener = listener; 139 answer(int type, long triggerAtMillis, String tag, AlarmManager.OnAlarmListener listener, Handler handler) argument
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
H A D | MethodBaseExpr.java | 62 protected Expr resolveListenersAsMethodReference(ModelClass listener, Expr parent) { argument 65 if (listener == null) { 67 String.format("Could not resolve %s as a listener.", this)); 70 List<ModelMethod> abstractMethods = listener.getAbstractMethods(); 75 " not resolved as a listener", 77 listener.getCanonicalName(), numberOfAbstractMethods)); 91 Expr listenerExpr = getModel().listenerExpr(getTarget(), mName, listener, 112 listener.getCanonicalName(), listenerMethod.getName(), this));
|