Home
last modified time | relevance | path

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

12345

/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/
DTelephonyManagerReadPhoneStatePermissionTest.java114 mTelephonyManager, (tm) -> tm.getCallState()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
116 mTelephonyManager, (tm) -> tm.getCallStateForSubscription()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
128 mTelephonyManager, (tm) -> tm.getNetworkType()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
134 mTelephonyManager, (tm) -> tm.getDeviceSoftwareVersion()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
141 mTelephonyManager, (tm) -> tm.getCarrierConfig()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
148 mTelephonyManager, (tm) -> tm.getDataNetworkType()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
155 mTelephonyManager, (tm) -> tm.getVoiceNetworkType()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
162 mTelephonyManager, (tm) -> tm.getGroupIdLevel1()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
169 mTelephonyManager, (tm) -> tm.getLine1AlphaTag()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
176 mTelephonyManager, (tm) -> tm.getVoiceMailNumber()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java379 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
380 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
385 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
386 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
391 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
392 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
397 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
398 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
419 (tm) -> tm.setAllowedNetworkTypesForReason( in recoverAllowedNetworkType()
670 (tm) -> tm.getSimSerialNumber()); in testTelephonyManager()
[all …]
DTelephonyRegistryManagerTest.java70 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallStateChangedForAllSubscriptions() local
71 tm.listen(psl, PhoneStateListener.LISTEN_CALL_STATE); in testNotifyCallStateChangedForAllSubscriptions()
97 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallStateChanged() local
98 tm = tm.createForSubscriptionId(SubscriptionManager.getDefaultSubscriptionId()); in testNotifyCallStateChanged()
99 tm.listen(psl, PhoneStateListener.LISTEN_CALL_STATE); in testNotifyCallStateChanged()
128 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyServiceStateChanged() local
129 tm.listen(psl, PhoneStateListener.LISTEN_SERVICE_STATE); in testNotifyServiceStateChanged()
158 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifySignalStrengthChanged() local
159 tm.listen(psl, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testNotifySignalStrengthChanged()
187 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyMessageWaitingChanged() local
[all …]
DPhoneStateListenerTest.java466 (tm) -> tm.listen(mListener, PhoneStateListener.LISTEN_PRECISE_CALL_STATE)); in testOnPreciseCallStateChanged()
501 (tm) -> tm.listen(mListener, in testOnCallDisconnectCauseChanged()
532 (tm) -> tm.listen(mListener, in testOnImsCallDisconnectCauseChanged()
563 (tm) -> tm.listen(mListener, in testOnPhoneStateListenerExecutorWithSrvccChanged()
596 (tm) -> tm.listen(mListener, in testOnRadioPowerStateChanged()
629 (tm) -> tm.listen(mListener, in testOnVoiceActivationStateChanged()
639 (tm) -> tm.getVoiceActivationState()); in testOnVoiceActivationStateChanged()
665 (tm) -> tm.listen(mListener, in testOnPreciseDataConnectionStateChanged()
717 (tm) -> tm.listen(mListener, in testOnDisplayInfoChanged()
979 (tm) -> tm.listen(mListener, in testOnOutgoingSmsEmergencyNumberChanged()
[all …]
DTelephonyCallbackTest.java173 (tm) -> tm.registerTelephonyCallback(mSimpleExecutor, callback)); in registerTelephonyCallbackWithPermission()
605 (tm) -> tm.getVoiceActivationState()); in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
1343 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1344 return tm.getAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1354 (tm) -> tm.setAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1366 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1367 return tm.getAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1380 (tm) -> tm.setAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
/cts/tests/tests/text/src/android/text/format/cts/
DNativeTimeFunctions.java34 private static native int mktime_tz(StructTm tm, String tzId); in mktime_tz() argument
72 StructTm tm = new StructTm(); in assertMktimeResult() local
73 tm.tm_sec = localDateTime.getSecond(); in assertMktimeResult()
74 tm.tm_min = localDateTime.getMinute(); in assertMktimeResult()
75 tm.tm_hour = localDateTime.getHour(); in assertMktimeResult()
76 tm.tm_mday = localDateTime.getDayOfMonth(); in assertMktimeResult()
77 tm.tm_mon = localDateTime.getMonthValue() - 1; in assertMktimeResult()
78 tm.tm_year = localDateTime.getYear() - 1900; in assertMktimeResult()
79 tm.tm_isdst = -1; in assertMktimeResult()
80 int actualTimeMillis = mktime_tz(tm, tzId); in assertMktimeResult()
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DDeviceIdentifierAppOpTest.java57 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testAccessToDeviceIdentifiersWithAppOp()
60 (tm) -> tm.getImei()), telephonyManager.getImei()); in testAccessToDeviceIdentifiersWithAppOp()
63 (tm) -> tm.getMeid()), telephonyManager.getMeid()); in testAccessToDeviceIdentifiersWithAppOp()
66 (tm) -> tm.getSubscriberId()), telephonyManager.getSubscriberId()); in testAccessToDeviceIdentifiersWithAppOp()
70 (tm) -> tm.getSimSerialNumber()), in testAccessToDeviceIdentifiersWithAppOp()
74 (tm) -> tm.getNai()), telephonyManager.getNai()); in testAccessToDeviceIdentifiersWithAppOp()
/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.java69 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
70 if (tm instanceof X509TrustManager) { in getTrustManager()
71 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.java177 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
178 if (tm instanceof X509TrustManager) { in getTrustManager()
179 return (X509TrustManager) tm; in getTrustManager()
203 X509TrustManager tm = getTrustManager(ks, p); in assertExactPath() local
204 X509TrustManagerExtensions xtm = new X509TrustManagerExtensions(tm); in assertExactPath()
/cts/tests/tests/apache-http/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/telecom2/src/android/telecom/cts/
DTelecomManagerNoPermissionsTest.java65 TelecomManager tm = mContext.getSystemService(TelecomManager.class); in testCallStateCompatPermissions() local
66 assertNotNull(tm); in testCallStateCompatPermissions()
72 tm.getCallState(); in testCallStateCompatPermissions()
/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.rscript7 const uint32_t * tm = rsGetElementAt (gIn, x);
8 *out = *tm;
Dget_element_at_x_y.rscript7 const uint32_t * tm = rsGetElementAt (gIn, x, y);
8 *out = *tm;
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUiccUtil.java64 TelephonyManager tm = in uiccHasCertificate() local
70 tm, in uiccHasCertificate()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java156 X509TrustManager tm = getFirstX509TrustManager(tmf); in isCaCertInstalledAndTrusted() local
157 boolean trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
170 trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
178 X509TrustManagerExtensions xtm = new X509TrustManagerExtensions(tm); in isCaCertInstalledAndTrusted()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsUtils.java118 TelephonyManager tm = in shouldRunSmsImsTests() local
121 tm = tm.createForSubscriptionId(subId); in shouldRunSmsImsTests()
125 carrierPackages = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in shouldRunSmsImsTests()
/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/tests/tests/telephony/current/src/android/telephony/gba/cts/
DGbaServiceTest.java163 (tm) -> tm.bootstrapAuthenticationRequest(TelephonyManager.APPTYPE_USIM, in testAuthSuccess()
228 (tm) -> tm.bootstrapAuthenticationRequest(TelephonyManager.APPTYPE_USIM, in runGbaFailCase()
/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/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()

12345