Home
last modified time | relevance | path

Searched refs:worker (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/slices/
DSliceBackgroundWorker.java94 SliceBackgroundWorker worker = getInstance(uri); in getInstance() local
95 if (worker == null) { in getInstance()
98 worker = createInstance(context.getApplicationContext(), uri, workerClass); in getInstance()
99 LIVE_WORKERS.put(uri, worker); in getInstance()
101 return worker; in getInstance()
117 for (SliceBackgroundWorker worker : LIVE_WORKERS.values()) { in shutdown()
119 worker.close(); in shutdown()
217 final SliceBackgroundWorker worker = (SliceBackgroundWorker) msg.obj; in handleMessage() local
218 final Uri uri = worker.getUri(); in handleMessage()
219 final Context context = worker.getContext(); in handleMessage()
[all …]
DSettingsSliceProvider.java492 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance( in startBackgroundWorker() local
494 mPinnedWorkers.put(uri, worker); in startBackgroundWorker()
495 worker.pin(); in startBackgroundWorker()
499 final SliceBackgroundWorker worker = mPinnedWorkers.get(uri); in stopBackgroundWorker() local
500 if (worker != null) { in stopBackgroundWorker()
502 worker.unpin(); in stopBackgroundWorker()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDefaultDialerExecutorFactory.java63 @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 …]
DDialerUiTaskFragment.java45 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()
DDialerExecutorFactory.java48 @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/
DNfcPreferenceControllerTest.java231 final NfcSliceWorker worker = spy( in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate() local
233 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate()
238 verify(worker, times(0)).updateSlice(); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate()
243 final NfcSliceWorker worker = spy( in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate() local
245 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate()
251 verify(worker, times(0)).updateSlice(); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate()
256 final NfcSliceWorker worker = spy( in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate() local
258 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate()
264 verify(worker, times(0)).updateSlice(); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate()
269 final NfcSliceWorker worker = spy( in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates() local
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSlice.java107 final NetworkProviderWorker worker = getWorker(); in getSlice() local
108 if (worker != null) { in getSlice()
109 maxListSize = worker.getApRowCount(); in getSlice()
129 worker != null ? worker.getNetworkTypeDescription() : "")); in getSlice()
142 List<WifiSliceItem> wifiList = (worker != null) ? worker.getResults() : null; in getSlice()
239 final NetworkProviderWorker worker = getWorker(); in getMobileDataDisableDialog()
240 if (worker != null) { in getMobileDataDisableDialog()
241 worker.updateSlice(); in getMobileDataDisableDialog()
273 final NetworkProviderWorker worker = getWorker(); in doCarrierNetworkAction() local
274 if (worker == null) { in doCarrierNetworkAction()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DSaveLockWorkerTest.java39 SaveLockWorker worker = spy(new SaveLockWorker()); in testSaveLockSuccessReturnsTrue() local
41 doNothing().when(worker).saveLock(); in testSaveLockSuccessReturnsTrue()
43 assertThat(worker.saveAndVerifyInBackground()).isTrue(); in testSaveLockSuccessReturnsTrue()
51 SaveLockWorker worker = spy(new SaveLockWorker()); in testSaveLockFailureReturnsFalse() local
53 doThrow(new RuntimeException()).when(worker).saveLock(); in testSaveLockFailureReturnsFalse()
55 assertThat(worker.saveAndVerifyInBackground()).isFalse(); in testSaveLockFailureReturnsFalse()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DReportDialogFragment.java102 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()
DCallDetailsHeaderViewHolder.java269 AssistedDialingNumberParseWorker worker, in createAssistedDialerNumberParserTask() argument
DCallDetailsActivityCommon.java363 AssistedDialingNumberParseWorker worker, in createAssistedDialerNumberParserTask() argument
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DConnectToWifiHandler.java53 final WifiScanWorker worker = getWifiScanWorker(intent); in onReceive() local
54 if (worker == null) { in onReceive()
57 final WifiEntry wifiEntry = worker.getWifiEntry(key); in onReceive()
DWifiSlice.java90 final WifiScanWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice() local
91 final List<WifiSliceItem> apList = worker != null ? worker.getResults() : null; in getSlice()
/packages/modules/ExtServices/native/
DImageHashManager.cpp62 PhashFingerprinter worker; in generatePHash() local
63 const int64_t result = worker.GenerateFingerprint(compressedBuffer.data()); in generatePHash()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSlice.java105 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice() local
106 final List<BatteryTip> batteryTips = worker != null ? worker.getResults() : null; in getSlice()
DBluetoothUpdateWorker.java159 private void startLoadingBtManager(BluetoothUpdateWorker worker) { in startLoadingBtManager() argument
160 mWorker = worker; in startLoadingBtManager()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DAction.java90 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/
DBatteryFixSliceTest.java182 public static void setBatteryTipWorkerWorker(BatteryFixSlice.BatteryTipWorker worker) { in setBatteryTipWorkerWorker() argument
183 sBatteryTipWorkerWorker = worker; in setBatteryTipWorkerWorker()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeDataModel.java78 public FakeDataModel withBackgroundWorkerForActionService(final BackgroundWorker worker) { in withBackgroundWorkerForActionService() argument
79 mWorker = worker; in withBackgroundWorkerForActionService()
/packages/apps/Protips/src/com/android/protips/
DProtipWidget.java107 Runnable worker = new Runnable() { in onReceive() local
114 mAsyncHandler.post(worker); in onReceive()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java149 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(mWifiSlice.getUri()); in setWorkerResults() local
150 doReturn(results).when(worker).getResults(); in setWorkerResults()
/packages/apps/Dialer/java/com/android/incallui/
DCallButtonPresenter.java337 SwapSimWorker worker = in swapSimClicked() local
346 .createNonUiTaskBuilder(worker) in swapSimClicked()
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs407 fuse::worker::start_message_loop( in loop_forever()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs72 Ok(fuse::worker::start_message_loop(dev_fuse, MAX_READ, MAX_WRITE, ZipFuse::new(zip_file)?)?) in run_fuse()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...

12