Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 1548) sorted by relevance

12345678910>>...62

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pManager.java1309 Object listener = null; in handleMessage() local
1316 listener = getListener(message.arg2); in handleMessage()
1319 listener = removeListener(message.arg2); in handleMessage()
1358 if (listener != null) { in handleMessage()
1359 ((ActionListener) listener).onFailure(message.arg1); in handleMessage()
1390 if (listener != null) { in handleMessage()
1391 ((ActionListener) listener).onSuccess(); in handleMessage()
1396 if (listener != null) { in handleMessage()
1397 ((PeerListListener) listener).onPeersAvailable(peers); in handleMessage()
1402 if (listener != null) { in handleMessage()
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/util/unfold/
DPreemptiveUnfoldTransitionProgressProviderTest.kt47 private val listener: TransitionProgressListener = mock() constant in com.android.quickstep.util.unfold.PreemptiveUnfoldTransitionProgressProviderTest
64 provider.addCallback(listener) in before()
76 verify(listener).onTransitionStarted() in preemptiveStartInitialProgressNull_transitionStarts()
77 verify(listener, never()).onTransitionProgress(anyFloat()) in preemptiveStartInitialProgressNull_transitionStarts()
84 verify(listener).onTransitionStarted() in preemptiveStartWithInitialProgress_startsAnimationAndSendsProgress()
85 verify(listener).onTransitionProgress(0.5f) in preemptiveStartWithInitialProgress_startsAnimationAndSendsProgress()
93 with(inOrder(listener)) { in preemptiveStartAndCancel_finishesAnimation()
94 verify(listener).onTransitionStarted() in preemptiveStartAndCancel_finishesAnimation()
95 verify(listener).onTransitionFinished() in preemptiveStartAndCancel_finishesAnimation()
104 verify(listener).onTransitionStarted() in preemptiveStartAndThenSourceStartsTransition_transitionStarts()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerLifecycleEventFilterTest.java143 for (Listener listener : mListeners) { in testUserLifecycleEventFilter()
144 Log.d(TAG, "registering listener:" + listener.listener + "%s, with filter:" in testUserLifecycleEventFilter()
145 + listener.filter); in testUserLifecycleEventFilter()
146 if (listener.filter == null) { in testUserLifecycleEventFilter()
147 mCarUserManager.addListener(listener.executor, listener.listener); in testUserLifecycleEventFilter()
149 mCarUserManager.addListener(listener.executor, listener.filter, listener.listener); in testUserLifecycleEventFilter()
167 () -> (mListenerForAllEventsOnAnyUser.listener.getAllReceivedEvents().size() >= 4 in testUserLifecycleEventFilter()
168 && mListenerForAllEventsOnCurrentUsers.listener in testUserLifecycleEventFilter()
170 && mListenerForSwitchingEventsOnAnyUser.listener in testUserLifecycleEventFilter()
175 for (Listener listener : mListeners) { in testUserLifecycleEventFilter()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/
DMainFragmentTest.java73 final ConnectivityListener listener = mock(ConnectivityListener.class); in testUpdateConnectivity_NoNetwork() local
74 mMainFragment.mConnectivityListenerOptional = Optional.of(listener); in testUpdateConnectivity_NoNetwork()
76 doReturn(false).when(listener).isEthernetAvailable(); in testUpdateConnectivity_NoNetwork()
77 doReturn(false).when(listener).isCellConnected(); in testUpdateConnectivity_NoNetwork()
78 doReturn(false).when(listener).isEthernetConnected(); in testUpdateConnectivity_NoNetwork()
79 doReturn(false).when(listener).isWifiEnabledOrEnabling(); in testUpdateConnectivity_NoNetwork()
90 final ConnectivityListener listener = mock(ConnectivityListener.class); in testUpdateConnectivity_hasEthernet() local
91 mMainFragment.mConnectivityListenerOptional = Optional.of(listener); in testUpdateConnectivity_hasEthernet()
93 doReturn(true).when(listener).isEthernetAvailable(); in testUpdateConnectivity_hasEthernet()
94 doReturn(false).when(listener).isCellConnected(); in testUpdateConnectivity_hasEthernet()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DIpMemoryStoreService.java169 @Nullable final IOnStatusListener listener) { in storeNetworkAttributes() argument
179 if (null != listener) listener.onComplete(makeStatus(code)); in storeNetworkAttributes()
200 @Nullable final IOnStatusListener listener) { in storeBlob() argument
206 if (null != listener) listener.onComplete(makeStatus(code)); in storeBlob()
267 @Nullable final IOnL2KeyResponseListener listener) { in findL2Key() argument
268 if (null == listener) return; in findL2Key()
272 listener.onL2KeyResponse(makeStatus(ERROR_ILLEGAL_ARGUMENT), null); in findL2Key()
276 listener.onL2KeyResponse(makeStatus(ERROR_ILLEGAL_ARGUMENT), null); in findL2Key()
281 listener.onL2KeyResponse(makeStatus(SUCCESS), key); in findL2Key()
299 @Nullable final IOnSameL3NetworkResponseListener listener) { in isSameNetwork() argument
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DIpMemoryStoreClient.java89 @Nullable final OnStatusListener listener) { in storeNetworkAttributes() argument
93 OnStatusListener.toAIDL(listener)))); in storeNetworkAttributes()
95 if (null == listener) return; in storeNetworkAttributes()
97 () -> listener.onComplete(new Status(Status.ERROR_UNKNOWN))); in storeNetworkAttributes()
114 @Nullable final OnStatusListener listener) { in storeBlob() argument
118 OnStatusListener.toAIDL(listener)))); in storeBlob()
120 if (null == listener) return; in storeBlob()
122 () -> listener.onComplete(new Status(Status.ERROR_UNKNOWN))); in storeBlob()
141 @NonNull final OnL2KeyResponseListener listener) { in findL2Key() argument
145 OnL2KeyResponseListener.toAIDL(listener)))); in findL2Key()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java67 BlockingUserLifecycleListener listener = BlockingUserLifecycleListener.forAnyEvent() in testForAnyEvent_invalidMethods() local
70 assertThrows(IllegalStateException.class, () -> listener.waitForEvents()); in testForAnyEvent_invalidMethods()
71 assertThrows(IllegalStateException.class, () -> listener.getAllReceivedEvents()); in testForAnyEvent_invalidMethods()
76 BlockingUserLifecycleListener listener = BlockingUserLifecycleListener.forAnyEvent() in testForAnyEvent_timesout() local
79 assertThrows(IllegalStateException.class, () -> listener.waitForAnyEvent()); in testForAnyEvent_timesout()
84 BlockingUserLifecycleListener listener = BlockingUserLifecycleListener.forAnyEvent() in testForAnyEvent_ok() local
86 sendAsyncEvents(listener, 10, USER_LIFECYCLE_EVENT_TYPE_UNLOCKED); in testForAnyEvent_ok()
88 UserLifecycleEvent event = listener.waitForAnyEvent(); in testForAnyEvent_ok()
94 BlockingUserLifecycleListener listener = BlockingUserLifecycleListener.forSpecificEvents() in testForSpecificEvents_invalidMethods() local
97 assertThrows(IllegalStateException.class, () -> listener.waitForAnyEvent()); in testForSpecificEvents_invalidMethods()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DAppLifecycleListenerTest.java60 AppLifecycleListener listener = new AppLifecycleListener(111, "package", in testAppLifecycleListener_constructedWithNullFilter() local
63 assertThat(listener.getFilters()).isNull(); in testAppLifecycleListener_constructedWithNullFilter()
68 AppLifecycleListener listener = new AppLifecycleListener(111, "package", in testAppLifecycleListener_constructedWithNonNullFilter() local
71 assertThat(listener.getFilters()).containsExactly(STARTING_EVENT_FILTER); in testAppLifecycleListener_constructedWithNonNullFilter()
76 AppLifecycleListener listener = new AppLifecycleListener(111, "package", in testAddFilter_addNonNullToNonNullList() local
79 listener.addFilter(USER111_FILTER); in testAddFilter_addNonNullToNonNullList()
81 assertThat(listener.getFilters()).containsExactly(STARTING_EVENT_FILTER, USER111_FILTER); in testAddFilter_addNonNullToNonNullList()
86 AppLifecycleListener listener = new AppLifecycleListener(111, "package", in testAddFilter_addNonNullToNullList() local
89 listener.addFilter(USER111_FILTER); in testAddFilter_addNonNullToNullList()
91 assertThat(listener.getFilters()).isNull(); in testAddFilter_addNonNullToNullList()
[all …]
/packages/modules/DnsResolver/
DResolverEventReporter.cpp46 int ResolverEventReporter::addListener(const std::shared_ptr<INetdEventListener>& listener) { in addListener() argument
47 return addListenerImpl(listener); in addListener()
51 const std::shared_ptr<IDnsResolverUnsolicitedEventListener>& listener) { in addUnsolEventListener() argument
52 return addUnsolEventListenerImpl(listener); in addUnsolEventListener()
68 std::shared_ptr<INetdEventListener> listener = INetdEventListener::fromBinder(binder); in addDefaultListener() local
70 if (listener == nullptr) return; in addDefaultListener()
72 if (!addListenerImplLocked(listener)) added = true; in addDefaultListener()
108 int ResolverEventReporter::addListenerImpl(const std::shared_ptr<INetdEventListener>& listener) { in addListenerImpl() argument
110 return addListenerImplLocked(listener); in addListenerImpl()
114 const std::shared_ptr<INetdEventListener>& listener) { in addListenerImplLocked() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManagerImpl.java74 for (SessionListener listener : mTaskListeners) { in notifyTaskQueued()
75 listener.onSessionQueued(uri); in notifyTaskQueued()
92 for (SessionListener listener : mTaskListeners) { in notifyTaskDone()
93 listener.onSessionDone(uri); in notifyTaskDone()
112 for (SessionListener listener : mTaskListeners) { in notifyTaskFailed()
113 listener.onSessionFailed(uri, failureMessageId, removeFromFilmstrip); in notifyTaskFailed()
127 for (SessionListener listener : mTaskListeners) { in notifyTaskCanceled()
128 listener.onSessionCanceled(uri); in notifyTaskCanceled()
146 for (SessionListener listener : mTaskListeners) { in notifyTaskProgress()
147 listener.onSessionProgress(uri, progressPercent); in notifyTaskProgress()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DNsdManager.java341 final DelegatingDiscoveryListener listener = mPerNetworkListeners.get(network);
342 if (listener == null) return;
343 listener.notifyAllServicesLost();
345 stopServiceDiscovery(listener);
377 final DelegatingDiscoveryListener listener = mPerNetworkListeners.valueAt(i); in requestStop() local
378 stopServiceDiscovery(listener); in requestStop()
437 private DelegatingDiscoveryListener(Network network, DiscoveryListener listener, in DelegatingDiscoveryListener() argument
440 mWrapped = listener; in DelegatingDiscoveryListener()
847 final Object listener; in handleMessage() local
851 listener = mListenerMap.get(key); in handleMessage()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImplMonitor.java37 public void registerListener(@NonNull ClientModeImplListener listener) { in registerListener() argument
38 mListeners.add(listener); in registerListener()
42 public void unregisterListener(@NonNull ClientModeImplListener listener) { in unregisterListener() argument
43 mListeners.remove(listener); in unregisterListener()
48 for (ClientModeImplListener listener : mListeners) { in onL2Connected()
49 listener.onL2Connected(clientModeManager); in onL2Connected()
56 for (ClientModeImplListener listener : mListeners) { in onL3Connected()
57 listener.onL3Connected(clientModeManager); in onL3Connected()
63 for (ClientModeImplListener listener : mListeners) { in onInternetValidated()
64 listener.onInternetValidated(clientModeManager); in onInternetValidated()
[all …]
/packages/modules/adb/
Dadb_listeners.cpp96 alistener* listener = reinterpret_cast<alistener*>(_l); in listener_event_func() local
106 s->transport = listener->transport; in listener_event_func()
107 connect_to_remote(s, listener->connect_to); in listener_event_func()
181 auto pred = [](const std::unique_ptr<alistener>& listener) { in close_smartsockets() argument
182 return listener->local_name == "*smartsocket*"; in close_smartsockets()
216 auto listener = std::make_unique<alistener>(local_name, connect_to); in install_listener() local
219 listener->fd = socket_spec_listen(listener->local_name, error, &resolved); in install_listener()
220 if (listener->fd < 0) { in install_listener()
226 listener->local_name = android::base::StringPrintf("tcp:%d", resolved); in install_listener()
232 close_on_exec(listener->fd); in install_listener()
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberAsyncQueryHandler.java91 void hasBlockedNumbers(final OnHasBlockedNumbersListener listener) { in hasBlockedNumbers() argument
93 listener.onHasBlockedNumbers(false); in hasBlockedNumbers()
101 listener.onHasBlockedNumbers(cursor != null && cursor.getCount() > 0); in hasBlockedNumbers()
119 final OnCheckBlockedListener listener, @Nullable final String number, String countryIso) { in isBlockedNumber() argument
121 listener.onCheckComplete(INVALID_ID); in isBlockedNumber()
125 listener.onCheckComplete(null); in isBlockedNumber()
130 if (listener == null) { in isBlockedNumber()
136 listener.onCheckComplete(cachedId); in isBlockedNumber()
144 listener.onCheckComplete(INVALID_ID); in isBlockedNumber()
151 listener.onCheckComplete(INVALID_ID); in isBlockedNumber()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringService.java108 IIntResultListener listener) { in tether() argument
109 if (checkAndNotifyCommonError(callerPkg, callingAttributionTag, listener)) return; in tether()
111 mTethering.tether(iface, IpServer.STATE_TETHERED, listener); in tether()
116 IIntResultListener listener) { in untether() argument
117 if (checkAndNotifyCommonError(callerPkg, callingAttributionTag, listener)) return; in untether()
119 mTethering.untether(iface, listener); in untether()
124 IIntResultListener listener) { in setUsbTethering() argument
125 if (checkAndNotifyCommonError(callerPkg, callingAttributionTag, listener)) return; in setUsbTethering()
127 mTethering.setUsbTethering(enable, listener); in setUsbTethering()
132 String callingAttributionTag, IIntResultListener listener) { in startTethering() argument
[all …]
/packages/services/Car/tools/emulator/
Ddriving_info_generator.py110 def _generateFrame(self, listener): argument
114listener.handle(c.VEHICLEPROPERTY_PERF_VEHICLE_SPEED, 0, self.speedInMps, "PERF_VEHICLE_SPEED")
115 listener.handle(c.VEHICLEPROPERTY_ENGINE_RPM, 0, self.rpm, "ENGINE_RPM")
116 listener.handle(c.VEHICLEPROPERTY_PERF_ODOMETER, 0, self.odometerInKm, "PERF_ODOMETER")
117 listener.handle(c.VEHICLEPROPERTY_CURRENT_GEAR, 0, self.currentGear, "CURRENT_GEAR")
118 listener.handle(c.VEHICLEPROPERTY_OBD2_LIVE_FRAME, 0,
137 def _generateFromGpxFrame(self, gpxFrame, listener): argument
164 self._generateFrame(listener)
180 def _generateInReverseMode(self, duration, listener): argument
182 listener.handle(c.VEHICLEPROPERTY_GEAR_SELECTION, 0, c.VEHICLEGEAR_GEAR_REVERSE,
[all …]
Duser_action_generator.py124 def _adjustContinuousProperty(self, prop, begin, end, listener): argument
140 listener.handle(prop, area, value, propDesc[prop])
143 def _setProperty(self, prop, value, listener): argument
149 listener.handle(prop, area, value, propDesc[prop])
164 def generate(self, listener): argument
170 listener.handle(c.VEHICLEPROPERTY_HVAC_POWER_ON, c.VEHICLEAREASEAT_ROW_1_LEFT,
172 listener.handle(c.VEHICLEPROPERTY_HVAC_POWER_ON, c.VEHICLEAREASEAT_ROW_1_RIGHT,
178 self._setProperty(c.VEHICLEPROPERTY_HVAC_AC_ON, 1, listener)
182 c.VEHICLEHVACFANDIRECTION_FACE, listener)
186 MAX_TEMPERATURE_C, MIN_TEMPERATURE_C, listener)
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java92 DrivingStateListener listener = new DrivingStateListener(); in testDrivingStateChange() local
93 mCarDrivingStateManager.registerListener(listener); in testDrivingStateChange()
94 mCarUxRManager.registerListener(listener); in testDrivingStateChange()
96 listener.reset(); in testDrivingStateChange()
104 drivingEvent = listener.waitForDrivingStateChange(); in testDrivingStateChange()
117 listener.reset(); in testDrivingStateChange()
124 drivingEvent = listener.waitForDrivingStateChange(); in testDrivingStateChange()
129 listener.reset(); in testDrivingStateChange()
136 drivingEvent = listener.waitForDrivingStateChange(); in testDrivingStateChange()
139 restrictions = listener.waitForUxRestrictionsChange(); in testDrivingStateChange()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DBaseDialogFragment.java48 @Nullable Fragment listener, in setListener() argument
52 checkValidity(activity, listener, callbackInterfaceClass); in setListener()
54 if (listener != null && listener.getParentFragment() != null) { in setListener()
58 if (listener != null) { in setListener()
59 arguments.putString(ARG_LISTENER_TAG, listener.getTag()); in setListener()
70 Object listener; in getListener() local
73 listener = getActivity(); in getListener()
75 listener = getActivity().getFragmentManager().findFragmentByTag(listenerTag); in getListener()
77 if (callbackInterfaceClass.isInstance(listener)) { in getListener()
78 return (T) listener; in getListener()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPowerListenerTest.java67 CarAudioPowerListener listener = new CarAudioPowerListener(mMockCarAudioService, null); in startListeningForPolicyChanges_withoutPowerService_doesNothing() local
69 listener.startListeningForPolicyChanges(); in startListeningForPolicyChanges_withoutPowerService_doesNothing()
76 CarAudioPowerListener listener = new CarAudioPowerListener(mMockCarAudioService, in startListeningForPolicyChanges_addsPowerPolicyListener() local
79 listener.startListeningForPolicyChanges(); in startListeningForPolicyChanges_addsPowerPolicyListener()
93 CarAudioPowerListener listener = new CarAudioPowerListener(mMockCarAudioService, in startListeningForPolicyChanges_withNullPolicy_doesNothing() local
96 listener.startListeningForPolicyChanges(); in startListeningForPolicyChanges_withNullPolicy_doesNothing()
104 CarAudioPowerListener listener = new CarAudioPowerListener(mMockCarAudioService, in startListeningForPolicyChanges_withPowerEnabled_enablesAudio() local
107 listener.startListeningForPolicyChanges(); in startListeningForPolicyChanges_withPowerEnabled_enablesAudio()
115 CarAudioPowerListener listener = new CarAudioPowerListener(mMockCarAudioService, in startListeningForPolicyChanges_withPowerDisabled_disablesAudio() local
118 listener.startListeningForPolicyChanges(); in startListeningForPolicyChanges_withPowerDisabled_disablesAudio()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiScanner.java311 ServiceListener(ActionListener listener, Executor executor) { in ServiceListener() argument
312 mActionListener = listener; in ServiceListener()
1283 @NonNull ScanListener listener) { in registerScanListener() argument
1285 Objects.requireNonNull(listener, "listener cannot be null"); in registerScanListener()
1286 ServiceListener serviceListener = new ServiceListener(listener, executor); in registerScanListener()
1287 if (!addListener(listener, serviceListener)) { in registerScanListener()
1291 listener.onFailure(REASON_DUPLICATE_REQEUST, // NOTYPO in registerScanListener()
1300 Log.e(TAG, "Failed to register listener " + listener); in registerScanListener()
1301 removeListener(listener); in registerScanListener()
1312 public void registerScanListener(@NonNull ScanListener listener) { in registerScanListener() argument
[all …]
DIWifiManager.aidl82 oneway void getWifiActivityEnergyInfoAsync(in IOnWifiActivityEnergyInfoListener listener); in getWifiActivityEnergyInfoAsync() argument
86 void getNetworkSelectionConfig(in IWifiNetworkSelectionConfigListener listener); in getNetworkSelectionConfig() argument
138 void queryAutojoinGlobal(in IBooleanListener listener); in queryAutojoinGlobal() argument
152 void getChannelData(in IListListener listener, String packageName, in Bundle extras); in getChannelData() argument
167 in IOnWifiDriverCountryCodeChangedListener listener, String packageName, in registerDriverCountryCodeChangedListener() argument
171 in IOnWifiDriverCountryCodeChangedListener listener); in unregisterDriverCountryCodeChangedListener() argument
173 void addWifiNetworkStateChangedListener(in IWifiNetworkStateChangedListener listener); in addWifiNetworkStateChangedListener() argument
175 void removeWifiNetworkStateChangedListener(in IWifiNetworkStateChangedListener listener); in removeWifiNetworkStateChangedListener() argument
254 void queryLastConfiguredTetheredApPassphraseSinceBoot(IStringListener listener); in queryLastConfiguredTetheredApPassphraseSinceBoot() argument
264 …nableTdlsWithRemoteIpAddress(String remoteIPAddress, boolean enable, in IBooleanListener listener); in enableTdlsWithRemoteIpAddress() argument
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMonitoredActivity.java50 public void addLifeCycleListener(LifeCycleListener listener) { in addLifeCycleListener() argument
51 if (mListeners.contains(listener)) return; in addLifeCycleListener()
52 mListeners.add(listener); in addLifeCycleListener()
55 public void removeLifeCycleListener(LifeCycleListener listener) { in removeLifeCycleListener() argument
56 mListeners.remove(listener); in removeLifeCycleListener()
62 for (LifeCycleListener listener : mListeners) { in onCreate()
63 listener.onActivityCreated(this); in onCreate()
70 for (LifeCycleListener listener : mListeners) { in onDestroy()
71 listener.onActivityDestroyed(this); in onDestroy()
78 for (LifeCycleListener listener : mListeners) { in onStart()
[all …]
/packages/apps/Dialer/java/com/android/dialer/database/
DCallLogQueryHandler.java68 private final WeakReference<Listener> listener; field in CallLogQueryHandler
72 public CallLogQueryHandler(Context context, ContentResolver contentResolver, Listener listener) { in CallLogQueryHandler() argument
73 this(context, contentResolver, listener, -1); in CallLogQueryHandler()
77 Context context, ContentResolver contentResolver, Listener listener, int limit) { in CallLogQueryHandler() argument
80 this.listener = new WeakReference<>(listener); in CallLogQueryHandler()
290 final Listener listener = this.listener.get(); in updateAdapterData() local
291 return listener != null && listener.onCallsFetched(cursor); in updateAdapterData()
307 final Listener listener = this.listener.get(); in updateVoicemailStatus() local
308 if (listener != null) { in updateVoicemailStatus()
309 listener.onVoicemailStatusFetched(statusCursor); in updateVoicemailStatus()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DShutterButton.java71 for (OnShutterButtonListener listener : mListeners) { in onLongPress()
72 listener.onShutterButtonLongPressed(); in onLongPress()
90 public void addOnShutterButtonListener(OnShutterButtonListener listener) { in addOnShutterButtonListener() argument
91 if (!mListeners.contains(listener)) { in addOnShutterButtonListener()
92 mListeners.add(listener); in addOnShutterButtonListener()
99 public void removeOnShutterButtonListener(OnShutterButtonListener listener) { in removeOnShutterButtonListener() argument
100 if (mListeners.contains(listener)) { in removeOnShutterButtonListener()
101 mListeners.remove(listener); in removeOnShutterButtonListener()
178 for (OnShutterButtonListener listener : mListeners) { in callShutterButtonFocus()
179 listener.onShutterButtonFocus(pressed); in callShutterButtonFocus()
[all …]

12345678910>>...62