Home
last modified time | relevance | path

Searched refs:setResult (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalHidlImpl.java384 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/
DRememberLauncherForCropActivity.kt27 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/
DPrivateProfileContextHelperActivity.java82 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/
DTestActivity.java30 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()
DActionHandlerTest.java330 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/
DRegistrationBinder.java236 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()
DRemoteProvisioningService.java66 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/
DTokenActivity.java88 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/
DRequestPermissionActivity.java87 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/
DEstablishNetworkConnectionActivity.java84 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/
DRequestToggleWiFiActivity.java82 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/
DSetupFingerprintEnrollIntroduction.java79 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/
DWifiRequestToggleActivity.java87 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/
DRemoteInputEntrypointActivity.java35 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/
DConfirmLockPattern.java186 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 …]
DConfirmLockPassword.java432 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/
DHandleShortcuts.kt42 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/
DAdIdFetcherTest.java112 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/
DLauncherActivity.java77 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/
DWifiDppQrCodeScannerFragmentTest.java113 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/
DAppStorageSizesControllerTest.java66 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/
DBiometricEnrollIntroduction.java319 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()
DBiometricEnrollActivity.java261 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/
DDownloadRoleHolderActivity.java71 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/
DAdSelectionManagerTest.java115 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

12345678910>>...13