Home
last modified time | relevance | path

Searched refs:isSuccess (Results 1 – 25 of 116) sorted by relevance

12345

/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java382 assertTrue("Store not successful : " + status.resultCode, status.isSuccess());
398 status.isSuccess());
467 + status.resultCode, status.isSuccess());
483 + status.resultCode, status.isSuccess());
499 + status.resultCode, status.isSuccess());
518 status.isSuccess());
527 status.isSuccess());
535 status.isSuccess());
544 status.isSuccess());
562 status.isSuccess());
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DOmtpEvents.java127 private final boolean isSuccess; field in OmtpEvents
129 OmtpEvents(int type, boolean isSuccess) { in OmtpEvents() argument
131 this.isSuccess = isSuccess; in OmtpEvents()
136 isSuccess = false; in OmtpEvents()
141 isSuccess = false; in OmtpEvents()
149 public boolean isSuccess() { in isSuccess() method in OmtpEvents
150 return isSuccess; in isSuccess()
/packages/modules/Connectivity/tests/unit/java/android/net/
DIpMemoryStoreTest.java124 status.isSuccess())); in testNetworkAttributes()
132 + status.resultCode, status.isSuccess()); in testNetworkAttributes()
149 assertTrue("Store not successful : " + status.resultCode, status.isSuccess()); in testPrivateData()
157 status.isSuccess()); in testPrivateData()
175 status.isSuccess()); in testFindL2Key()
191 + status.resultCode, status.isSuccess()); in testIsSameNetwork()
209 status.isSuccess())); in testEnqueuedIpMsRequests()
213 + status.resultCode, status.isSuccess()); in testEnqueuedIpMsRequests()
219 status.isSuccess())); in testEnqueuedIpMsRequests()
223 status.isSuccess()); in testEnqueuedIpMsRequests()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalHidlImpl.java716 return result.isSuccess(); in registerCallback()
748 return result.isSuccess(); in registerCallbackV1_4()
775 return result.isSuccess(); in find()
819 return result.isSuccess(); in stopFind()
839 return result.isSuccess(); in flush()
860 return result.isSuccess(); in serviceFlush()
884 return result.isSuccess(); in setPowerSave()
918 return result.isSuccess(); in setGroupIdle()
951 return result.isSuccess(); in setSsidPostfix()
1050 return result.isSuccess(); in cancelConnect()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCarDevicePolicyManagerUnitTest.java72 assertThat(result.isSuccess()).isTrue(); in testRemoveUser_success()
83 assertThat(result.isSuccess()).isFalse(); in testRemoveUser_remoteException()
107 assertThat(result.isSuccess()).isTrue(); in testCreateUser_success()
120 assertThat(result.isSuccess()).isFalse(); in testCreateUser_remoteException()
139 assertThat(result.isSuccess()).isTrue(); in testStartUserInBackground_success()
151 assertThat(result.isSuccess()).isFalse(); in testStartUserInBackground_remoteException()
167 assertThat(result.isSuccess()).isTrue(); in testStopUser_success()
178 assertThat(result.isSuccess()).isFalse(); in testStopUser_remoteException()
DCreateUserResultTest.java33 assertThat(result.isSuccess()).isFalse(); in testNullConstructor()
45 assertThat(result.isSuccess()).isTrue(); in testSuccess()
55 assertThat(result.isSuccess()).isFalse(); in testFailure_nullUserInfo()
72 assertThat(result.isSuccess()).isFalse(); in testFailure_nullUserHandle()
90 assertThat(result.isSuccess()).isFalse(); in failureTest()
DStartUserInBackgroundResultTest.java36 int userStartStatus, int startUserStatus, boolean isSuccess) { in StartUserInBackgroundResultTest() argument
39 mIsSuccess = isSuccess; in StartUserInBackgroundResultTest()
63 assertThat(result.isSuccess()).isEqualTo(mIsSuccess); in testStatus()
DStopUserResultTest.java37 public StopUserResultTest(int userStopStatus, int stopUserStatus, boolean isSuccess) { in StopUserResultTest() argument
40 mIsSuccess = isSuccess; in StopUserResultTest()
64 assertThat(result.isSuccess()).isEqualTo(mIsSuccess); in testStatus()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserCreationResultTest.java37 assertThat(new UserCreationResult(STATUS_SUCCESSFUL).isSuccess()).isTrue(); in testIsSuccess()
38 assertThat(new UserCreationResult(STATUS_HAL_FAILURE).isSuccess()).isFalse(); in testIsSuccess()
39 assertThat(new UserCreationResult(STATUS_HAL_INTERNAL_FAILURE).isSuccess()).isFalse(); in testIsSuccess()
40 assertThat(new UserCreationResult(STATUS_INVALID_REQUEST).isSuccess()).isFalse(); in testIsSuccess()
41 assertThat(new UserCreationResult(STATUS_ANDROID_FAILURE).isSuccess()).isFalse(); in testIsSuccess()
DUserIdentificationAssociationResponseTest.java36 assertThat(response.isSuccess()).isFalse(); in testFailure_noMessage()
46 assertThat(response.isSuccess()).isFalse(); in testFailure_withMessage()
76 assertThat(response.isSuccess()).isTrue(); in testSuccess_noMessage()
86 assertThat(response.isSuccess()).isTrue(); in testSuccess_withMessage()
DUserSwitchResultTest.java40 assertThat(result.isSuccess()).isFalse(); in testIUserSwitchResult_isSuccess_failure()
47 assertThat(result.isSuccess()).isTrue(); in testIUserSwitchResult_isSuccess_success()
54 assertThat(result.isSuccess()).isTrue(); in testIUserSwitchResult_isSuccess_requestedState()
DCarUserManagerUnitTest.java369 assertThat(result.isSuccess()).isTrue(); in testCreateUser_success()
387 assertThat(result.isSuccess()).isFalse(); in testCreateUser_remoteException()
402 assertThat(result.isSuccess()).isFalse(); in testCreateUser_runtimeException()
417 assertThat(result.isSuccess()).isTrue(); in testCreateGuest_success()
435 assertThat(result.isSuccess()).isFalse(); in testCreateGuest_remoteException()
470 assertThat(response.isSuccess()).isFalse(); in testGetUserIdentificationAssociation_remoteException()
484 assertThat(response.isSuccess()).isFalse(); in testGetUserIdentificationAssociation_runtimeException()
543 assertThat(result.isSuccess()).isFalse(); in testSetUserIdentificationAssociation_remoteException()
561 assertThat(result.isSuccess()).isFalse(); in testSetUserIdentificationAssociation_runtimeException()
588 assertThat(result.isSuccess()).isTrue(); in testSetUserIdentificationAssociation_ok()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DTunnelResponseTest.java38 assertThat(tunnelResponse.isSuccess()).isTrue(); in validResponseData()
49 assertThat(tunnelResponse.isSuccess()).isFalse(); in wrongStatusWord()
62 assertThat(tunnelResponse.isSuccess()).isTrue(); in wrongTopTag()
75 assertThat(tunnelResponse.isSuccess()).isTrue(); in wrongDataTag()
DSwapInAdfResponseTest.java37 assertThat(swapInAdfResponse.isSuccess()).isTrue(); in validResponseData()
48 assertThat(swapInAdfResponse.isSuccess()).isFalse(); in wrongStatusWord()
60 assertThat(swapInAdfResponse.isSuccess()).isTrue(); in wrongDataTag()
DSelectAdfResponseTest.java32 assertThat(selectAdfResponse.isSuccess()).isTrue(); in successResponse()
41 assertThat(selectAdfResponse.isSuccess()).isFalse(); in errorResponse()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DRequestTest.java90 assertThat(newRequest.isSuccess()).isTrue(); in testRequestGetMessagesListing()
104 assertThat(newRequest.isSuccess()).isTrue(); in testRequestGetMessage()
116 assertThat(newRequest.isSuccess()).isTrue(); in testRequestGetFolderListing()
128 assertThat(newRequest.isSuccess()).isTrue(); in testRequestPushMessage()
141 assertThat(newRequest.isSuccess()).isTrue(); in testRequestSetMessageStatus()
162 assertThat(newRequest.isSuccess()).isTrue(); in testRequestSetPath()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DAppSearchResult.java113 public boolean isSuccess() { in isSuccess() method in AppSearchResult
132 if (!isSuccess()) { in getResultValue()
173 if (isSuccess()) { in toString()
212 !otherFailedResult.isSuccess(), in newFailedResult()
DAppSearchBatchResult.java58 public boolean isSuccess() { in isSuccess() method in AppSearchBatchResult
105 if (!isSuccess()) { in checkSuccess()
191 if (result.isSuccess()) { in setResult()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DAppSearchSession.java103 if (result.isSuccess()) { in initialize()
209 if (result.isSuccess()) { in getSchema()
246 if (result.isSuccess()) { in getNamespaces()
613 if (result.isSuccess()) { in getStorageInfo()
673 if (result.isSuccess()) { in setSchemaNoMigrations()
723 if (!getSchemaResult.isSuccess()) { in setSchemaWithMigrations()
765 if (!setSchemaResult.isSuccess()) { in setSchemaWithMigrations()
820 if (!setSchema2Result.isSuccess()) { in setSchemaWithMigrations()
/packages/services/Telephony/src/com/android/phone/euicc/
DEuiccUiDispatcherActivity.java178 isSuccess -> { in grantDefaultPermissionsToLuiApp()
179 if (isSuccess) { in grantDefaultPermissionsToLuiApp()
199 UserHandle.of(UserHandle.myUserId()), mExecutor, isSuccess -> { in revokePermissionFromLuiApps()
200 if (isSuccess) { in revokePermissionFromLuiApps()
/packages/apps/Settings/src/com/android/settings/users/
DRemoveGuestOnExitPreferenceController.java120 boolean isSuccess = mUserManager.setUserEphemeral(guestInfo.id, enable); in onPreferenceChange()
121 if (isSuccess) { in onPreferenceChange()
227 boolean isSuccess = userManager.markGuestForDeletion(guestUserInfo.id); in onClick()
228 if (!isSuccess) { in onClick()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java188 boolean isSuccess = BluetoothShare.isStatusSuccess(mTransInfo.mStatus); in displayWhichDialog()
193 if (isSuccess) { in displayWhichDialog()
196 } else if (!isSuccess) { in displayWhichDialog()
204 if (isSuccess) { in displayWhichDialog()
207 } else if (!isSuccess) { in displayWhichDialog()
217 + isComplete + isSuccess); in displayWhichDialog()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarDevicePolicyManagerTest.java72 .that(result.isSuccess()).isTrue(); in testRemoveUser()
131 result).that(result.isSuccess()).isTrue(); in testCreateUser()
150 .that(result.isSuccess()).isTrue(); in testStartUserInBackground()
169 .that(result.isSuccess()).isTrue(); in testStopUser()
/packages/services/Car/car-lib/src/android/car/user/
DUserStopResult.java90 public static boolean isSuccess(@Status int status) { in isSuccess() method in UserStopResult
96 public boolean isSuccess() { in isSuccess() method in UserStopResult
97 return isSuccess(mStatus); in isSuccess()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserFragment.java208 if (result.isSuccess()) { in createUser()
230 if (result.isSuccess()) { in removeUser()
250 if (result.isSuccess()) { in switchUser()
310 if (!result.isSuccess()) { in isAssociatedKeyFob()
337 if (!result.isSuccess()) { in associateKeyFob()

12345