/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacController.java | 113 private List<Callback> mCallbacks = new ArrayList<>(); field in HvacController 147 synchronized (mCallbacks) { in registerCallback() 148 mCallbacks.add(callback); in registerCallback() 153 synchronized (mCallbacks) { in unregisterCallback() 154 mCallbacks.remove(callback); in unregisterCallback() 251 synchronized (mCallbacks) { in handleHvacPowerOn() 252 for (int i = 0; i < mCallbacks.size(); i++) { in handleHvacPowerOn() 253 mCallbacks.get(i).onHvacPowerChange(isOn); in handleHvacPowerOn() 266 synchronized (mCallbacks) { in handleSeatWarmerUpdate() 267 for (int i = 0; i < mCallbacks.size(); i++) { in handleSeatWarmerUpdate() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ServiceBinder.java | 76 synchronized (mCallbacks) { in bind() 77 if (!mCallbacks.isEmpty()) { in bind() 79 mCallbacks.add(callback); in bind() 82 mCallbacks.add(callback); in bind() 216 private final Set<BindCallback> mCallbacks = new ArraySet<>(); field in ServiceBinder 359 synchronized (mCallbacks) { in handleSuccessfulConnection() 360 callbacksCopy.addAll(mCallbacks); in handleSuccessfulConnection() 361 mCallbacks.clear(); in handleSuccessfulConnection() 376 synchronized (mCallbacks) { in handleFailedConnection() 377 callbacksCopy.addAll(mCallbacks); in handleFailedConnection() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarVendorExtensionManager.java | 53 private final ArraySet<CarVendorExtensionCallback> mCallbacks = new ArraySet<>(); field in CarVendorExtensionManager 62 callbacks = new ArrayList<>(mCallbacks); in handleOnChangeEvent() 72 listeners = new ArrayList<>(mCallbacks); in handleOnErrorEvent() 110 if (mCallbacks.isEmpty()) { in registerCallback() 118 mCallbacks.add(callback); in registerCallback() 125 mCallbacks.remove(callback); in unregisterCallback() 131 if (mCallbacks.isEmpty()) { in unregisterCallback() 210 mCallbacks.clear(); in onCarDisconnected()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | MultiStateCallback.java | 34 private final SparseArray<Runnable> mCallbacks = new SparseArray<>(); field in MultiStateCallback 57 int count = mCallbacks.size(); in setState() 59 int state = mCallbacks.keyAt(i); in setState() 62 Runnable callback = mCallbacks.valueAt(i); in setState() 65 mCallbacks.setValueAt(i, null); in setState() 106 if (FeatureFlags.IS_DOGFOOD_BUILD && mCallbacks.get(stateMask) != null) { in addCallback() 109 mCallbacks.put(stateMask, callback); in addCallback()
|
D | RecentsAnimationWrapper.java | 47 private final ArrayList<Runnable> mCallbacks = new ArrayList<>(); field in RecentsAnimationWrapper 81 if (!mCallbacks.isEmpty()) { in setController() 82 for (Runnable action : new ArrayList<>(mCallbacks)) { in setController() 85 mCallbacks.clear(); in setController() 91 mCallbacks.add(action); in runOnInit()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/util/ |
D | ThreadSafeCallbacks.java | 33 private final ConcurrentHashMap<T, Executor> mCallbacks = new ConcurrentHashMap<>(); field in ThreadSafeCallbacks 37 mCallbacks.put(callback, executor); in add() 42 mCallbacks.remove(callback); in remove() 47 mCallbacks.clear(); in clear() 52 return mCallbacks.size(); in size() 57 mCallbacks.forEach((callback, executor) -> in invoke()
|
/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 51 private final ArraySet<CarHvacEventCallback> mCallbacks = new ArraySet<>(); field in CarHvacManager 276 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent() 288 callbacks = new ArraySet<>(mCallbacks); in handleOnErrorEvent() 316 if (mCallbacks.isEmpty()) { in registerCallback() 324 mCallbacks.add(callback); in registerCallback() 333 mCallbacks.remove(callback); in unregisterCallback() 344 if (mCallbacks.isEmpty()) { in unregisterCallback() 436 mCallbacks.clear(); in onCarDisconnected()
|
/packages/services/Car/car-lib/src/android/car/hardware/cabin/ |
D | CarCabinManager.java | 63 private final ArraySet<CarCabinEventCallback> mCallbacks = new ArraySet<>(); field in CarCabinManager 443 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent() 453 listeners = new ArraySet<>(mCallbacks); in handleOnErrorEvent() 491 if (mCallbacks.isEmpty()) { in registerCallback() 499 mCallbacks.add(callback); in registerCallback() 508 mCallbacks.remove(callback); in unregisterCallback() 514 if (mCallbacks.isEmpty()) { in unregisterCallback() 598 mCallbacks.clear(); in onCarDisconnected()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpLeaseRepositoryTest.java | 103 private IDhcpEventCallbacks mCallbacks; field in DhcpLeaseRepositoryTest 117 reset(mCallbacks, mClock); in initDhcpLeaseRepositoryWithOption() 121 when(mCallbacks.asBinder()).thenReturn(mCallbacksBinder); in initDhcpLeaseRepositoryWithOption() 124 mRepo.addLeaseCallbacks(mCallbacks); in initDhcpLeaseRepositoryWithOption() 125 verify(mCallbacks, atLeastOnce()).asBinder(); in initDhcpLeaseRepositoryWithOption() 160 verify(mCallbacks, times(11)).onLeasesChanged(any()); in testAddressExhaustion() 169 verifyNoMoreInteractions(mCallbacks); in testAddressExhaustion() 206 verifyNoMoreInteractions(mCallbacks); in testUpdateParams_LeaseCleanup() 291 verify(mCallbacks, never()).onLeasesChanged(any()); in testGetOffer_RequestedAddress() 380 verifyNoMoreInteractions(mCallbacks); in testRequestLease_SelectingTwice() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | FakeTvInputManager.java | 34 private final Map<TvInputManager.TvInputCallback, Handler> mCallbacks = new HashMap<>(); field in FakeTvInputManager 43 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in add() 60 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in setInputState() 75 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in remove() 99 mCallbacks.put(internalCallback, handler); in registerCallback() 104 mCallbacks.remove(internalCallback); in unregisterCallback()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningManagerHelper.java | 53 private List<ProvisioningManagerCallback> mCallbacks = new ArrayList<>(); field in ProvisioningManagerHelper 79 mCallbacks.add(callback); in registerListener() 86 mCallbacks.remove(callback); in unregisterListener() 92 for (ProvisioningManagerCallback callback : mCallbacks) { in error() 132 for (ProvisioningManagerCallback callback : mCallbacks) { in notifyPreFinalizationCompleted() 168 return mCallbacks.contains(callback); in isCallbackStillRequired()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ViewAutoScroller.java | 34 private ScrollerCallbacks mCallbacks; field in ViewAutoScroller 41 mCallbacks = callbacks; in ViewAutoScroller() 81 mCallbacks.scrollBy(numPixels); in run() 84 mCallbacks.removeCallback(this); in run() 85 mCallbacks.runAtNextFrame(this); in run()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 100 @Thunk WeakReference<Callbacks> mCallbacks; field in LauncherModel 166 mCallbacks = new WeakReference<>(callbacks); in initialize() 323 return (mCallbacks != null && mCallbacks.get() == callbacks); in isCurrentCallbacks() 335 if (mCallbacks != null && mCallbacks.get() != null) { in startLoader() 336 final Callbacks oldCallbacks = mCallbacks.get(); in startLoader() 343 mBgAllAppsList, synchronousBindPage, mCallbacks); in startLoader() 551 return mCallbacks != null ? mCallbacks.get() : null; in getCallback()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 233 private INetworkMonitorCallbacks mCallbacks = spy( field in NetworkMonitorTest 572 reset(mCallbacks); in resetCallbacks() 574 doReturn(interfaceVersion).when(mCallbacks).getInterfaceVersion(); in resetCallbacks() 594 super(mContext, mCallbacks, mNetwork, mLogger, mValidationLogger, mServiceManager, in WrappedNetworkMonitor() 1194 verify(mCallbacks, never()).notifyCaptivePortalDataChanged(any()); 1218 verify(mCallbacks).notifyCaptivePortalDataChanged(capportDataCaptor.capture()); 1244 verify(mCallbacks).notifyCaptivePortalDataChanged(capportCaptor.capture()); 1290 verify(mCallbacks).notifyCaptivePortalDataChanged(capportCaptor.capture()); 1308 verify(mCallbacks).notifyCaptivePortalDataChanged(capportCaptor.capture()); 1327 verify(mCallbacks).notifyCaptivePortalDataChanged(capportCaptor.capture()); [all …]
|
/packages/services/Car/tools/keventreader/server/ |
D | eventprovider.cpp | 31 for (auto&& cb : mCallbacks) { in startLoop() 44 mCallbacks.push_back(cb); in registerCallback() 50 std::remove(mCallbacks.begin(), mCallbacks.end(), cb); in unregisterCallback()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | BlePeripheralManager.java | 78 private final Set<Callback> mCallbacks = new CopyOnWriteArraySet<>(); field in BlePeripheralManager 106 mCallbacks.add(callback); in registerCallback() 115 mCallbacks.remove(callback); in unregisterCallback() 309 for (Callback callback : mCallbacks) { 314 for (Callback callback : mCallbacks) { 376 for (Callback callback : mCallbacks) { 450 for (Callback callback : mCallbacks) {
|
D | CarBlePeripheralManager.java | 332 mCallbacks.invoke(callback -> callback.onDeviceConnected(deviceId)); in setDeviceId() 432 mCallbacks.invoke(callback -> callback.onDeviceDisconnected(finalDeviceId)); 486 mCallbacks.invoke(callback -> callback.onDeviceDisconnected( 519 mCallbacks.invoke(callback -> callback.onSecureChannelEstablished(deviceId)); 531 mCallbacks.invoke(callback -> callback.onSecureChannelError(deviceId)); 549 + "payload. Notifying " + mCallbacks.size() + " callbacks."); 550 mCallbacks.invoke(
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | KeyInputHandler.java | 38 private final Callbacks<DocumentItemDetails> mCallbacks; field in KeyInputHandler 47 mCallbacks = callbacks; in KeyInputHandler() 73 if (mCallbacks.onFocusItem(details, keyCode, event)) { in onKey() 95 return mCallbacks.onItemActivated(details, event); in onKey()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskThumbnailCache.java | 52 private ArrayList<HighResLoadingStateChangedCallback> mCallbacks = new ArrayList<>(); field in TaskThumbnailCache.HighResLoadingState 65 mCallbacks.add(callback); in addCallback() 69 mCallbacks.remove(callback); in removeCallback() 90 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in updateState() 91 mCallbacks.get(i).onHighResLoadingStateChanged(mHighResLoadingEnabled); in updateState()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 54 private final ArrayMap<OnAppsChangedCallbackCompat, WrappedCallback> mCallbacks = field in LauncherAppsCompatVL 113 synchronized (mCallbacks) { in addOnAppsChangedCallback() 114 mCallbacks.put(callback, wrappedCallback); in addOnAppsChangedCallback() 122 synchronized (mCallbacks) { in removeOnAppsChangedCallback() 123 wrappedCallback = mCallbacks.remove(callback); in removeOnAppsChangedCallback()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | CapabilitiesCache.java | 166 request.mCallbacks.add(onLocalPrinterCapabilities); in request() 198 request.mCallbacks.remove(onLocalPrinterCapabilities); in cancel() 199 if (request.mCallbacks.isEmpty()) { in cancel() 244 final List<OnLocalPrinterCapabilities> mCallbacks = new ArrayList<>(); field in CapabilitiesCache.Request 304 for (OnLocalPrinterCapabilities callback : mCallbacks) { in accept()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | BaseLoaderResults.java | 62 protected final WeakReference<Callbacks> mCallbacks; field in BaseLoaderResults 73 mCallbacks = callbacks == null ? new WeakReference<>(null) : callbacks; in BaseLoaderResults() 80 Callbacks callbacks = mCallbacks.get(); in bindWorkspace() 294 Callbacks callbacks = mCallbacks.get(); in executeCallbacksTask() 304 if (mCallbacks.get() == null) { in newIdleLock()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | PaymentBackend.java | 61 private ArrayList<Callback> mCallbacks = new ArrayList<>(); field in PaymentBackend 121 mCallbacks.add(callback); in registerCallback() 125 mCallbacks.remove(callback); in unregisterCallback() 137 for (Callback callback : mCallbacks) { in makeCallbacks()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | PaymentBackend.java | 61 private ArrayList<Callback> mCallbacks = new ArrayList<>(); field in PaymentBackend 121 mCallbacks.add(callback); in registerCallback() 125 mCallbacks.remove(callback); in unregisterCallback() 137 for (Callback callback : mCallbacks) { in makeCallbacks()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | ImageLoader.java | 47 private final Set<Map.Entry<Executor, Callback>> mCallbacks = new ArraySet<>(); field in ImageLoader 65 if (!mCallbacks.add(new SimpleEntry<>(executor, callback))) { in addCallback() 77 if (!mCallbacks.remove(new SimpleEntry<>(executor, callback))) { in removeCallback() 140 callbacks = new ArraySet<>(mCallbacks); in run()
|