Home
last modified time | relevance | path

Searched refs:resultBundle (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java285 private void validateNullResult(Bundle resultBundle) { in validateNullResult() argument
286 assertNull(resultBundle.get(AccountManager.KEY_ACCOUNT_NAME)); in validateNullResult()
287 assertNull(resultBundle.get(AccountManager.KEY_ACCOUNT_TYPE)); in validateNullResult()
288 assertNull(resultBundle.get(AccountManager.KEY_AUTHTOKEN)); in validateNullResult()
341 Bundle resultBundle = futureBundle.getResult(30, TimeUnit.SECONDS); in addAccount() local
343 assertNotNull(resultBundle); in addAccount()
345 return resultBundle; in addAccount()
378 Bundle resultBundle = futureBundle.getResult(30, TimeUnit.SECONDS); in removeAccountWithIntentLaunch() local
381 return resultBundle; in removeAccountWithIntentLaunch()
392 Bundle resultBundle = futureBundle.getResult(30, TimeUnit.SECONDS); in removeAccount() local
[all …]
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DCtsIsolatedInferenceService.java306 PersistableBundle resultBundle = new PersistableBundle(); in updateProcessingState() local
307 resultBundle.putBoolean(MODEL_LOADED_BUNDLE_KEY, true); in updateProcessingState()
308 callback.onResult(resultBundle); in updateProcessingState()
316 PersistableBundle resultBundle = new PersistableBundle(); in updateProcessingState() local
317 resultBundle.putBoolean("deviceConfig", true); in updateProcessingState()
318 callback.onResult(resultBundle); in updateProcessingState()
DOnDeviceIntelligenceManagerTest.java650 CompletableFuture<Bundle> resultBundle = new CompletableFuture<>(); in cancellationPropagatedWhenInvokedDuringRequest() local
664 resultBundle.complete(result); in cancellationPropagatedWhenInvokedDuringRequest()
674 assertThat(resultBundle.get()).isNotNull(); in cancellationPropagatedWhenInvokedDuringRequest()
675 assertThat(resultBundle.get().containsKey("test_key")).isTrue(); in cancellationPropagatedWhenInvokedDuringRequest()
676 assertThat(resultBundle.get().getBoolean(TEST_KEY)).isTrue(); in cancellationPropagatedWhenInvokedDuringRequest()
689 CompletableFuture<Bundle> resultBundle = new CompletableFuture<>(); in cancellationPropagatedWhenInvokedBeforeMakingRequest() local
702 resultBundle.complete(result); in cancellationPropagatedWhenInvokedBeforeMakingRequest()
712 assertThat(resultBundle.get()).isNotNull(); in cancellationPropagatedWhenInvokedBeforeMakingRequest()
714 resultBundle.get().isEmpty()).isTrue(); // When cancelled before sending request, in cancellationPropagatedWhenInvokedBeforeMakingRequest()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java323 final Bundle resultBundle = callbackResult.get(SHORT_TIMEOUT, TimeUnit.MILLISECONDS); in writeToFileWithDelegator() local
324 if (resultBundle.getString(KEY_ERROR) != null) { in writeToFileWithDelegator()
326 + resultBundle.getString(KEY_ERROR)); in writeToFileWithDelegator()