/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalHidlImpl.java | 384 supplicantIface.setResult(status, iface); in getIfaceV1_0() 418 supplicantIface.setResult(status, iface); in addIfaceV1_1() 683 result.setResult(status, name); in getName() 711 result.setResult(mISupplicantP2pIface.registerCallback(receiver)); in registerCallback() 743 result.setResult(ifaceV14.registerCallback_1_4(receiver)); in registerCallbackV1_4() 770 result.setResult(mISupplicantP2pIface.find(timeout)); in find() 814 result.setResult(mISupplicantP2pIface.stopFind()); in stopFind() 834 result.setResult(mISupplicantP2pIface.flush()); in flush() 855 result.setResult(mISupplicantP2pIface.flushServices()); in serviceFlush() 879 result.setResult(mISupplicantP2pIface.setPowerSave(groupIfName, enable)); in setPowerSave() [all …]
|
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/ui/details/items/media/ |
D | RememberLauncherForCropActivity.kt | 27 fun rememberLauncherForCropActivity(setResult: (uri: Uri?) -> Unit) = in <lambda>() 31 intent.data.let(setResult) in <lambda>() 32 } ?: setResult(null) in <lambda>() 34 setResult(null) in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/privatespace/ |
D | PrivateProfileContextHelperActivity.java | 82 setResult(RESULT_OK); in onCreate() 87 setResult(RESULT_CANCELED); in onCreate() 111 setResult(RESULT_CANCELED); in onAccountAdded() 123 setResult( in onAccountAdded() 137 setResult(RESULT_OK); in onSetNewProfileLockActionCompleted() 140 setResult(RESULT_CANCELED); in onSetNewProfileLockActionCompleted()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | TestActivity.java | 30 public TestEventListener<Pair<Integer, Intent>> setResult; field in TestActivity 43 setResult = new TestEventListener<>(); in init() 48 public void setResult(int resultCode, Intent intent, int notUsed) { in setResult() method in TestActivity 49 setResult.accept(Pair.create(resultCode, intent)); in setResult()
|
D | ActionHandlerTest.java | 330 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination() 331 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination() 358 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree() 359 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree() 389 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testSaveDocument_SetsCorrectResultAndFinishes() 390 final Intent result = mActivity.setResult.getLastValue().second; in testSaveDocument_SetsCorrectResultAndFinishes() 439 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 440 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 466 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 467 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RegistrationBinder.java | 236 metric.setResult(RkpdClientOperation.Result.SUCCESS); in getKeyThreadWorker() 239 metric.setResult(RkpdClientOperation.Result.CANCELED); in getKeyThreadWorker() 265 metric.setResult(RkpdClientOperation.Result.ERROR_PENDING_INTERNET_CONNECTIVITY); in mapToGetKeyError() 269 metric.setResult(RkpdClientOperation.Result.ERROR_PERMANENT); in mapToGetKeyError() 273 metric.setResult(RkpdClientOperation.Result.ERROR_INTERNAL); in mapToGetKeyError() 302 metric.setResult(RkpdClientOperation.Result.SUCCESS); in cancelGetKey() 317 metric.setResult(RkpdClientOperation.Result.SUCCESS); in storeUpgradedKeyAsync() 320 metric.setResult(RkpdClientOperation.Result.ERROR_KEY_NOT_FOUND); in storeUpgradedKeyAsync() 323 metric.setResult(RkpdClientOperation.Result.ERROR_INTERNAL); in storeUpgradedKeyAsync()
|
D | RemoteProvisioningService.java | 66 metric.setResult(RkpdClientOperation.Result.RKP_UNSUPPORTED); in getRegistration() 84 metric.setResult(RkpdClientOperation.Result.ERROR_INVALID_HAL); in getRegistration() 93 metric.setResult(RkpdClientOperation.Result.SUCCESS); in getRegistration() 97 metric.setResult(RkpdClientOperation.Result.ERROR_INTERNAL); in getRegistration()
|
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/ |
D | TokenActivity.java | 88 setResult(Activity.RESULT_CANCELED); in onCreate() 105 setResult(Activity.RESULT_OK); in onCreate() 108 setResult(Activity.RESULT_CANCELED); in onCreate() 130 setResult(Activity.RESULT_CANCELED); in onCreate() 145 setResult(Activity.RESULT_CANCELED); in updateButtonState()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivity.java | 87 setResult(Activity.RESULT_CANCELED); in onCreate() 283 setResult(returnCode); in proceedAndFinish() 288 setResult(Activity.RESULT_CANCELED); in cancelAndFinish() 320 setResult(RESULT_CANCELED); in parseIntent() 347 setResult(RESULT_CANCELED); in parseIntent() 355 setResult(RESULT_CANCELED); in parseIntent() 381 setResult(RESULT_CANCELED); in onBackPressed()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionActivity.java | 84 setResult(RESULT_OK); in onStateChanged() 89 setResult(RESULT_CANCELED, in onStateChanged() 98 setResult(RESULT_CANCELED); in onStateChanged() 119 setResult(resultCode); in onActivityResult()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | RequestToggleWiFiActivity.java | 82 setResult(Activity.RESULT_CANCELED); in onCreate() 145 setResult(RESULT_OK); in onStart() 159 setResult(RESULT_OK); in onStart() 175 setResult(RESULT_OK); in onStart() 193 setResult(RESULT_OK); in onStart() 332 RequestToggleWiFiActivity.this.setResult(Activity.RESULT_OK); in onReceive()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | SetupFingerprintEnrollIntroduction.java | 79 setResult(resultCode, data); in onActivityResult() 90 setResult(RESULT_FINISHED, data); in onActivityResult() 129 setResult(resultCode); in onCancelButtonClick() 136 setResult(resultCode, data); in onCancelButtonClick()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiRequestToggleActivity.java | 87 setResult(RESULT_OK); 106 setResult(Activity.RESULT_CANCELED); in onCreate() 136 setResult(RESULT_OK); in onStart() 152 setResult(RESULT_OK); in onStart() 255 activity.setResult(Activity.RESULT_OK); in onReceive()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | RemoteInputEntrypointActivity.java | 35 setResult(RESULT_CANCELED); in onCreate() 50 setResult(RESULT_OK); in onCreate() 53 setResult(RESULT_CANCELED); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmLockPattern.java | 186 getActivity().setResult(Activity.RESULT_OK); in onCreateView() 451 mCredentialCheckResultTracker.setResult(true, new Intent(), 0, mEffectiveUserId); in authenticationSucceeded() 469 activity.setResult(RESULT_OK, intent); in startDisappearAnimation() 476 activity.setResult(RESULT_OK, intent); in startDisappearAnimation() 535 mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId); 560 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, 593 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, 648 mCredentialCheckResultTracker.setResult(/* matched= */ true, new Intent(), in onRemoteLockscreenValidationResult() 653 mCredentialCheckResultTracker.setResult(/* matched= */ false, new Intent(), in onRemoteLockscreenValidationResult() 657 mCredentialCheckResultTracker.setResult(/* matched= */ false, new Intent(), in onRemoteLockscreenValidationResult() [all …]
|
D | ConfirmLockPassword.java | 432 mCredentialCheckResultTracker.setResult(true, new Intent(), 0, mEffectiveUserId); in authenticationSucceeded() 503 mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId); in handleNext() 527 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword() 552 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword() 574 activity.setResult(RESULT_OK, intent); in startDisappearAnimation() 581 activity.setResult(RESULT_OK, intent); in startDisappearAnimation() 633 mCredentialCheckResultTracker.setResult(/* matched= */ true, new Intent(), in onRemoteLockscreenValidationResult() 638 mCredentialCheckResultTracker.setResult(/* matched= */ false, new Intent(), in onRemoteLockscreenValidationResult() 642 mCredentialCheckResultTracker.setResult(/* matched= */ false, new Intent(), in onRemoteLockscreenValidationResult() 697 getActivity().setResult(RESULT_CANCELED); in onClick() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleShortcuts.kt | 42 setResult(RESULT_OK) in onCreate() 51 setResult(RESULT_OK) in onCreate() 57 setResult(RESULT_CANCELED) in onCreate()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdIdFetcherTest.java | 112 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testIsLimitedTrackingEnabled_PermissionsNotDeclared_ReturnsDefault() 131 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testIsLimitedTrackingEnabled_Disabled_ReturnsFalse() 150 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, true); in testIsLimitedTrackingEnabled_LatEnabled_ReturnsTrue() 169 mMockAdIdWorker.setResult(AdId.ZERO_OUT, false); in testIsLimitedTrackingEnabled_AdIdZeroedOut_ReturnsDefault() 188 mMockAdIdWorker.setResult(MockAdIdWorker.MOCK_AD_ID, false); in testIsLimitedTrackingEnabled_TimeoutException_ReturnsDefault()
|
/packages/apps/TV/src/com/android/tv/ |
D | LauncherActivity.java | 77 setResult(Activity.RESULT_OK); in onCreate() 83 setResult(Activity.RESULT_CANCELED, intent); in onCreate() 90 setResult(resultCode, data); in onActivityResult()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiDppQrCodeScannerFragmentTest.java | 113 verify(mActivity, never()).setResult(eq(Activity.RESULT_OK), any()); in onSuccess_noWifiPermission_finishActivityWithoutSetResult() 125 verify(mActivity, never()).setResult(eq(Activity.RESULT_OK), any()); in onSuccess_hasAccessWifiStatePermissionOnly_finishActivityWithoutSetResult() 137 verify(mActivity, never()).setResult(eq(Activity.RESULT_OK), any()); in onSuccess_hasAccessFineLocationPermissionOnly_finishActivityWithoutSetResult() 148 verify(mActivity).setResult(eq(Activity.RESULT_OK), any()); in onSuccess_hasRequiredPermissions_finishActivityWithSetResult()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStorageSizesControllerTest.java | 66 mController.setResult(null); in requestingUpdateAfterFailureHasErrorText() 83 mController.setResult(result); in properlyPopulatedAfterValidEntry() 100 mController.setResult(result); in fakeCacheFlagSetsCacheToZero() 118 mController.setResult(result); in fakeDataFlagSetsDataAndCacheToZero()
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricEnrollIntroduction.java | 319 setResult(RESULT_FINISHED); in onNextButtonClick() 376 setResult(resultCode, data); in onActivityResult() 399 setResult(resultCode, data); in onActivityResult() 421 setResult(resultCode, data); in onActivityResult() 445 setResult(resultCode, data); in onActivityResult() 507 setResult(RESULT_SKIP, data); in onEnrollmentSkipped() 512 setResult(RESULT_FINISHED, data); in onFinishedEnrolling()
|
D | BiometricEnrollActivity.java | 261 setResult(RESULT_SKIP); in onCreate() 277 setResult(RESULT_SKIP); in onCreate() 363 setResult(RESULT_OK, newResultIntent()); 448 setResult(resultCode); 472 setResult(RESULT_CANCELED, newResultIntent()); 490 setResult(RESULT_OK, newResultIntent()); 510 setResult(resultCode, newResultIntent()); 567 setResult(RESULT_OK, newResultIntent()); 571 setResult(resultCode, newResultIntent());
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | DownloadRoleHolderActivity.java | 71 setResult(RESULT_CANCELED); in onCreate() 97 setResult(RESULT_OK); in onStateChanged() 102 setResult(RESULT_CANCELED, in onStateChanged()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | AdSelectionManagerTest.java | 115 mockAdIdManager.setResult(new AdId(AD_ID, true)); in testAdSelectionManager_reportEvent_adIdEnabled() 141 mockAdIdManager.setResult(new AdId(AdId.ZERO_OUT, true)); in testAdSelectionManager_reportEvent_adIdZeroOut() 193 mockServiceGetAdSelectionData.setResult( in testAdSelectionManagerGetAdSelectionDataWhenResultIsByteArray() 227 mockServiceGetAdSelectionData.setResult( in testAdSelectionManagerGetAdSelectionDataCoordinatorWasPassed() 261 mockServiceGetAdSelectionData.setResult( in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptor() 297 mockServiceGetAdSelectionData.setResult( in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptorWithExcessiveSize() 337 public void setResult(AdId adId) { in setResult() method in AdSelectionManagerTest.MockAdIdManager 555 public void setResult(GetAdSelectionDataResponse response) { in setResult() method in AdSelectionManagerTest.MockServiceGetAdSelectionData
|