/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreService.java | 169 @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/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/ |
D | MainFragmentTest.java | 75 final ConnectivityListener listener = mock(ConnectivityListener.class); in testUpdateWifi_NoNetwork() local 76 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_NoNetwork() 78 doReturn(false).when(listener).isEthernetAvailable(); in testUpdateWifi_NoNetwork() 79 doReturn(false).when(listener).isCellConnected(); in testUpdateWifi_NoNetwork() 80 doReturn(false).when(listener).isEthernetConnected(); in testUpdateWifi_NoNetwork() 81 doReturn(false).when(listener).isWifiEnabledOrEnabling(); in testUpdateWifi_NoNetwork() 92 final ConnectivityListener listener = mock(ConnectivityListener.class); in testUpdateWifi_hasEthernet() local 93 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_hasEthernet() 95 doReturn(true).when(listener).isEthernetAvailable(); in testUpdateWifi_hasEthernet() 96 doReturn(false).when(listener).isCellConnected(); in testUpdateWifi_hasEthernet() [all …]
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/ |
D | AlertDialogBuilder.java | 181 final DialogInterface.OnClickListener listener) { in setPositiveButton() argument 182 mBuilder.setPositiveButton(textId, listener); in setPositiveButton() 195 final DialogInterface.OnClickListener listener) { in setPositiveButton() argument 196 mBuilder.setPositiveButton(text, listener); in setPositiveButton() 209 final DialogInterface.OnClickListener listener) { in setNegativeButton() argument 210 mBuilder.setNegativeButton(textId, listener); in setNegativeButton() 223 final DialogInterface.OnClickListener listener) { in setNegativeButton() argument 224 mBuilder.setNegativeButton(text, listener); in setNegativeButton() 237 final DialogInterface.OnClickListener listener) { in setNeutralButton() argument 238 mBuilder.setNeutralButton(textId, listener); in setNeutralButton() [all …]
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ |
D | IpMemoryStoreClient.java | 89 @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/apps/Camera2/src/com/android/camera/session/ |
D | CaptureSessionManagerImpl.java | 74 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 …]
|
D | CaptureSessionImpl.java | 156 for (ProgressListener listener : mProgressListeners) { in setProgress() 157 listener.onProgressChanged(percent); in setProgress() 170 for (ProgressListener listener : mProgressListeners) { in setProgressMessage() 171 listener.onStatusMessageChanged(messageId); in setProgressMessage() 199 public synchronized void startEmpty(@Nullable ImageLifecycleListener listener, in startEmpty() argument 205 if (listener != null) { in startEmpty() 206 mImageLifecycleListener = listener; in startEmpty() 219 public synchronized void startSession(@Nullable ImageLifecycleListener listener, in startSession() argument 225 if (listener != null) { in startSession() 226 mImageLifecycleListener = listener; in startSession() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberAsyncQueryHandler.java | 91 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/services/Car/tools/emulator/ |
D | driving_info_generator.py | 110 def _generateFrame(self, listener): argument 114 … listener.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 …]
|
D | user_action_generator.py | 124 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/ |
D | CarDrivingRestrictionsTest.java | 91 DrivingStateListener listener = new DrivingStateListener(); in testDrivingStateChange() local 92 mCarDrivingStateManager.registerListener(listener); in testDrivingStateChange() 93 mCarUxRManager.registerListener(listener); in testDrivingStateChange() 95 listener.reset(); in testDrivingStateChange() 103 drivingEvent = listener.waitForDrivingStateChange(); in testDrivingStateChange() 116 listener.reset(); in testDrivingStateChange() 123 drivingEvent = listener.waitForDrivingStateChange(); in testDrivingStateChange() 128 listener.reset(); in testDrivingStateChange() 135 drivingEvent = listener.waitForDrivingStateChange(); in testDrivingStateChange() 138 restrictions = listener.waitForUxRestrictionsChange(); in testDrivingStateChange() [all …]
|
D | CarDiagnosticManagerTest.java | 284 Listener listener = new Listener(); in testLiveFrameEvent() local 286 listener, in testLiveFrameEvent() 290 listener.reset(); in testLiveFrameEvent() 296 assertTrue(listener.waitForEvent(time)); in testLiveFrameEvent() 298 CarDiagnosticEvent liveFrame = listener.getLastEvent(); in testLiveFrameEvent() 308 Listener listener = new Listener(); in testMissingSensorRead() local 310 listener, in testMissingSensorRead() 315 assertTrue(listener.waitForEvent()); in testMissingSensorRead() 317 CarDiagnosticEvent liveFrame = listener.getLastEvent(); in testMissingSensorRead() 342 Listener listener = new Listener(); in testFuelSystemStatus() local [all …]
|
D | CarSensorManagerTest.java | 147 SensorListener listener = new SensorListener(); in testEvents() local 148 mCarSensorManager.registerListener(listener, in testEvents() 157 listener.waitForSensorChange(); in testEvents() 158 listener.reset(); in testEvents() 166 assertTrue(listener.waitForSensorChange(51L)); in testEvents() 169 assertEquals(listener.getLastEvent().sensorType, CarSensorManager.SENSOR_TYPE_NIGHT); in testEvents() 172 data = listener.getLastEvent().getNightData(data); in testEvents() 183 listener.reset(); in testEvents() 190 assertTrue(listener.waitForSensorChange(1001)); in testEvents() 193 assertEquals(listener.getLastEvent().sensorType, CarSensorManager.SENSOR_TYPE_NIGHT); in testEvents() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/database/ |
D | CallLogQueryHandler.java | 68 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/Gallery2/src/com/android/gallery3d/ui/ |
D | MenuExecutor.java | 101 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor() 102 listener.onProgressStart(); in MenuExecutor() 109 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor() 110 listener.onProgressComplete(message.arg1); in MenuExecutor() 118 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor() 119 listener.onProgressUpdate(message.arg1); in MenuExecutor() 155 private void onProgressUpdate(int index, ProgressListener listener) { in onProgressUpdate() argument 157 mHandler.obtainMessage(MSG_TASK_UPDATE, index, 0, listener)); in onProgressUpdate() 160 private void onProgressStart(ProgressListener listener) { in onProgressStart() argument 161 mHandler.sendMessage(mHandler.obtainMessage(MSG_TASK_START, listener)); in onProgressStart() [all …]
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/ |
D | ToolbarControllerImpl.java | 159 for (Toolbar.OnTabSelectedListener listener : mOnTabSelectedListeners) { in ToolbarControllerImpl() 160 listener.onTabSelected(tab); in ToolbarControllerImpl() 168 for (Toolbar.OnHeightChangedListener listener : mOnHeightChangedListeners) { in ToolbarControllerImpl() 169 listener.onHeightChanged(mBackground.getHeight()); in ToolbarControllerImpl() 535 MenuItem.OnClickListener listener = item.getOnClickListener(); in createOverflowDialog() 536 if (listener != null) { in createOverflowDialog() 537 listener.onClick(item); in createOverflowDialog() 567 for (Toolbar.OnSearchListener listener : mOnSearchListeners) { in setSearchQuery() 568 listener.onSearch(query); in setSearchQuery() 604 for (Toolbar.OnBackListener listener : listenersCopy) { in setState() [all …]
|
D | Toolbar.java | 539 OnHeightChangedListener listener) { in registerToolbarHeightChangeListener() argument 540 mController.registerToolbarHeightChangeListener(listener); in registerToolbarHeightChangeListener() 545 OnHeightChangedListener listener) { in unregisterToolbarHeightChangeListener() argument 546 return mController.unregisterToolbarHeightChangeListener(listener); in unregisterToolbarHeightChangeListener() 550 public void registerOnTabSelectedListener(OnTabSelectedListener listener) { in registerOnTabSelectedListener() argument 551 mController.registerOnTabSelectedListener(listener); in registerOnTabSelectedListener() 555 public boolean unregisterOnTabSelectedListener(OnTabSelectedListener listener) { in unregisterOnTabSelectedListener() argument 556 return mController.unregisterOnTabSelectedListener(listener); in unregisterOnTabSelectedListener() 560 public void registerOnSearchListener(OnSearchListener listener) { in registerOnSearchListener() argument 561 mController.registerOnSearchListener(listener); in registerOnSearchListener() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MonitoredActivity.java | 50 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/incallui/ |
D | InCallPresenter.java | 183 for (InCallDetailsListener listener : detailsListeners) { 184 listener.onDetailsChanged(call, details); 768 for (CanAddCallListener listener : canAddCallListeners) { in onCanAddCallChanged() 769 listener.onCanAddCallChanged(canAddCall); in onCanAddCallChanged() 885 for (InCallStateListener listener : listeners) { in onCallListChange() 888 "Notify " + listener + " of state " + inCallState.toString()); in onCallListChange() 889 listener.onStateChange(oldState, inCallState, callList); in onCallListChange() 961 for (IncomingCallListener listener : incomingCallListeners) { in onIncomingCall() 962 listener.onIncomingCall(oldState, inCallState, call); in onIncomingCall() 1106 public void addIncomingCallListener(IncomingCallListener listener) { in addIncomingCallListener() argument [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | BaseDvrDataManager.java | 66 public void addDvrScheduleLoadFinishedListener(OnDvrScheduleLoadFinishedListener listener) { in addDvrScheduleLoadFinishedListener() argument 67 mOnDvrScheduleLoadFinishedListeners.add(listener); in addDvrScheduleLoadFinishedListener() 71 public void removeDvrScheduleLoadFinishedListener(OnDvrScheduleLoadFinishedListener listener) { in removeDvrScheduleLoadFinishedListener() argument 72 mOnDvrScheduleLoadFinishedListeners.remove(listener); in removeDvrScheduleLoadFinishedListener() 77 OnRecordedProgramLoadFinishedListener listener) { in addRecordedProgramLoadFinishedListener() argument 78 mOnRecordedProgramLoadFinishedListeners.add(listener); in addRecordedProgramLoadFinishedListener() 83 OnRecordedProgramLoadFinishedListener listener) { in removeRecordedProgramLoadFinishedListener() argument 84 mOnRecordedProgramLoadFinishedListeners.remove(listener); in removeRecordedProgramLoadFinishedListener() 88 public final void addScheduledRecordingListener(ScheduledRecordingListener listener) { in addScheduledRecordingListener() argument 89 mScheduledRecordingListeners.add(listener); in addScheduledRecordingListener() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | TextureViewHelper.java | 158 for (PreviewStatusListener.PreviewAspectRatioChangedListener listener in onAspectRatioChanged() 160 listener.onPreviewAspectRatioChanged(mAspectRatio); in onAspectRatioChanged() 165 PreviewStatusListener.PreviewAspectRatioChangedListener listener) { in addAspectRatioChangedListener() argument 166 if (listener != null && !mAspectRatioChangedListeners.contains(listener)) { in addAspectRatioChangedListener() 167 mAspectRatioChangedListeners.add(listener); in addAspectRatioChangedListener() 235 public void setOnLayoutChangeListener(OnLayoutChangeListener listener) { 236 mOnLayoutChangeListener = listener; 239 public void setSurfaceTextureListener(TextureView.SurfaceTextureListener listener) { 240 mSurfaceTextureListener = listener; 386 for (PreviewStatusListener.PreviewAreaChangedListener listener : listeners) { [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/ |
D | P2pConnectionProcedure.java | 62 WifiP2pDevice peer, P2pConnectionListener listener) { in P2pConnectionProcedure() argument 71 mListeners.add(listener); in P2pConnectionProcedure() 94 boolean hasListener(P2pConnectionListener listener) { in hasListener() argument 95 return mListeners.contains(listener); in hasListener() 98 void addListener(P2pConnectionListener listener) { in addListener() argument 100 listener.onConnectionOpen(mNetwork, mInfo); in addListener() 102 mListeners.add(listener); in addListener() 105 void removeListener(P2pConnectionListener listener) { in removeListener() argument 106 mListeners.remove(listener); in removeListener() 143 for (P2pConnectionListener listener : mListeners) { in onReceive() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAdapter.java | 74 final OnItemClickedListener listener = 76 if (listener != null) { 77 listener.onItemClicked(viewHolder, id); 123 OnItemClickedListener listener, int... viewTypes) { in withViewTypes() argument 126 mListenersByViewType.put(viewType, listener); in withViewTypes() 232 public void setOnItemChangedListener(OnItemChangedListener listener) { in setOnItemChangedListener() argument 233 mOnItemChangedListener = listener; in setOnItemChangedListener() 339 public final void addOnItemChangedListener(OnItemChangedListener listener) { in addOnItemChangedListener() argument 340 if (!mOnItemChangedListeners.contains(listener)) { in addOnItemChangedListener() 341 mOnItemChangedListeners.add(listener); in addOnItemChangedListener() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionMonitor.java | 210 protected final void setCompletedListener(final ActionCompletedListener listener) { in setCompletedListener() argument 212 mCompletedListener = listener; in setCompletedListener() 219 protected final void setExecutedListener(final ActionExecutedListener listener) { in setExecutedListener() argument 221 mExecutedListener = listener; in setExecutedListener() 228 protected final void setStateChangedListener(final ActionStateChangedListener listener) { in setStateChangedListener() argument 230 mStateChangedListener = listener; in setStateChangedListener() 243 ActionStateChangedListener listener = null; in updateState() local 252 listener = mStateChangedListener; in updateState() 255 if (listener != null) { in updateState() 256 listener.onActionStateChanged(action, newState); in updateState() [all …]
|
/packages/modules/DnsResolver/ |
D | ResolverEventReporter.cpp | 41 int ResolverEventReporter::addListener(const std::shared_ptr<INetdEventListener>& listener) { in addListener() argument 42 return addListenerImpl(listener); in addListener() 58 std::shared_ptr<INetdEventListener> listener = INetdEventListener::fromBinder(binder); in addDefaultListener() local 60 if (listener == nullptr) return; in addDefaultListener() 62 if (!addListenerImplLocked(listener)) added = true; in addDefaultListener() 81 int ResolverEventReporter::addListenerImpl(const std::shared_ptr<INetdEventListener>& listener) { in addListenerImpl() argument 83 return addListenerImplLocked(listener); in addListenerImpl() 87 const std::shared_ptr<INetdEventListener>& listener) { in addListenerImplLocked() argument 88 if (listener == nullptr) { in addListenerImplLocked() 94 if (it->asBinder().get() == listener->asBinder().get()) { in addListenerImplLocked() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_reading_helper.cpp | 42 TraversingEventListener *const listener) { in traverseAllPtNodesInPostorderDepthFirstManner() argument 45 if (!listener->onDescend(getPosOfLastPtNodeArrayHead())) { in traverseAllPtNodesInPostorderDepthFirstManner() 56 if (!listener->onDescend(ptNodeParams.getChildrenPos())) { in traverseAllPtNodesInPostorderDepthFirstManner() 65 if (!listener->onVisitingPtNode(&ptNodeParams)) { in traverseAllPtNodesInPostorderDepthFirstManner() 72 if (!listener->onReadingPtNodeArrayTail()) { in traverseAllPtNodesInPostorderDepthFirstManner() 78 if (!listener->onAscend()) { in traverseAllPtNodesInPostorderDepthFirstManner() 90 if (!listener->onAscend()) { in traverseAllPtNodesInPostorderDepthFirstManner() 102 TraversingEventListener *const listener) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner() argument 106 if (!listener->onDescend(getPosOfLastPtNodeArrayHead())) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner() 111 if (!listener->onReadingPtNodeArrayTail()) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner() [all …]
|