Home
last modified time | relevance | path

Searched refs:mFuture (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/service/src/com/android/car/garagemode/
DGarageMode.java119 private CompletableFuture<Void> mFuture; field in GarageMode
155 if (mFuture != null && !mFuture.isDone()) { in cancel()
156 mFuture.cancel(true); in cancel()
158 mFuture = null; in cancel()
167 if (mFuture != null && !mFuture.isDone()) { in finish()
168 mFuture.complete(null); in finish()
170 mFuture = null; in finish()
195 mFuture = future; in updateFuture()
197 if (mFuture != null) { in updateFuture()
198 mFuture.whenComplete((result, exception) -> { in updateFuture()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java118 CompletableFuture<Boolean> mFuture = new CompletableFuture<>(); field in RingerTest
141 nullable(VolumeShaper.Configuration.class), anyBoolean())).thenReturn(mFuture); in setUp()
154 mFuture.complete(false); // not using audio coupled haptics in testNoActionInTheaterMode()
168 mFuture.complete(false); // not using audio coupled haptics in testNoActionWithExternalRinger()
186 mFuture.complete(false); // not using audio coupled haptics in testNoActionWhenDialerRings()
202 mFuture.complete(false); // not using audio coupled haptics in testAudioFocusStillAcquiredWhenDialerRings()
219 mFuture.complete(false); // not using audio coupled haptics in testNoActionWhenCallIsSelfManaged()
235 mFuture.complete(false); // not using audio coupled haptics in testCallWaitingButNoRingForSpecificContacts()
258 mFuture.complete(true); in testNoVibrateDueToAudioCoupledHaptics()
274 mFuture.complete(false); // not using audio coupled haptics in testVibrateButNoRingForNullRingtone()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DListenableFutureLoader.java47 private ListenableFuture<D> mFuture; field in ListenableFutureLoader
83 if (mFuture == null) { in onStartLoading()
93 mFuture = loadData(); in onForceLoad()
94 Futures.addCallback(mFuture, new FutureCallback<D>() { in onForceLoad()
118 if (mFuture != null) { in onStopLoading()
119 mFuture.cancel(false); in onStopLoading()
120 mFuture = null; in onStopLoading()
126 mFuture = null; in onReset()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DAlbumArtLiveData.java53 private CompletableFuture<Bitmap> mFuture; field in AlbumArtLiveData
65 if (mFuture != null && !mFuture.isDone()) { in update()
66 mFuture.cancel(true); in update()
70 mFuture = null; in update()
72 mFuture = metadata.getAlbumArt(mContext, mWidth, mHeight, mFit); in update()
73 mFuture.whenComplete((result, throwable) -> { in update()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallScreeningServiceHelper.java84 private CompletableFuture mFuture; field in CallScreeningServiceHelper
115 mFuture = new CompletableFuture(); in bindAndGetCallIdentification()
132 mFuture.complete(null); in bindAndGetCallIdentification()
144 if (!mFuture.isDone()) { in bindAndGetCallIdentification()
148 mFuture.complete(null); in bindAndGetCallIdentification()
158 mFuture.complete(null); in bindAndGetCallIdentification()
167 if (!mFuture.isDone()) { in bindAndGetCallIdentification()
170 mFuture.complete(null); in bindAndGetCallIdentification()
176 return mFuture; in bindAndGetCallIdentification()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java47 private CompletableFuture<Void> mFuture; field in CarPowerManager
215 mListenerWithCompletion.onStateChanged(state, mFuture); in setServiceForListenerLocked()
267 mFuture = new CompletableFuture<>(); in updateFuture()
268 mFuture.whenComplete((result, exception) -> { in updateFuture()
282 if (mFuture != null) { in cleanupFuture()
283 if (!mFuture.isDone()) { in cleanupFuture()
284 mFuture.cancel(false); in cleanupFuture()
286 mFuture = null; in cleanupFuture()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java87 private CompletableFuture<Void> mFuture; field in ControllerTest
100 mFuture = new CompletableFuture<>(); in setUp()
140 assertThat(mFuture.isDone()).isTrue(); in testOnShutdownCancelled_shouldCancelGarageMode()
141 assertThat(mFuture.isCancelled()).isTrue(); in testOnShutdownCancelled_shouldCancelGarageMode()
154 mFuture = new CompletableFuture<>(); in testWakeupTimeProgression()
155 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
165 mFuture = new CompletableFuture<>(); in testWakeupTimeProgression()
166 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
197 mController.onStateChanged(signal, mFuture); in startAndAssertGarageModeWithSignal()
/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceRequest.java34 private final SettableFuture<TDevice> mFuture; field in SingleDeviceRequest
40 mFuture = SettableFuture.create(); in SingleDeviceRequest()
48 return mFuture; in getFuture()
63 return mFuture.set(device); in set()
75 mFuture.setException(throwable); in closeWithException()
83 mFuture.cancel(true /* mayInterruptIfRunning */); in close()
/packages/apps/Car/Cluster/src/android/car/cluster/
DCueView.java46 private CompletableFuture<?> mFuture; field in CueView
75 if (mFuture != null && !Objects.equals(cue, mContent)) { in setCue()
76 mFuture.cancel(true); in setCue()
83 mFuture = imageResolver in setCue()
87 mFuture = null; in setCue()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java67 private CompletableFuture<Void> mFuture; field in CarPowerManagementServiceTest
225 mFuture = new CompletableFuture<>(); in registerListenerToService()
226 mFuture.whenComplete((res, ex) -> { in registerListenerToService()
232 mFuture = null; in registerListenerToService()
248 if (mFuture != null && !mFuture.isDone()) { in assertStateReceivedForShutdownOrSleepWithPostpone()
249 mFuture.complete(null); in assertStateReceivedForShutdownOrSleepWithPostpone()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDbFuture.java46 private ListenableFuture<ResultT> mFuture; field in DvrDbFuture
61 mFuture = DB_EXECUTOR.submit(() -> dbHelperInBackground(params)); in executeOnDbThread()
62 Futures.addCallback(mFuture, callback, MainThreadExecutor.getInstance()); in executeOnDbThread()
63 return mFuture; in executeOnDbThread()
71 return mFuture.isCancelled(); in isCancelled()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestPredicate.java37 private final CompletableFuture<T> mFuture = new CompletableFuture<>(); field in TestPredicate
46 mFuture.complete(t); in test()
68 return mFuture.get(timeout, unit); in waitForCall()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java854 private Future<BitmapRegionDecoder> mFuture; field in PhotoDataAdapter.FullImageListener
862 mFuture = future; in onFutureDone()
869 updateFullImage(mPath, mFuture); in run()
876 private Future<ScreenNail> mFuture; field in PhotoDataAdapter.ScreenNailListener
884 mFuture = future; in onFutureDone()
891 updateScreenNail(mPath, mFuture); in run()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java143 task.mFuture = mApplication.getThreadPool().submit(task, task); in download()
262 private Future<File> mFuture; field in DownloadCache.DownloadTask
273 mFuture.cancel(); in removeProxy()