/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/ |
D | HostsideRestrictBackgroundNetworkTests.java | 36 public void setUp() throws Exception { in setUp() 42 public void tearDown() throws Exception { in tearDown() 48 public void testDataWarningReceiver() throws Exception { in testDataWarningReceiver() 58 public void testDataSaverMode_disabled() throws Exception { in testDataSaverMode_disabled() 64 public void testDataSaverMode_whitelisted() throws Exception { in testDataSaverMode_whitelisted() 70 public void testDataSaverMode_enabled() throws Exception { in testDataSaverMode_enabled() 76 public void testDataSaverMode_blacklisted() throws Exception { in testDataSaverMode_blacklisted() 82 public void testDataSaverMode_reinstall() throws Exception { in testDataSaverMode_reinstall() 99 public void testDataSaverMode_requiredWhitelistedPackages() throws Exception { in testDataSaverMode_requiredWhitelistedPackages() 105 public void testDataSaverMode_broadcastNotSentOnUnsupportedDevices() throws Exception { in testDataSaverMode_broadcastNotSentOnUnsupportedDevices() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/ |
D | HostsideVpnTests.java | 28 public void setUp() throws Exception { in setUp() 34 public void tearDown() throws Exception { in tearDown() 39 public void testChangeUnderlyingNetworks() throws Exception { in testChangeUnderlyingNetworks() 44 public void testDefault() throws Exception { in testDefault() 49 public void testAppAllowed() throws Exception { in testAppAllowed() 54 public void testAppDisallowed() throws Exception { in testAppDisallowed() 59 public void testSocketClosed() throws Exception { in testSocketClosed() 64 public void testGetConnectionOwnerUidSecurity() throws Exception { in testGetConnectionOwnerUidSecurity() 69 public void testSetProxy() throws Exception { in testSetProxy() 74 public void testSetProxyDisallowedApps() throws Exception { in testSetProxyDisallowedApps() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionControllerTest.java | 146 private IkeConnectionController buildIkeConnectionCtrl() throws Exception { in buildIkeConnectionCtrl() 177 throws Exception { in buildIkeConnectionCtrlWithNetwork() 189 public void setUp() throws Exception { in setUp() 232 public void tearDown() throws Exception { in tearDown() 237 throws Exception { in verifyKeepalive() 254 private void verifySocketBoundToNetwork(IkeSocket socket, Network network) throws Exception { in verifySocketBoundToNetwork() 263 throws Exception { in verifySetup() 277 private void verifyDscpSetForSocket(Class<? extends IkeSocket> socketType) throws Exception { in verifyDscpSetForSocket() 310 private void verifySetupAndTeardownWithNw(Network callerConfiguredNw) throws Exception { in verifySetupAndTeardownWithNw() 350 private void verifyTearDownInSecondSetup(Network callerConfiguredNw) throws Exception { in verifyTearDownInSecondSetup() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | DeviceAdminAddExplanationPreferenceControllerTest.java | 43 public void testGetAvailabilityStatus_noAdmin() throws Exception { in testGetAvailabilityStatus_noAdmin() 54 public void testGetAvailabilityStatus_noAdmin_zoneWrite() throws Exception { in testGetAvailabilityStatus_noAdmin_zoneWrite() 66 public void testGetAvailabilityStatus_noAdmin_zoneRead() throws Exception { in testGetAvailabilityStatus_noAdmin_zoneRead() 78 public void testGetAvailabilityStatus_noAdmin_zoneHidden() throws Exception { in testGetAvailabilityStatus_noAdmin_zoneHidden() 90 public void testGetAvailabilityStatus_deviceOwner_noReason() throws Exception { in testGetAvailabilityStatus_deviceOwner_noReason() 98 public void testGetAvailabilityStatus_deviceOwner_noReason_zoneWrite() throws Exception { in testGetAvailabilityStatus_deviceOwner_noReason_zoneWrite() 107 public void testGetAvailabilityStatus_deviceOwner_noReason_zoneRead() throws Exception { in testGetAvailabilityStatus_deviceOwner_noReason_zoneRead() 116 public void testGetAvailabilityStatus_deviceOwner_noReason_zoneHidden() throws Exception { in testGetAvailabilityStatus_deviceOwner_noReason_zoneHidden() 125 public void testGetAvailabilityStatus_deviceOwner_withReason() throws Exception { in testGetAvailabilityStatus_deviceOwner_withReason() 134 public void testGetAvailabilityStatus_deviceOwner_withReason_zoneWrite() throws Exception { in testGetAvailabilityStatus_deviceOwner_withReason_zoneWrite() [all …]
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | FinalizationControllerImplTest.java | 78 public void notifyRestrictionsCleared_startsReportingWork() throws Exception { in notifyRestrictionsCleared_startsReportingWork() 84 Futures.getChecked(clearedFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in notifyRestrictionsCleared_startsReportingWork() 90 List<WorkInfo> workInfos = Futures.getChecked(workInfosFuture, Exception.class); in notifyRestrictionsCleared_startsReportingWork() 97 public void finalizeNotEnrolledDevice_doesNotStartReportingWork() throws Exception { in finalizeNotEnrolledDevice_doesNotStartReportingWork() 103 Futures.getChecked(finalizeFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in finalizeNotEnrolledDevice_doesNotStartReportingWork() 109 List<WorkInfo> workInfos = Futures.getChecked(workInfosFuture, Exception.class); in finalizeNotEnrolledDevice_doesNotStartReportingWork() 117 public void reportingFinishedSuccessfully_fullyFinalizes() throws Exception { in reportingFinishedSuccessfully_fullyFinalizes() 123 Futures.getChecked(clearedFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in reportingFinishedSuccessfully_fullyFinalizes() 130 Futures.getChecked(reportedFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in reportingFinishedSuccessfully_fullyFinalizes() 138 public void unreportedStateInitializedFromDisk_reportsWork() throws Exception { in unreportedStateInitializedFromDisk_reportsWork() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeConfigPayloadTest.java | 184 public void setUp() throws Exception { in setUp() 207 public void testDecodeConfigRequest() throws Exception { in testDecodeConfigRequest() 247 public void testDecodeConfigResponse() throws Exception { in testDecodeConfigResponse() 284 public void testDecodeConfigRespWithTwoNetmask() throws Exception { in testDecodeConfigRespWithTwoNetmask() 296 public void testDecodeConfigRespNetmaskFoundWithoutIpv4Addr() throws Exception { in testDecodeConfigRespNetmaskFoundWithoutIpv4Addr() 325 public void testBuildAndEncodeOutboundConfig() throws Exception { in testBuildAndEncodeOutboundConfig() 412 public void testDecodeIpv4AddressWithValue() throws Exception { in testDecodeIpv4AddressWithValue() 421 public void testDecodeIpv4AddressWithoutValue() throws Exception { in testDecodeIpv4AddressWithoutValue() 430 public void testDecodeIpv4AddressWithInvalidValue() throws Exception { in testDecodeIpv4AddressWithInvalidValue() 442 public void testEncodeIpv4AddressWithValue() throws Exception { in testEncodeIpv4AddressWithValue() [all …]
|
D | IkeNotifyPayloadTest.java | 97 public void testDecodeNotifyPayloadSpiUnset() throws Exception { in testDecodeNotifyPayloadSpiUnset() 111 public void testDecodeNotifyPayloadSpiSet() throws Exception { in testDecodeNotifyPayloadSpiSet() 123 public void testGenerateNatDetectionData() throws Exception { in testGenerateNatDetectionData() 137 throws Exception { in verifyHandleCookieAndGenerateCopy() 153 public void testHandleCookieAndGenerateCopy() throws Exception { in testHandleCookieAndGenerateCopy() 158 public void testHandleCookieWithTooSmallLengthOfData() throws Exception { in testHandleCookieWithTooSmallLengthOfData() 163 public void testHandleCookieWithTooLargeLengthOfData() throws Exception { in testHandleCookieWithTooLargeLengthOfData() 168 public void testHandleCookie2AndGenerateCopy() throws Exception { in testHandleCookie2AndGenerateCopy() 173 public void testHandleCookie2WithTooSmallLengthOfData() throws Exception { in testHandleCookie2WithTooSmallLengthOfData() 178 public void testHandleCookie2WithTooLargeLengthOfData() throws Exception { in testHandleCookie2WithTooLargeLengthOfData() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/measurement/src/com/android/adservices/tests/cts/measurement/ |
D | MeasurementManagerCtsTest.java | 102 public void setup() throws Exception { in setup() 114 public void testMeasurementApiDisabled_lowRamDevice() throws Exception { in testMeasurementApiDisabled_lowRamDevice() 126 throws Exception { in testRegisterSource_withNoServerSetupWithCallbackOsReceiver_noErrors() 132 (OutcomeReceiver<Object, Exception>) result -> countDownLatch.countDown()); in testRegisterSource_withNoServerSetupWithCallbackOsReceiver_noErrors() 138 throws Exception { in testRegisterSource_withNoServerSetupWithCallbackCustomReceiver_noErrors() 144 (AdServicesOutcomeReceiver<Object, Exception>) in testRegisterSource_withNoServerSetupWithCallbackCustomReceiver_noErrors() 152 throws Exception { in testRegisterSource_withLocalhostUriNonDebuggableCallerWithOsReceiver_fails() 155 OutcomeReceiver<Object, Exception> osCallback = in testRegisterSource_withLocalhostUriNonDebuggableCallerWithOsReceiver_fails() 163 public void onError(Exception error) { in testRegisterSource_withLocalhostUriNonDebuggableCallerWithOsReceiver_fails() 177 throws Exception { in testRegisterSource_withLocalhostUriNonDebuggableCallerWithCustomReceiver_fails() [all …]
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | RestrictedStoragePermissionTest.java | 84 public void testTargetingSdk22DefaultWhitelistedHasFullAccess() throws Exception { in testTargetingSdk22DefaultWhitelistedHasFullAccess() 94 public void testTargetingSdk22OptInWhitelistedHasIsolatedAccess() throws Exception { in testTargetingSdk22OptInWhitelistedHasIsolatedAccess() 104 public void testTargetingSdk28DefaultWhitelistedHasFullAccess() throws Exception { in testTargetingSdk28DefaultWhitelistedHasFullAccess() 114 public void testTargetingSdk28OptInWhitelistedHasIsolatedAccess() throws Exception { in testTargetingSdk28OptInWhitelistedHasIsolatedAccess() 124 public void testTargetingSdk29DefaultWhitelistedHasIsolatedAccess() throws Exception { in testTargetingSdk29DefaultWhitelistedHasIsolatedAccess() 134 public void testTargetingSdk29DefaultNotWhitelistedHasIsolatedAccess() throws Exception { in testTargetingSdk29DefaultNotWhitelistedHasIsolatedAccess() 144 public void testTargetingSdk29OptOutWhitelistedHasFullAccess() throws Exception { in testTargetingSdk29OptOutWhitelistedHasFullAccess() 154 public void testTargetingSdk29OptOutNotWhitelistedHasIsolatedAccess() throws Exception { in testTargetingSdk29OptOutNotWhitelistedHasIsolatedAccess() 164 public void testTargetingSdk29CanOptOutViaUpdate() throws Exception { in testTargetingSdk29CanOptOutViaUpdate() 173 public void testTargetingSdk29CanOptOutViaDowngradeTo28() throws Exception { in testTargetingSdk29CanOptOutViaDowngradeTo28() [all …]
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/ |
D | CarAudioManagerUnitTest.java | 160 public void setUp() throws Exception { in setUp() 177 public void tearDown() throws Exception { in tearDown() 183 public void isAudioFeatureEnabled() throws Exception { in isAudioFeatureEnabled() 192 public void isAudioFeatureEnabled_withServiceRemoteException_returnsFalse() throws Exception { in isAudioFeatureEnabled_withServiceRemoteException_returnsFalse() 202 public void setGroupVolume_withoutZoneId() throws Exception { in setGroupVolume_withoutZoneId() 210 public void setGroupVolume_withZoneId() throws Exception { in setGroupVolume_withZoneId() 219 public void setGroupVolume_withServiceRemoteException() throws Exception { in setGroupVolume_withServiceRemoteException() 230 public void getGroupMaxVolume_withoutZoneId() throws Exception { in getGroupMaxVolume_withoutZoneId() 240 public void getGroupMaxVolume_withZoneId() throws Exception { in getGroupMaxVolume_withZoneId() 250 public void getGroupMaxVolume_withServiceRemoteException() throws Exception { in getGroupMaxVolume_withServiceRemoteException() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecManagerTunnelTest.java | 135 public static void setUpBeforeClass() throws Exception { in setUpBeforeClass() 153 public void setUp() throws Exception { in setUp() 164 private static void tearDownTunWrapperIfNotNull(TunNetworkWrapper tunWrapper) throws Exception { in tearDownTunWrapperIfNotNull() 171 public static void tearDownAfterClass() throws Exception { in tearDownAfterClass() 188 TunNetworkWrapper(InetAddress... addresses) throws Exception { in TunNetworkWrapper() 206 } catch (Exception e) { in TunNetworkWrapper() 214 public void tearDown() throws Exception { in tearDown() 230 public void testSecurityExceptionCreateTunnelInterfaceWithoutAppop() throws Exception { in testSecurityExceptionCreateTunnelInterfaceWithoutAppop() 245 public void testSecurityExceptionBuildTunnelTransformWithoutAppop() throws Exception { in testSecurityExceptionBuildTunnelTransformWithoutAppop() 286 throws Exception; in run() [all …]
|
D | IpSecManagerTest.java | 137 public void testAllocSpi() throws Exception { in testAllocSpi() 161 private static int findUnusedPort() throws Exception { in findUnusedPort() 169 private static FileDescriptor getBoundUdpSocket(InetAddress address) throws Exception { in getBoundUdpSocket() 194 boolean useJavaSockets) throws Exception { in checkUnconnectedUdp() 224 boolean useJavaSockets) throws Exception { in checkTcp() 280 throws Exception { in buildTransportModeTransform() 305 private void doTestCreateTransform(String loopbackAddrString, boolean encap) throws Exception { in doTestCreateTransform() 366 private UdpEncapsulationSocket getPrivilegedUdpEncapSocket(boolean ipv6) throws Exception { in getPrivilegedUdpEncapSocket() 388 static void assumeExperimentalIpv6UdpEncapSupported() throws Exception { 410 public void testCreateTransformIpv4() throws Exception { [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/ |
D | CredentialTest.java | 138 public void verifyParcelWithDefault() throws Exception { in verifyParcelWithDefault() 148 public void verifyParcelWithCertificateCredential() throws Exception { in verifyParcelWithCertificateCredential() 158 public void verifyParcelWithSimCredential() throws Exception { in verifyParcelWithSimCredential() 168 public void verifyParcelWithUserCredential() throws Exception { in verifyParcelWithUserCredential() 177 public void validateUserCredential() throws Exception { in validateUserCredential() 193 public void validateUserCredentialWithoutCaCert() throws Exception { in validateUserCredentialWithoutCaCert() 207 public void validateUserCredentialWithEapTls() throws Exception { in validateUserCredentialWithEapTls() 225 public void validateUserCredentialWithoutRealm() throws Exception { in validateUserCredentialWithoutRealm() 242 public void validateUserCredentialWithoutUsername() throws Exception { in validateUserCredentialWithoutUsername() 259 public void validateUserCredentialWithoutPassword() throws Exception { in validateUserCredentialWithoutPassword() [all …]
|
D | UpdateParameterTest.java | 70 private static void verifyParcel(UpdateParameter paramToWrite) throws Exception { in verifyParcel() 86 public void verifyParcelWithEmptyUpdateParameter() throws Exception { in verifyParcelWithEmptyUpdateParameter() 96 public void verifyParcelWithFullUpdateParameter() throws Exception { in verifyParcelWithFullUpdateParameter() 107 public void verifyCopyConstructionWithNullSource() throws Exception { in verifyCopyConstructionWithNullSource() 120 public void verifyCopyConstructionWithFullUpdateParameter() throws Exception { in verifyCopyConstructionWithFullUpdateParameter() 132 public void validateUpdateParameterWithDefault() throws Exception { in validateUpdateParameterWithDefault() 144 public void validateUpdateParameterWithFullPolicy() throws Exception { in validateUpdateParameterWithFullPolicy() 154 public void validateUpdateParameterWithUnknowMethod() throws Exception { in validateUpdateParameterWithUnknowMethod() 166 public void validateUpdateParameterWithUnknowRestriction() throws Exception { in validateUpdateParameterWithUnknowRestriction() 178 public void validateUpdateParameterWithUsernameExceedingMaxSize() throws Exception { in validateUpdateParameterWithUsernameExceedingMaxSize() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 186 protected void setUp() throws Exception { in setUp() 226 protected void tearDown() throws Exception { in tearDown() 265 protected int getUid(String packageName) throws Exception { in getUid() 269 protected void assertRestrictBackgroundChangedReceived(int expectedCount) throws Exception { in assertRestrictBackgroundChangedReceived() 275 throws Exception { in assertRestrictBackgroundChangedReceived() 299 protected void assertSnoozeWarningNotReceived() throws Exception { in assertSnoozeWarningNotReceived() 305 protected String sendOrderedBroadcast(Intent intent) throws Exception { in sendOrderedBroadcast() 309 protected String sendOrderedBroadcast(Intent intent, int timeoutMs) throws Exception { in sendOrderedBroadcast() 332 protected int getNumberBroadcastsReceived(String receiverName, String action) throws Exception { in getNumberBroadcastsReceived() 336 protected void assertRestrictBackgroundStatus(int expectedStatus) throws Exception { in assertRestrictBackgroundStatus() [all …]
|
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/ |
D | MeasurementManagerTest.java | 83 public void testRegisterSource_executorAndCallbackCalled() throws Exception { in testRegisterSource_executorAndCallbackCalled() 99 public void onError(@NonNull Exception error) { in testRegisterSource_executorAndCallbackCalled() 108 public void testRegisterSource_executorAndCallbackCalled_customReceiver() throws Exception { in testRegisterSource_executorAndCallbackCalled_customReceiver() 123 public void onError(@NonNull Exception error) { in testRegisterSource_executorAndCallbackCalled_customReceiver() 148 public void testRegisterWebSource_executorAndCallbackCalled() throws Exception { in testRegisterWebSource_executorAndCallbackCalled() 163 public void onError(@NonNull Exception error) { in testRegisterWebSource_executorAndCallbackCalled() 172 public void testRegisterWebSource_executorAndCallbackCalled_customReceiver() throws Exception { in testRegisterWebSource_executorAndCallbackCalled_customReceiver() 186 public void onError(@NonNull Exception error) { in testRegisterWebSource_executorAndCallbackCalled_customReceiver() 206 public void testRegisterWebTrigger_executorAndCallbackCalled() throws Exception { in testRegisterWebTrigger_executorAndCallbackCalled() 222 public void onError(@NonNull Exception error) { in testRegisterWebTrigger_executorAndCallbackCalled() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/hal/ |
D | RemoteAccessHalWrapperUnitTest.java | 74 private void setUpNormalHalService() throws Exception { in setUpNormalHalService() 93 public void testInitialize() throws Exception { in testInitialize() 100 public void testRelease() throws Exception { in testRelease() 109 public void testRemoteAccessHalDied() throws Exception { in testRemoteAccessHalDied() 120 public void testGetVehicleId() throws Exception { in testGetVehicleId() 128 public void testGetVehicleId_noHalService() throws Exception { in testGetVehicleId_noHalService() 135 public void testGetWakeupServiceName() throws Exception { in testGetWakeupServiceName() 143 public void testGetWakeupServiceName_noHalService() throws Exception { in testGetWakeupServiceName_noHalService() 150 public void testNotifyApStateChange() throws Exception { in testNotifyApStateChange() 164 public void testNotifyApStateChange_noHalService() throws Exception { in testNotifyApStateChange_noHalService() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportImpressionScriptEngineTest.java | 163 public void testCanCallScript() throws Exception { in testCanCallScript() 177 public void testThrowsJSExecutionExceptionIfFunctionNotFound() throws Exception { in testThrowsJSExecutionExceptionIfFunctionNotFound() 181 Exception exception = in testThrowsJSExecutionExceptionIfFunctionNotFound() 195 public void testThrowsIllegalStateExceptionIfScriptIsNotReturningJson() throws Exception { in testThrowsIllegalStateExceptionIfScriptIsNotReturningJson() 199 Exception exception = in testThrowsIllegalStateExceptionIfScriptIsNotReturningJson() 212 public void testReportResultSuccessfulCaseRegisterAdBeaconEnabled() throws Exception { in testReportResultSuccessfulCaseRegisterAdBeaconEnabled() 235 public void testReportResultSuccessfulCaseRegisterAdBeaconDisabled() throws Exception { in testReportResultSuccessfulCaseRegisterAdBeaconDisabled() 262 public void testReportResultSuccessfulCaseWithMoreResultsFieldsThanExpected() throws Exception { in testReportResultSuccessfulCaseWithMoreResultsFieldsThanExpected() 286 public void testReportResultSuccessfulCaseWithCallingRegisterAdBeacon() throws Exception { in testReportResultSuccessfulCaseWithCallingRegisterAdBeacon() 321 throws Exception { in testReportResultFailsWhenCallingRegisterAdBeaconWhenFlagDisabled() [all …]
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | SplitPermissionTest.java | 110 private void assertRequestsPermission(@NonNull String permName) throws Exception { in assertRequestsPermission() 119 private void assertNotRequestsPermission(@NonNull String permName) throws Exception { in assertNotRequestsPermission() 128 private void assertPermissionGranted(@NonNull String permName) throws Exception { in assertPermissionGranted() 138 private void assertPermissionRevoked(@NonNull String permName) throws Exception { in assertPermissionRevoked() 161 public void permissionsDoNotSplitWithHighTargetSDK() throws Exception { in permissionsDoNotSplitWithHighTargetSDK() 175 public void permissionsDoNotSplitWithHighTargetSDKPreM() throws Exception { in permissionsDoNotSplitWithHighTargetSDKPreM() 186 public void permissionsSplitWithLowTargetSDK() throws Exception { in permissionsSplitWithLowTargetSDK() 199 public void permissionsSplitWithLowTargetSDKPreM() throws Exception { in permissionsSplitWithLowTargetSDKPreM() 210 public void nonInheritedStateHighTargetSDK() throws Exception { in nonInheritedStateHighTargetSDK() 220 public void nonInheritedStateHighLowTargetSDKPreM() throws Exception { in nonInheritedStateHighLowTargetSDKPreM() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalAidlImplTest.java | 180 public void setUp() throws Exception { in setUp() 191 public void testInitialize_success() throws Exception { in testInitialize_success() 200 public void testInitialize_remoteExceptionFailure() throws Exception { in testInitialize_remoteExceptionFailure() 209 public void testInitialize_nullInterfaceFailure() throws Exception { in testInitialize_nullInterfaceFailure() 217 public void testDuplicateSetupIface_Fails() throws Exception { in testDuplicateSetupIface_Fails() 230 public void testTeardown_success() throws Exception { in testTeardown_success() 242 public void testInvalidTeardownInterface_Fails() throws Exception { in testInvalidTeardownInterface_Fails() 251 public void testMisorderedSupplicantDeathHandling() throws Exception { in testMisorderedSupplicantDeathHandling() 267 public void testGetName_success() throws Exception { in testGetName_success() 280 public void testGetName_failure() throws Exception { in testGetName_failure() [all …]
|
D | SupplicantP2pIfaceHalHidlImplTest.java | 220 public void setUp() throws Exception { in setUp() 252 public void testInitialize_success() throws Exception { in testInitialize_success() 261 public void testInitialize_remoteExceptionFailure() throws Exception { in testInitialize_remoteExceptionFailure() 270 public void testInitialize_zeroInterfacesFailure() throws Exception { in testInitialize_zeroInterfacesFailure() 279 public void testInitialize_nullInterfaceFailure() throws Exception { in testInitialize_nullInterfaceFailure() 288 public void testInitialize_successV1_1() throws Exception { in testInitialize_successV1_1() 298 public void testInitialize_remoteExceptionFailureV1_1() throws Exception { in testInitialize_remoteExceptionFailureV1_1() 308 public void testInitialize_nullInterfaceFailureV1_1() throws Exception { in testInitialize_nullInterfaceFailureV1_1() 317 public void testDuplicateSetupIfaceV1_1_Fails() throws Exception { in testDuplicateSetupIfaceV1_1_Fails() 332 public void testTeardown_successV1_1() throws Exception { in testTeardown_successV1_1() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/util/concurrent/ |
D | AndroidFutureTest.java | 47 public void testComplete_uncompleted() throws Exception { in testComplete_uncompleted() 55 public void testComplete_alreadyCompleted() throws Exception { in testComplete_alreadyCompleted() 65 public void testCompleteExceptionally_uncompleted() throws Exception { in testCompleteExceptionally_uncompleted() 66 Exception origException = new UnsupportedOperationException(); in testCompleteExceptionally_uncompleted() 76 public void testCompleteExceptionally_alreadyCompleted() throws Exception { in testCompleteExceptionally_alreadyCompleted() 85 public void testCancel_uncompleted() throws Exception { in testCancel_uncompleted() 92 public void testCancel_alreadyCompleted() throws Exception { in testCancel_alreadyCompleted() 101 public void testWhenComplete_alreadyCompleted() throws Exception { in testWhenComplete_alreadyCompleted() 112 public void testWhenComplete_uncompleted() throws Exception { in testWhenComplete_uncompleted() 126 public void testWhenComplete_completeExceptionally() throws Exception { in testWhenComplete_completeExceptionally() [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ArchiveHandleTest.java | 147 public void buildArchiveHandle_withoutFileDescriptor_shouldBeIllegal() throws Exception { in buildArchiveHandle_withoutFileDescriptor_shouldBeIllegal() 158 public void buildArchiveHandle_withWrongMimeType_shouldBeIllegal() throws Exception { in buildArchiveHandle_withWrongMimeType_shouldBeIllegal() 171 public void buildArchiveHandle_sevenZFile_shouldNotNull() throws Exception { in buildArchiveHandle_sevenZFile_shouldNotNull() 179 public void buildArchiveHandle_zipFile_shouldNotNull() throws Exception { in buildArchiveHandle_zipFile_shouldNotNull() 187 public void buildArchiveHandle_zipWithWrongMimeType_shouldBeNull() throws Exception { in buildArchiveHandle_zipWithWrongMimeType_shouldBeNull() 198 public void buildArchiveHandle_tarFile_shouldNotNull() throws Exception { in buildArchiveHandle_tarFile_shouldNotNull() 206 public void buildArchiveHandle_tgzFile_shouldNotNull() throws Exception { in buildArchiveHandle_tgzFile_shouldNotNull() 214 public void buildArchiveHandle_tarGzFile_shouldNotNull() throws Exception { in buildArchiveHandle_tarGzFile_shouldNotNull() 223 public void buildArchiveHandle_tarBzipFile_shouldNotNull() throws Exception { in buildArchiveHandle_tarBzipFile_shouldNotNull() 232 public void buildArchiveHandle_tarXzFile_shouldNotNull() throws Exception { in buildArchiveHandle_tarXzFile_shouldNotNull() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/ |
D | FakeVhalConfigParserUnitTest.java | 62 public void testDefaultConfigFileIsEmpty() throws Exception { in testDefaultConfigFileIsEmpty() 71 public void testCustomConfigFileNotExist() throws Exception { in testCustomConfigFileNotExist() 80 public void testCustomConfigFileIsEmpty() throws Exception { in testCustomConfigFileIsEmpty() 89 public void testConfigFileHaveInvalidJsonObject() throws Exception { in testConfigFileHaveInvalidJsonObject() 101 public void testConfigFileInvalidJsonKey() throws Exception { in testConfigFileInvalidJsonKey() 112 public void testConfigFileRootIsNotArray() throws Exception { in testConfigFileRootIsNotArray() 123 public void testConfigFileRootHasElementIsNotJsonObject() throws Exception { in testConfigFileRootHasElementIsNotJsonObject() 135 public void testParseEachPropertyJsonObjectIsEmpty() throws Exception { in testParseEachPropertyJsonObjectIsEmpty() 146 public void testParsePropertyIdWithIntValue() throws Exception { in testParsePropertyIdWithIntValue() 159 public void testParsePropertyIdFieldNotExist() throws Exception { in testParsePropertyIdFieldNotExist() [all …]
|
/packages/modules/SdkExtensions/javatests/com/android/sdkext/extensions/ |
D | SdkExtensionsHostTest.java | 76 public void setUp() throws Exception { in setUp() 82 public void installTestApp() throws Exception { in installTestApp() 90 public void cleanup() throws Exception { in cleanup() 96 public void testDefault() throws Exception { in testDefault() 101 public void upgradeOneApexWithBump() throws Exception { in upgradeOneApexWithBump() 115 public void upgradeOneApex() throws Exception { in upgradeOneApex() 124 public void upgradeTwoApexes() throws Exception { in upgradeTwoApexes() 132 private boolean canInstallApp(String appName) throws Exception { in canInstallApp() 142 private String getExtensionVersionFromSysprop(String v) throws Exception { in getExtensionVersionFromSysprop() 149 private String broadcast(String action, String extra) throws Exception { in broadcast() [all …]
|