Home
last modified time | relevance | path

Searched defs:result (Results 1 – 25 of 1351) sorted by relevance

12345678910>>...55

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
DTlsSessionTunnelTest.java43 TlsResult result = mTlsSession.processOutgoingData(SAMPLE_APPLICATION_TLS_MESSAGE); in testEncryptMessage_success() local
60 TlsResult result = mTlsSession.processOutgoingData(SAMPLE_APPLICATION_TLS_MESSAGE); in testEncryptMessage_failure() local
78 TlsResult result = mTlsSession.processOutgoingData(SAMPLE_APPLICATION_TLS_MESSAGE); in testEncryptMessage_overflow() local
96 TlsResult result = mTlsSession.processOutgoingData(SAMPLE_APPLICATION_TLS_MESSAGE); in testEncryptMessage_underflow() local
111 TlsResult result = mTlsSession.processOutgoingData(SAMPLE_APPLICATION_TLS_MESSAGE); in testEncryptMessage_closed() local
122 TlsResult result = mTlsSession.processIncomingData(SAMPLE_PACKET_TLS_MESSAGE); in testDecryptMessage_success() local
141 TlsResult result = mTlsSession.processIncomingData(SAMPLE_PACKET_TLS_MESSAGE); in testDecryptMessage_failure() local
161 TlsResult result = mTlsSession.processIncomingData(SAMPLE_PACKET_TLS_MESSAGE); in testDecryptMessage_overflow() local
181 TlsResult result = mTlsSession.processIncomingData(SAMPLE_PACKET_TLS_MESSAGE); in testDecryptMessage_underflow() local
198 TlsResult result = mTlsSession.processIncomingData(SAMPLE_PACKET_TLS_MESSAGE); in testDecryptMessage_closed() local
DTlsSessionHandshakeTest.java67 TlsResult result = mTlsSession.startHandshake(); in testStartHandshake() local
79 TlsResult result = mTlsSession.startHandshake(); in testStartHandshake_fail() local
97 TlsResult result = in testprocessHandshakeData_success() local
127 TlsResult result = in testprocessHandshakeData_wrapFailure() local
178 TlsResult result = in testprocessHandshakeData_wrapClosed() local
209 TlsResult result = in testprocessHandshakeData_wrapFinished() local
225 TlsResult result = in testprocessHandshakeData_notHandshaking() local
243 TlsResult result = in testprocessHandshakeData_delegatedTasks() local
262 TlsResult result = in verifyCloseConnection() local
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringServiceTest.java126 void runTetheringCall(TestTetheringResult result) throws Exception; in runTetheringCall()
162 private void runTether(final TestTetheringResult result) throws Exception { in runTether()
170 runAsNoPermission((result) -> { in testTether() argument
178 runAsTetherPrivileged((result) -> { in testTether() argument
183 runAsWriteSettings((result) -> { in testTether() argument
190 private void runUnTether(final TestTetheringResult result) throws Exception { in runUnTether()
199 runAsNoPermission((result) -> { in testUntether() argument
207 runAsTetherPrivileged((result) -> { in testUntether() argument
212 runAsWriteSettings((result) -> { in testUntether() argument
219 private void runSetUsbTethering(final TestTetheringResult result) throws Exception { in runSetUsbTethering()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DThumbnailCacheTest.java74 Result result = mCache.getThumbnail(URI_1, USER_ID_0, MID_SIZE); in testMiss() local
82 Result result = mCache.getThumbnail(URI_0, USER_ID_1, MID_SIZE); in testMiss_DifferentUser() local
90 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Exact() local
100 Result result = mCache.getThumbnail(URI_0, USER_ID_0, LARGE_SIZE); in testHit_Smaller() local
110 Result result = mCache.getThumbnail(URI_0, USER_ID_0, SMALL_SIZE); in testHit_Larger() local
121 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Larger_HasBothSize() local
135 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Exact_MultiplePut() local
145 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_EqualLastModified() local
156 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testEvictOldest_SizeExceeded() local
169 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testCacheShrink_OnTrimMemory_Moderate() local
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2SuccessRequestTest.java63 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequest() local
77 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestEmptyMessage() local
92 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestMissingMessage() local
107 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestMissingMessageWithSpace() local
124 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestWrongOpCode() local
133 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestShortMessage() local
142 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestInvalidPrefix() local
151 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestShortAuthString() local
160 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestInvalidAuthString() local
169 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestExtraAttribute() local
DEapMsChapV2FailureRequestTest.java61 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequest() local
78 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestMissingMessage() local
96 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestMissingMessageWithSpace() local
116 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestInvalidErrorCode() local
124 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestInvalidChallenge() local
132 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestShortChallenge() local
140 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestInvalidPasswordChangeProtocol() local
149 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureExtraAttribute() local
DEapMsChapV2ChallengeRequestTest.java58 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequest() local
72 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestWrongOpCode() local
81 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestShortChallenge() local
90 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestShortMsLength() local
99 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestLongMsLength() local
/packages/services/Car/cpp/watchdog/server/src/
DServiceManager.cpp49 if (const auto result = startProcessAnrMonitor(looper); !result.ok()) { in startServices() local
52 if (const auto result = startPerfService(); !result.ok()) { in startServices() local
56 if (const auto result = sWatchdogServiceHelper->init(sWatchdogProcessService); !result.ok()) { in startServices() local
59 if (const auto result = packageInfoResolver->initWatchdogServiceHelper(sWatchdogServiceHelper); in startServices() local
88 if (const auto result = service->start(); !result.ok()) { in startProcessAnrMonitor() local
98 if (const auto result = service->registerDataProcessor(sp<IoPerfCollection>::make()); in startPerfService() local
102 if (const auto result = service->start(); !result.ok()) { in startPerfService() local
114 if (const auto result = sWatchdogBinderMediator->init(); !result.ok()) { in startBinderMediator() local
DOveruseConfigurationXmlHelper.cpp115 if (const auto result = readExactlyOneElement(kTagComponentType, rootElement); result.ok()) { in readComponentType() local
270 if (const auto result = readExactlyOneElement(kTagComponentLevelThresholds, rootElement); in readComponentLevelThresholds() local
279 if (const auto result = readPerStateBytes(componentLevelThresholdElement); result.ok()) { in readComponentLevelThresholds() local
301 if (const auto result = readPerStateBytes(childElement); result.ok()) { in readPerStateThresholds() local
319 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readPackageSpecificThresholds() local
336 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readAppCategorySpecificThresholds() local
392 const auto result = readIoOveruseAlertThreshold(innerElement); in readSystemWideThresholds() local
406 if (const auto result = readExactlyOneElement(kTagIoOveruseConfiguration, rootElement); in readIoOveruseConfiguration() local
414 if (const auto result = readComponentLevelThresholds(componentType, childElement); in readIoOveruseConfiguration() local
420 if (const auto result = readPackageSpecificThresholds(childElement); result.ok()) { in readIoOveruseConfiguration() local
[all …]
DWatchdogPerfService.cpp151 if (const auto result = processor->init(); !result.ok()) { in registerDataProcessor() local
220 if (int result = pthread_setname_np(pthread_self(), "WatchdogPerfSvc"); result != 0) { in start() local
313 const auto& result = parseSecondsFlag(args, i + 1); in onCustomCollection() local
323 const auto& result = parseSecondsFlag(args, i + 1); in onCustomCollection() local
349 if (const auto& result = startCustomCollection(interval, maxDuration, filterPackages); in onCustomCollection() local
383 if (const auto& result = dumpCollectorsStatusLocked(fd); !result.ok()) { in onDump() local
401 if (const auto result = processor->onDump(fd); !result.ok()) { in onDump() local
488 if (const auto result = dumpCollectorsStatusLocked(fd); !result.ok()) { in endCustomCollection() local
500 if (const auto result = processor->onCustomCollectionDump(fd); !result.ok()) { in endCustomCollection() local
514 Result<void> result; in handleMessage() local
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DInitialLockSetupServiceTest.java106 int result = service.checkValidLock(LockTypes.PASSWORD, "hi".getBytes()); in testCheckValidLock_tooShort() local
115 int result = service.checkValidLock(LockTypes.PASSWORD, "password".getBytes()); in testCheckValidLock_longEnough() local
124 int result = service.checkValidLock(LockTypes.PIN, "12a3".getBytes()); in testCheckValidLockPin_withLetters() local
137 int result = service.checkValidLock(LockTypes.PATTERN, pattern); in testCheckValidLockPattern_tooShort() local
150 int result = service.checkValidLock(LockTypes.PATTERN, pattern); in testCheckValidLockPattern_longEnough() local
160 int result = service.setLock(LockTypes.PASSWORD, "password".getBytes()); in testSetLockPassword_doesNotWorkWithExistingPassword() local
168 int result = service.setLock(LockTypes.PASSWORD, "hi".getBytes()); in testSetLockPassword_doesNotWorkWithInvalidPassword() local
179 int result = service.setLock(LockTypes.PASSWORD, password); in testSetLockPassword_setsDevicePassword() local
191 int result = service.setLock(LockTypes.PIN, password); in testSetLockPin_setsDevicePin() local
212 int result = service.setLock(LockTypes.PATTERN, patternBytes); in testSetLockPattern_setsDevicePattern() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DCarTelemetryServiceTest.java55 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_newManifest_shouldSucceed() local
64 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_duplicateManifest_shouldFail() local
71 int result = mService.addManifest(mManifestKeyV1, "bad manifest".getBytes()); in testAddManifest_invalidManifest_shouldFail() local
80 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_olderManifest_shouldFail() local
89 int result = mService.addManifest(mManifestKeyV2, mMetricsConfig.toByteArray()); in testAddManifest_newerManifest_shouldReplace() local
118 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testRemoveAllManifests_shouldSucceed() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimTypeDataTest.java92 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(EAP_SIM_START_SUBTYPE); in testDecode() local
112 DecodeResult<EapSimTypeData> result = in testDecodeEncode() local
121 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(null); in testDecodeNullTypeData() local
128 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(INVALID_SUBTYPE); in testDecodeInvalidSubtype() local
135 DecodeResult<EapSimTypeData> result = in testDecodeInvalidAtRand() local
143 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(SHORT_TYPE_DATA); in testDecodeShortPacket() local
150 DecodeResult<EapSimTypeData> result = in testDecodeInvalidEapAttribute() local
169 DecodeResult<EapSimTypeData> result = in testDecodeDuplicateAttributes() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCreateUserResultTest.java32 CreateUserResult result = new CreateUserResult(null); in testNullConstructor() local
42 CreateUserResult result = new CreateUserResult( in testSuccess() local
53 CreateUserResult result = new CreateUserResult( in testFailure_nullUserInfo() local
70 CreateUserResult result = new CreateUserResult( in testFailure_nullUserHandle() local
91 CreateUserResult result = new CreateUserResult(new UserCreationResult(userCreationStatus)); in failureTest() local
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/
DRestrictedOutgoingSipRequestValidatorTest.java46 ValidationResult result = new RestrictedOutgoingSipRequestValidator().validate(msg); in testRegisterNotAllowed() local
64 ValidationResult result = new RestrictedOutgoingSipRequestValidator().validate(msg); in testPublishNotAllowed() local
83 ValidationResult result = new RestrictedOutgoingSipRequestValidator().validate(msg); in testOptionsNotAllowed() local
104 ValidationResult result = new RestrictedOutgoingSipRequestValidator().validate(msg); in testInviteAllowed() local
123 ValidationResult result = new RestrictedOutgoingSipRequestValidator().validate(msg); in testResponseAllowed() local
DRestrictedOutgoingSubscribeValidatorTest.java49 ValidationResult result = new MalformedSipMessageValidator().validate(msg); in testValidUnrelatedRequest() local
68 ValidationResult result = new MalformedSipMessageValidator().validate(msg); in testValidUnrelatedResponse() local
85 ValidationResult result = new RestrictedOutgoingSubscribeValidator().validate(msg); in testValidSubscribeRequest() local
102 ValidationResult result = new RestrictedOutgoingSubscribeValidator().validate(msg); in testInvalidSubscribeRequest() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppExtensionExchangeTest.java80 List<IkePayload> result = in testGetRequestPayloadsIkeAuth() local
94 List<IkePayload> result = in testGetRequestPayloadsIkeAuthNotConfigured() local
102 List<IkePayload> result = in testGetRequestPayloadsIkeInit() local
110 List<IkePayload> result = in testExtract3gppResponsePayloadsIkeAuth() local
138 List<IkePayload> result = in testExtract3gppResponsePayloadsIkeAuthNotConfigured() local
147 List<IkePayload> result = in testExtract3gppResponsePayloadsIkeInit() local
156 List<IkePayload> result = in testExtract3gppResponsePayloadsIkeAuthNo3gpp() local
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java105 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() local
116 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() local
129 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() local
140 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() local
155 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() local
168 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() local
178 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() local
194 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() local
215 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testPackageIsNotDoubleCounted() local
227 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheOveragesAreCountedAsFree() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapStateTest.java77 EapResult result = mEapState.process(null); in testProcessNullPacket() local
86 EapResult result = mEapState.process(REQUEST_UNSUPPORTED_TYPE_PACKET); in testProcessUnsupportedEapDataType() local
95 EapResult result = mEapState.process(SHORT_PACKET); in testProcessDecodeFailure() local
104 EapResult result = mEapState.process(EAP_RESPONSE_NOTIFICATION_PACKET); in testProcessResponse() local
113 EapResult result = mEapState.process(EAP_REQUEST_NAK_PACKET); in testProcessNakRequest() local
122 EapResult result = mEapState.process(EAP_REQUEST_MD5_CHALLENGE); in testProcessMd5Challenge() local
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java104 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testLoadingApps() local
115 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() local
128 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() local
139 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() local
155 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() local
168 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() local
183 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() local
192 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testCacheOveragesAreCountedAsFree() local
205 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testAppsAreFiltered() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserSwitchResultTest.java30 UserSwitchResult result = in testIUserSwitchResult_checkStatusAndMessage() local
38 UserSwitchResult result = in testIUserSwitchResult_isSuccess_failure() local
45 UserSwitchResult result = in testIUserSwitchResult_isSuccess_success() local
52 UserSwitchResult result = in testIUserSwitchResult_isSuccess_requestedState() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/utils/
DLogTest.java36 String result = new Log(TAG, false, false).pii(PII); in testPii() local
37 assertEquals(Integer.toString(PII.hashCode()), result); in testPii() local
40 assertEquals(Integer.toString(PII.hashCode()), result); in testPii() local
43 assertEquals(Integer.toString(PII.hashCode()), result); in testPii() local
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/
DRootItemListBuilderTest.java71 List<RootItem> result = mBuilder.getList(); in testGetList_empty() local
84 List<RootItem> result = mBuilder.getList(); in testGetList_singleUser() local
105 List<RootItem> result = mBuilder.getList(); in testGetList_twoUsers_allMultiProfileRootsMatchOther_defaultUser() local
130 List<RootItem> result = mBuilder.getList(); in testGetList_twoUsers_allMultiProfileRootsMatchOther_otherUser() local
152 List<RootItem> result = mBuilder.getList(); in testGetList_twoUsers_defaultUserHasAllMatchingRoots() local
174 List<RootItem> result = mBuilder.getList(); in testGetList_twoUsers_secondUserFillsUpNonMatchingRoots() local
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementApiTest.java150 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_verifyVowifiStatus() local
165 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_verifyImsAppsStatus() local
180 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_verifyConfigs() local
199 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_resultNull_verifyVowifiStatusAndConfigs() local
220 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_httpResponse511_dataStoreReset() local
244 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_httpResponse511_fullAuthnDone() local
270 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_httpResponse503WithDateTime_returnsRetryAfter() local
293 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_httpResponse503WithNumericValue_returnsRetryAfter() local
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DDownloadsDeletionTypeTest.java72 DownloadsResult result = new DownloadsResult(); in testFetchDownloads() local
86 DownloadsResult result = new DownloadsResult(); in testSetChecked() local
107 DownloadsResult result = new DownloadsResult(); in testUncheckedFilesDoNotCountForSize() local
126 DownloadsResult result = new DownloadsResult(); in testSaveAndRestoreRemembersUncheckedFiles() local
145 DownloadsResult result = new DownloadsResult(); in testCallbackOnFileLoad() local
171 DownloadsResult result = new DownloadsResult(); in testLoadingState_completeEmptyOnNothingFound() local
179 DownloadsResult result = new DownloadsResult(); in testLoadingState_completeOnDeletableContentFound() local

12345678910>>...55