/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DefaultDialerExecutorFactory.java | 63 @NonNull Worker<InputT, OutputT> worker) { in createUiTaskBuilder() argument 67 Assert.isNotNull(worker), in createUiTaskBuilder() 75 @NonNull Worker<InputT, OutputT> worker) { in createNonUiTaskBuilder() argument 76 return new NonUiTaskBuilder<>(Assert.isNotNull(worker), nonUiSerialExecutor, nonUiThreadPool); in createNonUiTaskBuilder() 82 private final Worker<InputT, OutputT> worker; field in DefaultDialerExecutorFactory.BaseTaskBuilder 92 Worker<InputT, OutputT> worker, in BaseTaskBuilder() argument 95 this.worker = worker; in BaseTaskBuilder() 125 Worker<InputT, OutputT> worker, in UiTaskBuilder() argument 128 super(worker, serialExecutor, parallelExecutor); in UiTaskBuilder() 140 super.worker, in build() [all …]
|
D | DialerUiTaskFragment.java | 45 private Worker<InputT, OutputT> worker; field in DialerUiTaskFragment 80 Worker<InputT, OutputT> worker, in create() argument 95 fragment.worker = worker; in create() 145 OutputT output = worker.doInBackground(input); in runTask()
|
D | DialerExecutorFactory.java | 48 @NonNull Worker<InputT, OutputT> worker); in createUiTaskBuilder() argument 62 @NonNull Worker<InputT, OutputT> worker); in createNonUiTaskBuilder() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcPreferenceControllerTest.java | 227 final NfcSliceWorker worker = spy(new NfcSliceWorker(mContext, getDummyUri())); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate() local 228 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate() 233 verify(worker, times(0)).updateSlice(); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate() 238 final NfcSliceWorker worker = spy(new NfcSliceWorker(mContext, getDummyUri())); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate() local 239 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate() 245 verify(worker, times(0)).updateSlice(); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate() 250 final NfcSliceWorker worker = spy(new NfcSliceWorker(mContext, getDummyUri())); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate() local 251 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate() 257 verify(worker, times(0)).updateSlice(); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate() 262 final NfcSliceWorker worker = spy(new NfcSliceWorker(mContext, getDummyUri())); in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates() local [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | SavePasswordWorkerTest.java | 40 SavePasswordWorker worker = spy(new SavePasswordWorker()); in testSaveLockSuccessReturnsTrue() local 42 doNothing().when(worker).saveLock(); in testSaveLockSuccessReturnsTrue() 44 assertThat(worker.saveAndVerifyInBackground()).isTrue(); in testSaveLockSuccessReturnsTrue() 52 SavePasswordWorker worker = spy(new SavePasswordWorker()); in testSaveLockFailureReturnsFalse() local 54 doThrow(new RuntimeException()).when(worker).saveLock(); in testSaveLockFailureReturnsFalse() 56 assertThat(worker.saveAndVerifyInBackground()).isFalse(); in testSaveLockFailureReturnsFalse()
|
D | SavePatternWorkerTest.java | 40 SavePatternWorker worker = spy(new SavePatternWorker()); in testSaveLockSuccessReturnsTrue() local 42 doNothing().when(worker).saveLock(); in testSaveLockSuccessReturnsTrue() 44 assertThat(worker.saveAndVerifyInBackground()).isTrue(); in testSaveLockSuccessReturnsTrue() 52 SavePatternWorker worker = spy(new SavePatternWorker()); in testSaveLockFailureReturnsFalse() local 54 doThrow(new RuntimeException()).when(worker).saveLock(); in testSaveLockFailureReturnsFalse() 56 assertThat(worker.saveAndVerifyInBackground()).isFalse(); in testSaveLockFailureReturnsFalse()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | SliceBackgroundWorker.java | 85 SliceBackgroundWorker worker = getInstance(uri); in getInstance() local 86 if (worker == null) { in getInstance() 89 worker = createInstance(context.getApplicationContext(), uri, workerClass); in getInstance() 90 LIVE_WORKERS.put(uri, worker); in getInstance() 92 return worker; in getInstance() 108 for (SliceBackgroundWorker worker : LIVE_WORKERS.values()) { in shutdown() 110 worker.close(); in shutdown()
|
D | SettingsSliceProvider.java | 332 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance( in startBackgroundWorker() local 334 mPinnedWorkers.put(uri, worker); in startBackgroundWorker() 335 worker.onSlicePinned(); in startBackgroundWorker() 339 final SliceBackgroundWorker worker = mPinnedWorkers.get(uri); in stopBackgroundWorker() local 340 if (worker != null) { in stopBackgroundWorker() 342 worker.onSliceUnpinned(); in stopBackgroundWorker()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBackgroundWorker.java | 85 SliceBackgroundWorker worker = getInstance(uri); in getInstance() local 86 if (worker == null) { in getInstance() 89 worker = createInstance(context.getApplicationContext(), uri, workerClass); in getInstance() 90 LIVE_WORKERS.put(uri, worker); in getInstance() 92 return worker; in getInstance() 108 for (SliceBackgroundWorker worker : LIVE_WORKERS.values()) { in shutdown() 110 worker.close(); in shutdown()
|
D | SettingsSliceProvider.java | 348 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance( in startBackgroundWorker() local 350 mPinnedWorkers.put(uri, worker); in startBackgroundWorker() 351 worker.onSlicePinned(); in startBackgroundWorker() 355 final SliceBackgroundWorker worker = mPinnedWorkers.get(uri); in stopBackgroundWorker() local 356 if (worker != null) { in stopBackgroundWorker() 358 worker.onSliceUnpinned(); in stopBackgroundWorker()
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | WifiSlice.java | 101 final WifiScanWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice() local 102 final List<AccessPoint> apList = worker != null ? worker.getResults() : null; in getSlice() 105 handleNetworkCallback(worker, isFirstApActive); in getSlice() 137 private void handleNetworkCallback(WifiScanWorker worker, boolean isFirstApActive) { in handleNetworkCallback() argument 138 if (worker == null) { in handleNetworkCallback() 142 worker.registerNetworkCallback(mWifiManager.getCurrentNetwork()); in handleNetworkCallback() 144 worker.unregisterNetworkCallback(); in handleNetworkCallback()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/ |
D | WifiSlice.java | 107 final WifiScanWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice() local 108 final List<AccessPoint> results = worker != null ? worker.getResults() : null; in getSlice() 111 handleCaptivePortalCallback(worker, isFirstApActive); in getSlice() 169 private void handleCaptivePortalCallback(WifiScanWorker worker, boolean isFirstApActive) { in handleCaptivePortalCallback() argument 170 if (worker == null) { in handleCaptivePortalCallback() 174 worker.registerCaptivePortalNetworkCallback(mWifiManager.getCurrentNetwork()); in handleCaptivePortalCallback() 176 worker.unregisterCaptivePortalNetworkCallback(); in handleCaptivePortalCallback()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaOutputSlice.java | 66 void init(String packageName, MediaDeviceUpdateWorker worker) { in init() argument 68 mWorker = worker; in init() 177 final MediaDeviceUpdateWorker worker = getWorker(); in onNotifyChange() local 179 final MediaDevice device = worker.getMediaDeviceById(id); in onNotifyChange() 182 worker.connectDevice(device); in onNotifyChange()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputSlice.java | 67 void init(String packageName, MediaDeviceUpdateWorker worker) { in init() argument 69 mWorker = worker; in init() 178 final MediaDeviceUpdateWorker worker = getWorker(); in onNotifyChange() local 180 final MediaDevice device = worker.getMediaDeviceById(id); in onNotifyChange() 183 worker.connectDevice(device); in onNotifyChange()
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | ReportDialogFragment.java | 102 Worker<String, CachedContactInfo> worker = in lookupContactInfo() local 107 .createUiTaskBuilder(getFragmentManager(), "lookup_contact_info", worker) in lookupContactInfo() 125 Worker<Context, Pair<Context, Boolean>> worker = this::reportCallerId; in startReportCallerIdWorker() local 129 .createUiTaskBuilder(getFragmentManager(), "report_caller_id", worker) in startReportCallerIdWorker()
|
D | CallDetailsHeaderViewHolder.java | 269 AssistedDialingNumberParseWorker worker, in createAssistedDialerNumberParserTask() argument
|
D | CallDetailsActivityCommon.java | 363 AssistedDialingNumberParseWorker worker, in createAssistedDialerNumberParserTask() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | BatteryFixSlice.java | 98 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice() local 99 final List<BatteryTip> batteryTips = worker != null ? worker.getResults() : null; in getSlice()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | BatteryFixSlice.java | 103 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice() local 104 final List<BatteryTip> batteryTips = worker != null ? worker.getResults() : null; in getSlice()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | Action.java | 90 public void sendBackgroundActions(final BackgroundWorker worker) { in sendBackgroundActions() argument 91 worker.queueBackgroundWork(mBackgroundActions); in sendBackgroundActions()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | BatteryFixSliceTest.java | 174 public static void setBatteryTipWorkerWorker(BatteryFixSlice.BatteryTipWorker worker) { in setBatteryTipWorkerWorker() argument 175 sBatteryTipWorkerWorker = worker; in setBatteryTipWorkerWorker()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | FakeDataModel.java | 78 public FakeDataModel withBackgroundWorkerForActionService(final BackgroundWorker worker) { in withBackgroundWorkerForActionService() argument 79 mWorker = worker; in withBackgroundWorkerForActionService()
|
/packages/apps/Protips/src/com/android/protips/ |
D | ProtipWidget.java | 107 Runnable worker = new Runnable() { in onReceive() local 114 mAsyncHandler.post(worker); in onReceive()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiSliceTest.java | 158 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(mWifiSlice.getUri()); in setWorkerResults() local 159 doReturn(results).when(worker).getResults(); in setWorkerResults()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | CallButtonPresenter.java | 333 SwapSimWorker worker = in swapSimClicked() local 342 .createNonUiTaskBuilder(worker) in swapSimClicked()
|