/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringServiceTest.java | 139 void runTetheringCall(TestTetheringResult result) throws Exception; in runTetheringCall() 186 private void runTether(final TestTetheringResult result) throws Exception { in runTether() 195 runAsNoPermission((result) -> { in testTether() argument 203 runAsTetherPrivileged((result) -> { in testTether() argument 208 runAsWriteSettings((result) -> { in testTether() argument 214 runAsTetheringDisallowed((result) -> { in testTether() argument 224 private void runUnTether(final TestTetheringResult result) throws Exception { in runUnTether() 234 runAsNoPermission((result) -> { in testUntether() argument 242 runAsTetherPrivileged((result) -> { in testUntether() argument 247 runAsWriteSettings((result) -> { in testUntether() argument [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | ServiceManager.cpp | 50 if (auto result = startWatchdogProcessService(mainLooper); !result.ok()) { in startServices() local 54 if (auto result = mWatchdogServiceHelper->init(mWatchdogProcessService); !result.ok()) { in startServices() local 58 if (auto result = startPressureMonitor(); !result.ok()) { in startServices() local 62 if (auto result = startWatchdogPerfService(mWatchdogServiceHelper); !result.ok()) { in startServices() local 65 if (auto result = packageInfoResolver->initWatchdogServiceHelper(mWatchdogServiceHelper); in startServices() local 74 if (auto result = mWatchdogBinderMediator->init(); !result.ok()) { in startServices() local 108 if (auto result = mWatchdogProcessService->start(); !result.ok()) { in startWatchdogProcessService() local 117 if (auto result = mPressureMonitor->init(); !result.ok()) { in startPressureMonitor() local 120 if (auto result = mPressureMonitor->start(); !result.ok()) { in startPressureMonitor() local 129 if (auto result = mWatchdogPerfService->registerDataProcessor( in startWatchdogPerfService() local [all …]
|
D | OveruseConfigurationXmlHelper.cpp | 114 if (const auto result = readExactlyOneElement(kTagComponentType, rootElement); result.ok()) { in readComponentType() local 269 if (const auto result = readExactlyOneElement(kTagComponentLevelThresholds, rootElement); in readComponentLevelThresholds() local 278 if (const auto result = readPerStateBytes(componentLevelThresholdElement); result.ok()) { in readComponentLevelThresholds() local 300 if (const auto result = readPerStateBytes(childElement); result.ok()) { in readPerStateThresholds() local 318 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readPackageSpecificThresholds() local 335 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readAppCategorySpecificThresholds() local 391 const auto result = readIoOveruseAlertThreshold(innerElement); in readSystemWideThresholds() local 405 if (const auto result = readExactlyOneElement(kTagIoOveruseConfiguration, rootElement); in readIoOveruseConfiguration() local 413 if (const auto result = readComponentLevelThresholds(componentType, childElement); in readIoOveruseConfiguration() local 419 if (const auto result = readPackageSpecificThresholds(childElement); result.ok()) { in readIoOveruseConfiguration() local [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ThumbnailCacheTest.java | 74 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/crypto/ |
D | TlsSessionTunnelTest.java | 43 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
|
D | TlsSessionHandshakeTest.java | 67 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/apps/Settings/tests/unit/src/com/android/settings/network/helper/ |
D | QuerySimSlotIndexTest.java | 68 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_nullInput_getNoneNullEmptyList() local 80 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_oneSimAndActivePsim_getList() local 93 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_oneSimAndActiveEsim_getList() local 106 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_twoSimsAndActivePsimActiveEsim_getList() local 120 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_twoSimsAndtwoActiveEsims_getList() local 134 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_twoSimsAndActivePsimInactiveEsim_getList() local 148 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_twoSimsAndActiveEsimInactivePsim_getList() local 162 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in activeSimSlotIndexCall_nullInput_getNoneNullEmptyList() local 174 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in activeSimSlotIndexCall_oneSimAndActivePsim_getList() local 187 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in activeSimSlotIndexCall_oneSimAndActiveEsim_getList() local [all …]
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/ |
D | SnakeCaseConverterTest.kt | 32 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withCamelCaseInput_returnsSnakeCaseString() constant 41 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withEmptyInput_returnsEmptyString() constant 50 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withSnakeCaseInput_returnsSnakeCaseString() constant 59 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withInputHavingUnderscores_preservesUnderscores() constant 68 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withPascalCaseInput_returnsSnakeCaseString() constant 77 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withScreamingSnakeCaseInput_lowerCasesTheString() constant 86 val result = SnakeCaseConverter.fromCamelCase(input) in fromCamelCase_withMixedCaseInput_returnsSnakeCaseString() constant
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
D | Ike3gppExtensionExchangeTest.java | 95 List<IkePayload> result = in testGetRequestPayloadsInEapIkeAuthServerAuthenticatedAndNetworkRequested() local 110 List<IkePayload> result = in testGetRequestPayloadsInEapIkeAuthServerNotAuthenticatedAndNetworkRequested() local 119 List<IkePayload> result = in testGetRequestPayloadsInEapIkeAuthServerAuthenticatedAndNotRequestedByNetwork() local 129 List<IkePayload> result = in testGetRequestPayloadsInEapIkeAuthNotConfigured() local 137 List<IkePayload> result = in testGetRequestPayloadsIkeAuth() local 149 List<IkePayload> result = in testGetResponsePayloadsIkeInfo() local 163 List<IkePayload> result = in testGetResponsePayloadsIkeInfoNotRequestedByNetwork() local 174 List<IkePayload> result = in testGetResponsePayloadsIkeInfo3gppNotConfigured() local 184 List<IkePayload> result = in testGetRequestPayloadsIkeAuthNotConfigured() local 192 List<IkePayload> result = in testGetRequestPayloadsIkeInit() local [all …]
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementApiTest.java | 208 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_verifyVowifiStatus() local 223 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_verifyImsAppsStatus() local 240 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_responseWithVersZero_resetConfiguration() local 257 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_responseWithVersMinusOne_resetConfiguration() local 275 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_responseWithVersMinusTwo_resetConfiguration() local 295 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_defaultEnabledAndResponseWithVersZero_resetConfiguration() local 314 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_defaultEnabledAndResponseWithVersMinusOne_resetConfiguration() local 334 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_defaultEnabledAndResponseWithVersMinusTwo_resetConfiguration() local 349 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_verifyConfigs() local 366 EntitlementResult result = mImsEntitlementApi.checkEntitlementStatus(); in checkEntitlementStatus_resultNull_verifyVowifiStatusAndConfigs() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/regionalpreferences/ |
D | RegionalPreferencesDataUtilsTest.java | 122 String result = RegionalPreferencesDataUtils.temperatureUnitsConverter(mApplicationContext, in temperatureUnitsConverter_inputFahrenheit_resultIsFahrenheitString() local 126 mApplicationContext, "fahrenheit_temperature_unit"), result); in temperatureUnitsConverter_inputFahrenheit_resultIsFahrenheitString() local 131 String result = RegionalPreferencesDataUtils.temperatureUnitsConverter(mApplicationContext, in temperatureUnitsConverter_inputDefault_resultIsDefaultString() local 135 mApplicationContext, "default_string_of_regional_preference"), result); in temperatureUnitsConverter_inputDefault_resultIsDefaultString() local 140 String result = RegionalPreferencesDataUtils.dayConverter(mApplicationContext, in dayConverter_inputWed_resultIsWedString() local 144 mApplicationContext, "wednesday_first_day_of_week"), result); in dayConverter_inputWed_resultIsWedString() local 149 String result = RegionalPreferencesDataUtils.dayConverter(mApplicationContext, in dayConverter_inputDefault_resultIsDefaultString() local 153 mApplicationContext, "default_string_of_regional_preference"), result); in dayConverter_inputDefault_resultIsDefaultString() local 158 String result = RegionalPreferencesDataUtils.dayConverter(mApplicationContext, in calendarConverter_inputDefault_resultIsDefaultString() local 162 mApplicationContext, "default_string_of_regional_preference"), result); in calendarConverter_inputDefault_resultIsDefaultString() local
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ui/viewmodel/ |
D | ChooserRequestTest.kt | 70 val result = readChooserRequest(model, fakeChooserServiceFlags) in missingIntent() constant 85 val result = readChooserRequest(model, fakeChooserServiceFlags) in referrerFillIn() constant 102 val result = readChooserRequest(model, fakeChooserServiceFlags) in referrerPackage_isNullWithNonAppReferrer() constant 117 val result = readChooserRequest(model, fakeChooserServiceFlags) in referrerPackage_fromAppReferrer() constant 131 val result = readChooserRequest(model, fakeChooserServiceFlags) in payloadIntents_includesTargetThenAdditional() constant 144 val result = readChooserRequest(model, fakeChooserServiceFlags) in testRequest_withOnlyRequiredValues() constant 163 val result = readChooserRequest(model, fakeChooserServiceFlags) in testRequest_actionSendWithAdditionalContentUri() constant 182 val result = readChooserRequest(model, fakeChooserServiceFlags) in testRequest_actionSendWithAdditionalContentUri_parametersIgnoredWhenFlagDisabled() constant 201 val result = readChooserRequest(model, fakeChooserServiceFlags) in testRequest_actionSendWithInvalidAdditionalContentUri() constant 215 val result = readChooserRequest(model, fakeChooserServiceFlags) in testRequest_actionSendWithoutAdditionalContentUri() constant [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapapi/ |
D | BluetoothMapContractTest.java | 41 Uri result = BluetoothMapContract.buildAccountUri(TEST_AUTHORITY); in testBuildAccountUri() local 55 Uri result = BluetoothMapContract.buildAccountUriwithId(TEST_AUTHORITY, ACCOUNT_ID); in testBuildAccountUriWithId() local 64 Uri result = BluetoothMapContract.buildMessageUri(TEST_AUTHORITY); in testBuildMessageUri() local 78 Uri result = BluetoothMapContract.buildMessageUri(TEST_AUTHORITY, ACCOUNT_ID); in testBuildMessageUri_withAccountId() local 94 Uri result = in testBuildMessageUriWithId() local 109 Uri result = BluetoothMapContract.buildFolderUri(TEST_AUTHORITY, ACCOUNT_ID); in testBuildFolderUri() local 123 Uri result = BluetoothMapContract.buildConversationUri(TEST_AUTHORITY, ACCOUNT_ID); in testBuildConversationUri() local 132 Uri result = BluetoothMapContract.buildConvoContactsUri(TEST_AUTHORITY); in testBuildConvoContactsUri() local 146 Uri result = BluetoothMapContract.buildConvoContactsUri(TEST_AUTHORITY, ACCOUNT_ID); in testBuildConvoContactsUri_withAccountId() local 162 Uri result = in testBuildConvoContactsUriWithId() local
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/mschapv2/ |
D | EapMsChapV2SuccessRequestTest.java | 63 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
|
D | EapMsChapV2FailureRequestTest.java | 61 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
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/ |
D | AdServicesShellCommandTest.java | 151 int result = runCmd((String[]) null); in testExec_nullShowsHelp() local 162 int result = runCmd(""); in testExec_emptyShowsHelp() local 173 int result = runCmd("help"); in testExec_help() local 184 int result = runCmd("-h"); in testExec_helpShort() local 203 int result = runCmd(cmd); in testExec_invalidCommand() local 216 int result = runCmd(cmd); in testExec_adServicesCommand_throwsRemoteException() local 227 int result = runCmd(cmd); in testExec_adServicesCommand_timeoutHappens() local 237 int result = runCmd("is-system-service-enabled"); in testExec_isSystemServiceEnabled_true() local 249 int result = runCmd("is-system-service-enabled"); in testExec_isSystemServiceEnabled_false() local 261 int result = runCmd("is-system-service-enabled", "--verbose"); in testExec_isSystemServiceEnabled_true_verbose() local [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/validation/types/ |
D | IntentOrUriTest.kt | 41 val result = keyValidator.validate(values::get, CRITICAL) in intent() constant 54 val result = keyValidator.validate(values::get, CRITICAL) in uri() constant 66 val result = keyValidator.validate({ null }, CRITICAL) in missing() constant 79 val result = keyValidator.validate(source = { null }, WARNING) in optional() constant 94 val result = keyValidator.validate(values::get, CRITICAL) in wrongType_required() constant 116 val result = keyValidator.validate(values::get, WARNING) in wrongType_optional() constant
|
D | ParceledArrayTest.kt | 39 val result = keyValidator.validate(values::get, CRITICAL) in valid() constant 52 val result = keyValidator.validate(values::get, CRITICAL) in wrongElementType() constant 75 val result = keyValidator.validate(source = { null }, CRITICAL) in missing() constant 88 val result = keyValidator.validate(source = { null }, WARNING) in optional() constant 102 val result = keyValidator.validate(values::get, CRITICAL) in wrongType() constant
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadMostRecentAggregationsUseCaseTest.kt | 97 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>() constant 134 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories() constant 167 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories() constant 200 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance() constant 217 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>() constant 233 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in loadMostRecentAggregations_forSleep_sessionsSpanOneDay_returnsAggregationInfoForOneDay() constant 259 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in loadMostRecentAggregations_forSleep_sessionsSpanTwoDays_returnsAggregationInfoWithStartAndEndTime() constant 273 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in <lambda>() constant 283 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_whenLoadLastDateWithPriorityDataFails_returnsFailure() constant 297 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>() constant [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | InitialLockSetupServiceTest.java | 106 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/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/ |
D | PolicyComplianceUtilsTest.kt | 54 val result = mPolicyComplianceUtils.isPolicyComplianceActivityResolvableForUser( in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsTrue() constant 64 val result = mPolicyComplianceUtils.isPolicyComplianceActivityResolvableForUser( in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsFalse() constant 78 val result = mPolicyComplianceUtils.startPolicyComplianceActivityForResultIfResolved( in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted() constant 96 val result = mPolicyComplianceUtils.startPolicyComplianceActivityForResultIfResolved( in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted() constant 114 val result = mPolicyComplianceUtils.startPolicyComplianceActivityIfResolved( in startPolicyComplianceActivityIfResolved_activityExists_isStarted() constant 130 val result = mPolicyComplianceUtils.startPolicyComplianceActivityIfResolved( in startPolicyComplianceActivityIfResolved_activityDoesNotExist_notStarted() constant 145 val result = mPolicyComplianceUtils.startPolicyComplianceActivityIfResolved( in startPolicyComplianceActivityIfResolved_fromNonActivityContext_isStartedWithNewTaskFlag() constant 161 val result = mPolicyComplianceUtils.isPolicyComplianceActivityResolvableForManagedUser( in isPolicyComplianceActivityResolvableForManagedUser_withSystemUser_activityExists_returnsTrue() constant 170 val result = mPolicyComplianceUtils.isPolicyComplianceActivityResolvableForManagedUser( in isPolicyComplianceActivityResolvableForManagedUser_withSystemUser_activityDoesNotExist_returnsFalse() constant
|
/packages/services/Car/tools/GenericCarApiBuilder/src/com/android/car/tool/apibuilder/tests/ |
D | ParsedDataHelperTest.java | 35 List<String> result = ParsedDataHelper.getClassNamesOnly(data); in testGetClassNamesOnly() local 46 List<String> result = ParsedDataHelper.getAddedInOrBeforeApisOnly(data); in testGetAddedInOrBeforeApisOnly() local 60 List<String> result = ParsedDataHelper.getHiddenApisOnly(data); in testGetHiddenApisOnly() local 69 List<String> result = ParsedDataHelper.getHiddenApisWithHiddenConstructor(data); in testGetHiddenApisWithHiddenConstructor() local 81 List<String> result = ParsedDataHelper.getAllApis(data); in testGetAllApis() local 104 List<String> result = ParsedDataHelper.getAllApisWithConstructor(data); in testGetAllApisWithConstructor() local 142 List<String> result = ParsedDataHelper.getApisWithVersion(data); in testGetApisWithVersion() local
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/ |
D | ExerciseRouteRequestTest.kt | 90 val result = in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked() constant 113 val result = in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission() constant 136 val result = in requestRoute_showsDialog_clickDeny_returnsNull_permissionRemainsRevoked() constant 157 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_ownSession_writeRouteGranted_readRoutesDenied_returnsRoute() constant 175 val result = in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_notUserFixed_showsDialog() constant 200 val result = in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_userFixed_returnsNull() constant 224 val result = in requestRoute_ownSession_writeRouteDenied_readRoutesGranted_returnsRoute() constant 247 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_readRoutesGranted_doesNotShowDialog_returnsRoute() constant 265 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_sessionWithoutRoute_returnsNull() constant 279 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_nonExistingSession_returnsNull() constant [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/ |
D | AggregationTypeIdMapper.java | 272 private AggregateResult<Long> getLongResult(long result) { in getLongResult() 277 private AggregateResult<Double> getDoubleResult(double result) { in getDoubleResult() 282 private AggregateResult<Energy> getEnergyResult(double result) { in getEnergyResult() 287 private AggregateResult<Power> getPowerResult(double result) { in getPowerResult() 292 private AggregateResult<TemperatureDelta> getTemperatureDeltaResult(double result) { in getTemperatureDeltaResult() 297 private AggregateResult<Pressure> getPressureResult(double result) { in getPressureResult() 302 private AggregateResult<Length> getLengthResult(double result) { in getLengthResult() 307 private AggregateResult<Volume> getVolumeResult(double result) { in getVolumeResult() 312 private AggregateResult<Mass> getMassResult(double result) { in getMassResult() 317 private AggregateResult<Velocity> getVelocityResult(double result) { in getVelocityResult() [all …]
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetycenter/ui/model/ |
D | SafetyCenterUiDataTest.kt | 48 val result = SafetyCenterUiData(safetyCenterData).getMatchingGroup(MATCHING_GROUP_ID) in getMatchingGroup_validMatchingGroup_returnsExpectedEntryGroup() constant 58 val result = SafetyCenterUiData(safetyCenterData).getMatchingGroup(MATCHING_GROUP_ID) in getMatchingGroup_noMatchingGroup_returnsNull() constant 70 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_defaultMatchingIssue_noExtras_returnsListOfIssues() constant 93 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_defaultMatchingIssue_unrelatedExtras_returnsListOfIssues() constant 116 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_mappingMatchingIssue_returnsListOfIssues() constant 131 val result = SafetyCenterUiData(safetyCenterData).getMatchingIssues(MATCHING_GROUP_ID) in getMatchingIssues_noDefaultMatchingIssue_returnsEmptyList() constant 145 val result = in getMatchingDismissedIssues_defaultMatchingDismissedIssue_returnsListOfDismissedIssues() constant 169 val result = in getMatchingDismissedIssues_defaultMatchingDismissedIssue2_returnsListOfDismissedIssues() constant 193 val result = in getMatchingDismissedIssues_mappingMatchingDismissedIssue_returnsListOfDismissedIssues() constant 209 val result = in getMatchingDismissedIssues_noDefaultMatchingDismissedIssue_returnsEmptyList() constant [all …]
|