Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 85) sorted by relevance

1234

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java302 (tm) -> tm.getSimSerialNumber()); in testTelephonyManager()
307 (tm) -> tm.getSubscriberId()); in testTelephonyManager()
314 (tm) -> tm.getDeviceId()); in testTelephonyManager()
316 (tm) -> tm.getDeviceId(mTelephonyManager.getSlotIndex())); in testTelephonyManager()
319 (tm) -> tm.getImei()); in testTelephonyManager()
321 (tm) -> tm.getImei(mTelephonyManager.getSlotIndex())); in testTelephonyManager()
509 mTelephonyManager, (tm) -> tm.getSubscriberId()); in testCreateForPhoneAccountHandle()
511 telephonyManager, (tm) -> tm.getSubscriberId()); in testCreateForPhoneAccountHandle()
549 (tm) -> tm.getDeviceId()); in testGetDeviceId()
560 (tm) -> tm.getDeviceId(mTelephonyManager.getSlotIndex())); in testGetDeviceIdForSlot()
[all …]
DPhoneStateListenerTest.java392 (tm) -> tm.listen(mListener, PhoneStateListener.LISTEN_PRECISE_CALL_STATE)); in testOnPreciseCallStateChanged()
439 (tm) -> tm.listen(mListener, in testOnCallDisconnectCauseChanged()
482 (tm) -> tm.listen(mListener, in testOnImsCallDisconnectCauseChanged()
520 (tm) -> tm.listen(mListener, in testOnPhoneStateListenerExecutorWithSrvccChanged()
564 (tm) -> tm.listen(mListener, in testOnRadioPowerStateChanged()
607 (tm) -> tm.listen(mListener, in testOnVoiceActivationStateChanged()
623 (tm) -> tm.getVoiceActivationState()); in testOnVoiceActivationStateChanged()
654 (tm) -> tm.listen(mListener, in testOnPreciseDataConnectionStateChanged()
DSubscriptionManagerTest.java686 TelephonyManager tm = InstrumentationRegistry.getContext() in isDSDS() local
688 return tm != null && tm.getPhoneCount() > 1; in isDSDS()
DPhoneNumberUtilsTest.java303 TelephonyManager tm = (TelephonyManager)getContext().getSystemService( in testJudgeMethods() local
306 if ("US".equals(tm.getSimCountryIso())) { in testJudgeMethods()
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DDeviceIdentifierAppOpTest.java52 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testAccessToDeviceIdentifiersWithAppOp()
55 (tm) -> tm.getImei()), telephonyManager.getImei()); in testAccessToDeviceIdentifiersWithAppOp()
58 (tm) -> tm.getMeid()), telephonyManager.getMeid()); in testAccessToDeviceIdentifiersWithAppOp()
61 (tm) -> tm.getSubscriberId()), telephonyManager.getSubscriberId()); in testAccessToDeviceIdentifiersWithAppOp()
65 (tm) -> tm.getSimSerialNumber()), in testAccessToDeviceIdentifiersWithAppOp()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDeviceIdentifiersTest.java46 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
49 (tm) -> tm.getImei()), telephonyManager.getImei()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
52 (tm) -> tm.getMeid()), telephonyManager.getMeid()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
55 (tm) -> tm.getSubscriberId()), telephonyManager.getSubscriberId()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
59 (tm) -> tm.getSimSerialNumber()), in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDeviceIdentifiersTest.java46 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
49 (tm) -> tm.getImei()), telephonyManager.getImei()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
52 (tm) -> tm.getMeid()), telephonyManager.getMeid()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
55 (tm) -> tm.getSubscriberId()), telephonyManager.getSubscriberId()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
59 (tm) -> tm.getSimSerialNumber()), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp48 struct tm* tm = localtime(&timeNow); in prepare() local
49 if (tm == NULL) { in prepare()
59 if (reportTime.appendFormat("%04d_%02d_%02d_%02d_%02d_%02d", tm->tm_year + 1900, in prepare()
60 tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec) != 0) { in prepare()
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java70 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
71 if (tm instanceof X509TrustManager) { in getTrustManager()
72 return (X509TrustManager) tm; in getTrustManager()
80 X509TrustManager tm = getTrustManager(); in testIntermediateVerification() local
95 tm.checkServerTrusted(invalidChain, "RSA"); in testIntermediateVerification()
99 tm.checkServerTrusted(validChain, "RSA"); in testIntermediateVerification()
104 tm.checkServerTrusted(invalidChain, "RSA"); in testIntermediateVerification()
DCertBlacklistTest.java112 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
113 if (tm instanceof X509TrustManager) { in getTrustManager()
114 return (X509TrustManager) tm; in getTrustManager()
121 private static void assertTrusted(X509Certificate[] certs, X509TrustManager tm) in assertTrusted() argument
123 tm.checkServerTrusted(certs, "RSA"); in assertTrusted()
126 private static void assertUntrusted(X509Certificate[] certs, X509TrustManager tm) { in assertUntrusted() argument
128 tm.checkServerTrusted(certs, "RSA"); in assertUntrusted()
DX509CertChainBuildingTest.java179 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
180 if (tm instanceof X509TrustManager) { in getTrustManager()
181 return (X509TrustManager) tm; in getTrustManager()
205 X509TrustManager tm = getTrustManager(ks, p); in assertExactPath() local
206 X509TrustManagerExtensions xtm = new X509TrustManagerExtensions(tm); in assertExactPath()
/cts/tests/tests/net/src/android/net/http/cts/
DX509TrustManagerExtensionsTest.java48 X509TrustManager tm = getFirstX509TrustManager(tmf); in testIsUserAddedCertificateDefaults() local
49 X509TrustManagerExtensions xtm = new X509TrustManagerExtensions(tm); in testIsUserAddedCertificateDefaults()
51 for (Certificate cert : tm.getAcceptedIssuers()) { in testIsUserAddedCertificateDefaults()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java65 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testGetLine1Number() local
70 tm.getLine1Number(); in testGetLine1Number()
76 tm.getLine1Number(); in testGetLine1Number()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dget_element_at_x.rs7 const uint32_t * tm = rsGetElementAt (gIn, x);
8 *out = *tm;
Dget_element_at_x_y.rs7 const uint32_t * tm = rsGetElementAt (gIn, x, y);
8 *out = *tm;
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java154 X509TrustManager tm = getFirstX509TrustManager(tmf); in isCaCertInstalledAndTrusted() local
155 boolean trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
164 trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
172 X509TrustManagerExtensions xtm = new X509TrustManagerExtensions(tm); in isCaCertInstalledAndTrusted()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/
DResourceSourceTest.java90 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustedCertificates()
91 if (tm instanceof X509TrustManager) { in getTrustedCertificates()
92 X509Certificate[] trustedCerts = ((X509TrustManager) tm).getAcceptedIssuers(); in getTrustedCertificates()
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DTestUtils.java73 for (TrustManager tm : tmf.getTrustManagers()) { in getDefaultTrustManager()
74 if (tm instanceof X509TrustManager) { in getDefaultTrustManager()
75 return (X509TrustManager) tm; in getDefaultTrustManager()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java121 TelephonyManager tm = (TelephonyManager) getContext().getSystemService( in onStart() local
124 String network = tm.getNetworkOperatorName(); in onStart()
127 String imei = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in onStart()
132 String imsi = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in onStart()
137 String phoneNumber = tm.getLine1Number(); in onStart()
/cts/tests/tests/telecom/src/android/telecom/cts/
DExtendedInCallServiceTest.java566 final TelecomManager tm = in testOnBringToForeground() local
569 tm.showInCallScreen(false); in testOnBringToForeground()
575 tm.showInCallScreen(true); in testOnBringToForeground()
637 … TelephonyManager tm = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in testOnCannedTextResponsesLoaded() local
638 if (tm != null && !tm.isSmsCapable()) { in testOnCannedTextResponsesLoaded()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DGTestApiReport.java96 for (TestModule tm : apiReport.mTestModules) { in main()
97 tm.getDynSymArr(); in main()
DApkNdkApiReport.java98 for (TestModule tm : apiReport.mTestModules) { in main()
99 tm.getDynSymArr(); in main()
DCtsApiCoverage.java302 for (TestModule tm : testModules) { in addNdkSymArrToApiCoverage()
303 final String moduleName = tm.getModuleName(); in addNdkSymArrToApiCoverage()
304 final ReadElf.Symbol[] symArr = tm.getDynSymArr(); in addNdkSymArrToApiCoverage()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java275 mSubscriptionManager, (tm) -> tm.getActiveSubscriptionInfoCount()); in testUpdateAvailableNetworksWithCarrierPrivilege()
419 TelephonyManager tm = in testSubscriptionInfoListing() local
422 tm.hasCarrierPrivileges()); in testSubscriptionInfoListing()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java340 TelephonyManager tm = (TelephonyManager) getInstrumentation().getContext() in getSubscriberId() local
342 return ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in getSubscriberId()

1234