Home
last modified time | relevance | path

Searched refs:ex (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreExceptionTest.java99 KeyStoreException ex = new KeyStoreException(i, null); in testRequiresUserAuthenticationFlaggedCorrectly() local
101 ex.requiresUserAuthentication()); in testRequiresUserAuthenticationFlaggedCorrectly()
123 KeyStoreException ex = new KeyStoreException(22, "RKP failure", in testOutOfKeysFailureServerUnavailable() local
127 ex.getNumericErrorCode()); in testOutOfKeysFailureServerUnavailable()
129 ex.isSystemError()); in testOutOfKeysFailureServerUnavailable()
131 ex.isTransientFailure()); in testOutOfKeysFailureServerUnavailable()
134 ex.getRetryPolicy()); in testOutOfKeysFailureServerUnavailable()
139 KeyStoreException ex = new KeyStoreException(22, "RKP failure", in testOutOfKeysFailurePendingConnectivity() local
143 ex.getNumericErrorCode()); in testOutOfKeysFailurePendingConnectivity()
145 ex.isSystemError()); in testOutOfKeysFailurePendingConnectivity()
[all …]
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DIRadioMessagingImpl.java100 } catch (RemoteException ex) { in acknowledgeIncomingGsmSmsWithPdu()
101 Log.e(mTag, "Failed to acknowledgeIncomingGsmSmsWithPdu from AIDL. Exception" + ex); in acknowledgeIncomingGsmSmsWithPdu()
113 } catch (RemoteException ex) { in acknowledgeLastIncomingCdmaSms()
114 Log.e(mTag, "Failed to acknowledgeLastIncomingCdmaSms from AIDL. Exception" + ex); in acknowledgeLastIncomingCdmaSms()
125 } catch (RemoteException ex) { in acknowledgeLastIncomingGsmSms()
126 Log.e(mTag, "Failed to acknowledgeLastIncomingGsmSms from AIDL. Exception" + ex); in acknowledgeLastIncomingGsmSms()
137 } catch (RemoteException ex) { in deleteSmsOnRuim()
138 Log.e(mTag, "Failed to deleteSmsOnRuim from AIDL. Exception" + ex); in deleteSmsOnRuim()
149 } catch (RemoteException ex) { in deleteSmsOnSim()
150 Log.e(mTag, "Failed to deleteSmsOnSim from AIDL. Exception" + ex); in deleteSmsOnSim()
[all …]
DIRadioVoiceImpl.java266 } catch (RemoteException ex) { in getCurrentCallsRespnose()
267 Log.e(mTag, "Failed to getCurrentCalls from AIDL. Exception" + ex); in getCurrentCallsRespnose()
301 } catch (RemoteException ex) { in acceptCall()
302 Log.e(mTag, "Failed to acceptCall from AIDL. Exception" + ex); in acceptCall()
313 } catch (RemoteException ex) { in cancelPendingUssd()
314 Log.e(mTag, "Failed to cancelPendingUssd from AIDL. Exception" + ex); in cancelPendingUssd()
325 } catch (RemoteException ex) { in conference()
326 Log.e(mTag, "Failed to conference from AIDL. Exception" + ex); in conference()
352 } catch (RemoteException ex) { in dial()
353 Log.e(mTag, "Failed to dial from AIDL. Exception" + ex); in dial()
[all …]
DIRadioNetworkImpl.java347 } catch (RemoteException ex) { in getAllowedNetworkTypesBitmap()
348 Log.e(mTag, "Failed to getAllowedNetworkTypesBitmap from AIDL. Exception" + ex); in getAllowedNetworkTypesBitmap()
360 } catch (RemoteException ex) { in getAvailableBandModes()
361 Log.e(mTag, "Failed to getAvailableBandModes from AIDL. Exception" + ex); in getAvailableBandModes()
374 } catch (RemoteException ex) { in getAvailableNetworks()
375 Log.e(mTag, "Failed to getAvailableNetworks from AIDL. Exception" + ex); in getAvailableNetworks()
393 } catch (RemoteException ex) { in getBarringInfo()
394 Log.e(mTag, "Failed to getBarringInfo from AIDL. Exception" + ex); in getBarringInfo()
405 } catch (RemoteException ex) { in getCdmaRoamingPreference()
406 Log.e(mTag, "Failed to getCdmaRoamingPreference from AIDL. Exception" + ex); in getCdmaRoamingPreference()
[all …]
DIRadioSimImpl.java186 } catch (RemoteException ex) { in areUiccApplicationsEnabled()
187 Log.e(mTag, "Failed to areUiccApplicationsEnabled from AIDL. Exception" + ex); in areUiccApplicationsEnabled()
201 } catch (RemoteException ex) { in changeIccPin2ForApp()
202 Log.e(mTag, "Failed to changeIccPin2ForApp from AIDL. Exception" + ex); in changeIccPin2ForApp()
216 } catch (RemoteException ex) { in changeIccPinForApp()
217 Log.e(mTag, "Failed to changeIccPinForApp from AIDL. Exception" + ex); in changeIccPinForApp()
229 } catch (RemoteException ex) { in enableUiccApplications()
230 Log.e(mTag, "Failed to enableUiccApplications from AIDL. Exception" + ex); in enableUiccApplications()
256 } catch (RemoteException ex) { in getAllowedCarriers()
257 Log.e(mTag, "Failed to getAllowedCarriers from AIDL. Exception" + ex); in getAllowedCarriers()
[all …]
DIRadioDataImpl.java101 } catch (RemoteException ex) { in allocatePduSessionId()
102 Log.e(mTag, "Failed to allocatePduSessionId from AIDL. Exception" + ex); in allocatePduSessionId()
112 } catch (RemoteException ex) { in cancelHandover()
113 Log.e(mTag, "Failed to cancelHandover from AIDL. Exception" + ex); in cancelHandover()
125 } catch (RemoteException ex) { in deactivateDataCall()
126 Log.e(mTag, "Failed to deactivateDataCall from AIDL. Exception" + ex); in deactivateDataCall()
143 } catch (RemoteException ex) { in getDataCallList()
144 Log.e(mTag, "Failed to getDataCallList from AIDL. Exception" + ex); in getDataCallList()
154 } catch (RemoteException ex) { in getSlicingConfig()
155 Log.e(mTag, "Failed to getSlicingConfig from AIDL. Exception" + ex); in getSlicingConfig()
[all …]
DIRadioModemImpl.java186 } catch (RemoteException ex) { in enableModem()
187 Log.e(mTag, "Failed to enableModem from AIDL. Exception" + ex); in enableModem()
204 } catch (RemoteException ex) { in getBasebandVersion()
205 Log.e(mTag, "Failed to getBasebandVersion from AIDL. Exception" + ex); in getBasebandVersion()
225 } catch (RemoteException ex) { in getDeviceIdentity()
226 Log.e(mTag, "Failed to getDeviceIdentity from AIDL. Exception" + ex); in getDeviceIdentity()
243 } catch (RemoteException ex) { in getImei()
244 Log.e(mTag, "Failed to getImeiResponse from AIDL. Exception" + ex); in getImei()
257 } catch (RemoteException ex) { in getHardwareConfig()
258 Log.e(mTag, "Failed to getHardwareConfig from AIDL. Exception" + ex); in getHardwareConfig()
[all …]
DIRadioImsImpl.java78 } catch (RemoteException ex) { in setSrvccCallInfo()
79 Log.e(mTag, "Failed to setSrvccCallInfo from AIDL. Exception" + ex); in setSrvccCallInfo()
91 } catch (RemoteException ex) { in updateImsRegistrationInfo()
92 Log.e(mTag, "Failed to updateImsRegistrationInfo from AIDL. Exception" + ex); in updateImsRegistrationInfo()
109 } catch (RemoteException ex) { in startImsTraffic()
110 Log.e(mTag, "Failed to startImsTraffic from AIDL. Exception" + ex); in startImsTraffic()
123 } catch (RemoteException ex) { in stopImsTraffic()
124 Log.e(mTag, "Failed to stopImsTraffic from AIDL. Exception" + ex); in stopImsTraffic()
137 } catch (RemoteException ex) { in triggerEpsFallback()
138 Log.e(mTag, "Failed to triggerEpsFallback from AIDL. Exception" + ex); in triggerEpsFallback()
[all …]
DIRadioConfigImpl.java163 } catch (RemoteException ex) { in getHalDeviceCapabilities()
166 "Failed to invoke getHalDeviceCapabilitiesResponse from AIDL. Exception" + ex); in getHalDeviceCapabilities()
182 } catch (RemoteException ex) { in getNumOfLiveModems()
183 Log.e(mTag, "Failed to invoke getNumOfLiveModemsResponse from AIDL. Exception" + ex); in getNumOfLiveModems()
199 } catch (RemoteException ex) { in getPhoneCapability()
200 Log.e(mTag, "Failed to invoke getPhoneCapabilityResponse from AIDL. Exception" + ex); in getPhoneCapability()
216 } catch (RemoteException ex) { in getSimultaneousCallingSupport()
218 + "Exception" + ex); in getSimultaneousCallingSupport()
239 } catch (RemoteException ex) { in getSimSlotsStatus()
240 Log.e(mTag, "Failed to invoke getSimSlotsStatusResponse from AIDL. Exception" + ex); in getSimSlotsStatus()
[all …]
/cts/tests/tests/media/muxer/jni/
Dnative_muxer_jni.cpp34 AMediaExtractor *ex = AMediaExtractor_new(); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() local
35 int err = AMediaExtractor_setDataSourceFd(ex, infd, inoffset, insize); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
40 int numtracks = AMediaExtractor_getTrackCount(ex); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
44 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
55 AMediaExtractor_selectTrack(ex, i); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
61 AMediaExtractor_selectTrack(ex, i); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
68 int n = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
74 info.presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
75 info.flags = AMediaExtractor_getSampleFlags(ex); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
76 size_t idx = (size_t) AMediaExtractor_getSampleTrackIndex(ex); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DMockSatelliteServiceManager.java147 } catch (Exception ex) {
148 logd("onStartSendingSatellitePointingInfo: Got exception, ex=" + ex);
157 } catch (Exception ex) {
158 logd("onStopSendingSatellitePointingInfo: Got exception, ex=" + ex);
167 } catch (Exception ex) {
168 logd("onPollPendingSatelliteDatagrams: Got exception, ex=" + ex);
182 } catch (Exception ex) {
183 logd("onSendSatelliteDatagram: Got exception, ex=" + ex);
195 } catch (Exception ex) {
196 logd("onSatelliteListeningEnabled: Got exception, ex=" + ex);
[all …]
DSatelliteManagerTestBase.java251 } catch (Exception ex) { in waitUntilOnSatellitePositionChanged()
253 + "waitUntilOnSatellitePositionChanged: Got exception=" + ex); in waitUntilOnSatellitePositionChanged()
268 } catch (Exception ex) { in waitUntilOnSendDatagramStateChanged()
270 + "waitUntilOnSendDatagramStateChanged: Got exception=" + ex); in waitUntilOnSendDatagramStateChanged()
284 } catch (Exception ex) { in waitUntilOnReceiveDatagramStateChanged()
286 + "waitUntilOnReceiveDatagramStateChanged: Got exception=" + ex); in waitUntilOnReceiveDatagramStateChanged()
372 } catch (Exception ex) { in onSatelliteProvisionStateChanged()
373 loge("onSatelliteProvisionStateChanged: Got exception, ex=" + ex); in onSatelliteProvisionStateChanged()
384 } catch (Exception ex) { in waitUntilResult()
385 loge("onSatelliteProvisionStateChanged: Got exception=" + ex); in waitUntilResult()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DArcMotionTest.java114 float ex = 50 + (50 * ratio); in testMaximumAngle() local
115 float ey = ex; in testMaximumAngle()
117 Path expected = arcWithPoint(0, 100, 100, 0, ex, ey); in testMaximumAngle()
128 float ex = 37.5f; in testMinimumHorizontalAngle() local
130 Path expected = arcWithPoint(0, 0, 100, 50, ex, ey); in testMinimumHorizontalAngle()
135 expected = arcWithPoint(0, 0, 100.001f, 50, ex, ey); in testMinimumHorizontalAngle()
140 expected = arcWithPoint(100, 50, 0, 0, ex, ey); in testMinimumHorizontalAngle()
145 ex = 0; in testMinimumHorizontalAngle()
147 expected = arcWithPoint(0, 0, 50, 100, ex, ey); in testMinimumHorizontalAngle()
152 expected = arcWithPoint(0, 0, 50, 100.001f, ex, ey); in testMinimumHorizontalAngle()
[all …]
/cts/hostsidetests/appsecurity/test-apps/ReadSettingsFieldsApp/src/com/android/cts/readsettingsfieldsapp/
DReadSettingsFieldsTest.java53 } catch (SecurityException ex) { in testNonHiddenSettingsKeysAreReadable()
54 if (isSettingsDeprecated(ex) || isAvailableForLowerOrEqualTargetedSDK(ex)) { in testNonHiddenSettingsKeysAreReadable()
59 + "Did you forget to add @Readable annotation?\n" + ex.getMessage()); in testNonHiddenSettingsKeysAreReadable()
95 private boolean isSettingsDeprecated(SecurityException ex) { in isSettingsDeprecated() argument
96 return ex.getMessage().contains("is deprecated and no longer accessible"); in isSettingsDeprecated()
99 private boolean isAvailableForLowerOrEqualTargetedSDK(SecurityException ex) { in isAvailableForLowerOrEqualTargetedSDK() argument
100 return ex.getMessage().contains("targetSdkVersion lower than or equal"); in isAvailableForLowerOrEqualTargetedSDK()
137 } catch (SecurityException ex) { in testHiddenSettingsKeysReadable()
176 } catch (SecurityException ex) { in testGlobalHiddenSettingsKeyNotReadableWithoutPermissions()
177 assertTrue(ex.getMessage().contains("permission")); in testGlobalHiddenSettingsKeyNotReadableWithoutPermissions()
[all …]
/cts/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/dynamiccode/
DDynamicCodeShim.java31 } catch (ClassNotFoundException ex) { in getString()
32 throw new Exception("Failed to load class: " + IMPL_CLASS_NAME, ex); in getString()
37 } catch (ClassCastException | IllegalAccessException | InstantiationException ex) { in getString()
39 ex); in getString()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamTagTest.java96 } catch (IllegalArgumentException ex) { in checkMessageForType()
100 ex.getMessage()); in checkMessageForType()
107 } catch (IllegalArgumentException ex) { in checkMessageForType()
111 ex.getMessage()); in checkMessageForType()
132 } catch (IllegalArgumentException ex) { in checkMessageForCount()
136 ex.getMessage()); in checkMessageForCount()
143 } catch (IllegalArgumentException ex) { in checkMessageForCount()
151 ex.getMessage()); in checkMessageForCount()
164 } catch (IllegalArgumentException ex) { in assertCheckFieldIdThrows()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DFakeCarrierMessagingService.java36 } catch (RemoteException ex) { in onReceiveTextSms()
45 } catch (RemoteException ex) { in onSendTextSms()
54 } catch (RemoteException ex) { in onSendDataSms()
65 } catch (RemoteException ex) { in onSendMultipartTextSms()
75 } catch (RemoteException ex) { in onSendMms()
84 } catch (RemoteException ex) { in onDownloadMms()
/cts/tests/tests/os/src/android/os/cts/
DOperationCanceledExceptionTest.java35 } catch (OperationCanceledException ex) { in testOperationCanceledException()
36 assertSame(e, ex); in testOperationCanceledException()
49 } catch (OperationCanceledException ex) { in testOperationCanceledException()
50 assertSame(e, ex); in testOperationCanceledException()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecResourceTest.java97 } catch (SecurityException ex) { in testCreateCodecForAnotherProcessWithoutPermissionsThrows()
140 } catch (MediaCodec.CodecException ex) { in testLowerPriorityProcessFailsToReclaimResources()
141 if (ex.getErrorCode() == CodecException.ERROR_INSUFFICIENT_RESOURCE) { in testLowerPriorityProcessFailsToReclaimResources()
145 Log.e(TAG, "Unexpected exception thrown", ex); in testLowerPriorityProcessFailsToReclaimResources()
146 throw ex; in testLowerPriorityProcessFailsToReclaimResources()
167 } catch (MediaCodec.CodecException ex) { in testLowerPriorityProcessFailsToReclaimResources()
168 if (ex.getErrorCode() == CodecException.ERROR_INSUFFICIENT_RESOURCE) { in testLowerPriorityProcessFailsToReclaimResources()
171 Log.e(TAG, "Unexpected exception thrown", ex); in testLowerPriorityProcessFailsToReclaimResources()
172 throw ex; in testLowerPriorityProcessFailsToReclaimResources()
227 } catch (MediaCodec.CodecException ex) { in testHigherPriorityProcessReclaimsResources()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DNativeDecoderTest.java116 MediaExtractor ex = new MediaExtractor(); in testPssh() local
117 ex.setDataSource(fd.getParcelFileDescriptor().getFileDescriptor(), in testPssh()
119 testPssh(ex); in testPssh()
120 ex.release(); in testPssh()
127 private static void testPssh(MediaExtractor ex) { in testPssh() argument
128 Map<UUID, byte[]> map = ex.getPsshInfo(); in testPssh()
160 final long ex = createAMediaExtractor(); in testAMediaDataSourceClose() local
163 setAMediaExtractorDataSourceAndFailIfAnr(ex, ds); in testAMediaDataSourceClose()
166 deleteAMediaExtractor(ex); in testAMediaDataSourceClose()
172 private void setAMediaExtractorDataSourceAndFailIfAnr(final long ex, final long ds) in setAMediaExtractorDataSourceAndFailIfAnr() argument
[all …]
/cts/tests/tests/media/misc/jni/
Dnative-media-jni.cpp91 AMediaExtractor *ex = AMediaExtractor_new(); in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative() local
92 int err = AMediaExtractor_setDataSourceFd(ex, fd, offset, size); in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative()
98 PsshInfo* info = AMediaExtractor_getPsshInfo(ex); in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative()
176 AMediaExtractor *ex = AMediaExtractor_new(); in Java_android_media_misc_cts_NativeDecoderTest_createAMediaExtractor() local
177 return reinterpret_cast<jlong>(ex); in Java_android_media_misc_cts_NativeDecoderTest_createAMediaExtractor()
195 AMediaExtractor *ex = reinterpret_cast<AMediaExtractor *>(jex); in Java_android_media_misc_cts_NativeDecoderTest_setAMediaExtractorDataSource() local
197 return AMediaExtractor_setDataSourceCustom(ex, ds); in Java_android_media_misc_cts_NativeDecoderTest_setAMediaExtractorDataSource()
206 JNIEnv * /*env*/, jclass /*clazz*/, jlong ex) { in Java_android_media_misc_cts_NativeDecoderTest_deleteAMediaExtractor() argument
207 AMediaExtractor_delete(reinterpret_cast<AMediaExtractor *>(ex)); in Java_android_media_misc_cts_NativeDecoderTest_deleteAMediaExtractor()
/cts/tests/tests/print/src/android/print/cts/
DPrinterInfoTest.java153 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks()
154 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks()
172 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks()
173 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks()
194 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks()
195 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks()
217 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks()
218 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks()
236 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks()
237 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks()
/cts/tests/app/src/android/app/cts/
DPendingIntent_CanceledExceptionTest.java41 Exception ex = new Exception(); in testConstructor() local
42 canceledException = new PendingIntent.CanceledException(ex); in testConstructor()
46 assertSame(ex, e.getCause()); in testConstructor()
/cts/tests/tests/view/src/android/view/cts/
DGLSurfaceViewCtsActivity.java53 } catch (InterruptedException ex) { in requestRenderAndWait()
54 throw new AssertionError("Interrupted", ex); in requestRenderAndWait()
86 } catch (InterruptedException ex) { in waitForReady()
87 throw new AssertionError("Interrupted", ex); in waitForReady()
/cts/tests/tests/packageinstaller/test-apps/criticaluserjourneyinstaller/src/android/packageinstaller/cts/cujinstaller/
DMainActivity.java156 } catch (Exception ex) { in copyTestFiles()
157 Log.e(TAG, "Copy test apks from uri failed." , ex); in copyTestFiles()
274 } catch (Exception ex) { in onReceive()
275 Log.e(TAG, "Exception event:" + event, ex); in onReceive()
284 } catch (Exception ex) { in onReceive()
285 Log.e(TAG, "Exception event:" + event, ex); in onReceive()
294 } catch (Exception ex) { in onReceive()
295 Log.e(TAG, "Exception event:" + event, ex); in onReceive()
300 } catch (Exception ex) { in onReceive()
301 Log.e(TAG, "Exception event:" + event, ex); in onReceive()
[all …]

12345678910>>...13