Home
last modified time | relevance | path

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

123

/cts/tests/tests/telephony2/src/android/telephony2/cts/
DTelephonyManagerReadPhoneStatePermissionTest.java115 mTelephonyManager, (tm) -> tm.getCallState()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
118 mTelephonyManager, (tm) -> tm.getCallStateForSubscription()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
131 mTelephonyManager, (tm) -> tm.getDeviceSoftwareVersion()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
138 mTelephonyManager, (tm) -> tm.getCarrierConfig()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
145 mTelephonyManager, (tm) -> tm.getGroupIdLevel1()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
152 mTelephonyManager, (tm) -> tm.getLine1AlphaTag()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
159 mTelephonyManager, (tm) -> tm.getForbiddenPlmns()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
166 mTelephonyManager, (tm) -> tm.getSubscriptionId( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
175 mTelephonyManager, (tm) -> tm.isModemEnabledForSlot( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
183 mTelephonyManager, (tm) -> tm.isMultiSimSupported()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
DPhoneNumberTest.java65 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testGetLine1Number() local
70 tm.getLine1Number(); in testGetLine1Number()
76 tm.getLine1Number(); in testGetLine1Number()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java436 (tm) -> tm.registerCarrierPrivilegesCallback( in CarrierPrivilegeChangeMonitor()
452 (tm) -> tm.unregisterCarrierPrivilegesCallback( in close()
633 mTelephonyManager, (tm) -> tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
637 mTelephonyManager, (tm) -> tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
641 mTelephonyManager, (tm) -> tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
645 mTelephonyManager, (tm) -> tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons()
665 (tm) -> tm.setAllowedNetworkTypesForReason( in recoverAllowedNetworkType()
910 (tm) -> tm.getSimSerialNumber()); in testTelephonyManager()
915 (tm) -> tm.getSubscriberId()); in testTelephonyManager()
934 (tm) -> tm.getDeviceId()); in testTelephonyManager()
[all …]
DTelephonyRegistryManagerTest.java109 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallStateChangedForAllSubscriptions() local
110 tm.listen(psl, PhoneStateListener.LISTEN_CALL_STATE); in testNotifyCallStateChangedForAllSubscriptions()
136 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyCallStateChanged() local
137 tm = tm.createForSubscriptionId(SubscriptionManager.getDefaultSubscriptionId()); in testNotifyCallStateChanged()
138 tm.listen(psl, PhoneStateListener.LISTEN_CALL_STATE); in testNotifyCallStateChanged()
167 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyServiceStateChanged() local
168 tm.listen(psl, PhoneStateListener.LISTEN_SERVICE_STATE); in testNotifyServiceStateChanged()
197 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifySignalStrengthChanged() local
198 tm.listen(psl, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testNotifySignalStrengthChanged()
226 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testNotifyMessageWaitingChanged() local
[all …]
DTelephonyManagerTestOnMockModem.java290 private static boolean isMultiSim(TelephonyManager tm) { in isMultiSim() argument
291 return tm != null && tm.getPhoneCount() > 1; in isMultiSim()
438 (tm) -> in testServiceStateChange()
439 tm.registerTelephonyCallback( in testServiceStateChange()
533 (tm) -> in testRegistrationFailed()
534 tm.registerTelephonyCallback( in testRegistrationFailed()
636 (tm) -> in testVoiceCallState()
637 tm.registerTelephonyCallback( in testVoiceCallState()
674 (tm) -> in testVoiceCallState()
675 tm.registerTelephonyCallback( in testVoiceCallState()
[all …]
DPhoneStateListenerTest.java474 (tm) -> tm.listen(mListener, PhoneStateListener.LISTEN_PRECISE_CALL_STATE)); in testOnPreciseCallStateChanged()
509 (tm) -> tm.listen(mListener, in testOnCallDisconnectCauseChanged()
541 (tm) -> tm.listen(mListener, in testOnImsCallDisconnectCauseChanged()
573 (tm) -> tm.listen(mListener, in testOnPhoneStateListenerExecutorWithSrvccChanged()
607 (tm) -> tm.listen(mListener, in testOnRadioPowerStateChanged()
641 (tm) -> tm.listen(mListener, in testOnVoiceActivationStateChanged()
651 (tm) -> tm.getVoiceActivationState()); in testOnVoiceActivationStateChanged()
675 (tm) -> tm.listen(mListener, in testOnPreciseDataConnectionStateChanged()
723 (tm) -> tm.listen(mListener, in testOnDisplayInfoChanged()
987 (tm) -> tm.listen(mListener, in testOnOutgoingSmsEmergencyNumberChanged()
[all …]
DSimultaneousCallingRestrictionsTest.java182 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelecomManager, tm -> { in beforeAllTests()
183 updateCallCapablePhAcctsAfterSubAdded(sTestSubSlot0, tm); in beforeAllTests()
184 updateCallCapablePhAcctsAfterSubAdded(sTestSubSlot1, tm); in beforeAllTests()
233 (tm) -> tm.unregisterTelephonyCallback(sSimultaneousCallingListener)); in afterAllTests()
494 private static void updateCallCapablePhAcctsAfterSubAdded(int subId, TelecomManager tm) { in updateCallCapablePhAcctsAfterSubAdded() argument
498 updateCallCapablePhAcctsAndCheckForSubId(subId, tm), TEST_TIMEOUT_MS, 50)); in updateCallCapablePhAcctsAfterSubAdded()
504 private static boolean updateCallCapablePhAcctsAndCheckForSubId(int subId, TelecomManager tm) { in updateCallCapablePhAcctsAndCheckForSubId() argument
505 sCallCapablePhoneAccounts = tm.getCallCapablePhoneAccounts(); in updateCallCapablePhAcctsAndCheckForSubId()
657 (tm) -> tm.registerTelephonyCallback(getContext().getMainExecutor(), listener), in registerNewSimultaneousCallingListener()
683 sTelecomManager, tm -> sCallCapablePhoneAccounts.stream() in getDsdaPhoneAccounts()
[all …]
DTelephonyCallbackTest.java203 (tm) -> tm.registerTelephonyCallback(mSimpleExecutor, callback)); in registerTelephonyCallbackWithPermission()
801 (tm) -> tm.getVoiceActivationState()); in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
1442 mTelephonyManager, (tm) -> tm.isRadioInterfaceCapabilitySupported( in testOnPhysicalChannelConfigChanged()
1530 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1531 return tm.getAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1538 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1539 return tm.getSupportedRadioAccessFamily(); in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1550 (tm) -> tm.setAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1561 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1562 return tm.getAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
[all …]
/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/tests/tests/telecom2/src/android/telecom/cts/
DTelecomManagerNoPermissionsTest.java79 TelecomManager tm = mContext.getSystemService(TelecomManager.class); in testCallStateCompatPermissions() local
80 assertNotNull(tm); in testCallStateCompatPermissions()
86 tm.getCallState(); in testCallStateCompatPermissions()
143 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
156 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
169 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(true), in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
182 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(true), in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java75 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
76 if (tm instanceof X509TrustManager) { in getTrustManager()
77 return (X509TrustManager) tm; in getTrustManager()
87 X509TrustManager tm = getTrustManager(); in testIntermediateVerification() local
102 tm.checkServerTrusted(invalidChain, "RSA"); in testIntermediateVerification()
106 tm.checkServerTrusted(validChain, "RSA"); in testIntermediateVerification()
111 tm.checkServerTrusted(invalidChain, "RSA"); in testIntermediateVerification()
DCertBlocklistTest.java122 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
123 if (tm instanceof X509TrustManager) { in getTrustManager()
124 return (X509TrustManager) tm; in getTrustManager()
131 private static void assertTrusted(X509Certificate[] certs, X509TrustManager tm) in assertTrusted() argument
133 tm.checkServerTrusted(certs, "RSA"); in assertTrusted()
136 private static void assertUntrusted(X509Certificate[] certs, X509TrustManager tm) { in assertUntrusted() argument
138 tm.checkServerTrusted(certs, "RSA"); in assertUntrusted()
DX509CertChainBuildingTest.java178 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustManager()
179 if (tm instanceof X509TrustManager) { in getTrustManager()
180 return (X509TrustManager) tm; in getTrustManager()
204 X509TrustManager tm = getTrustManager(ks, p); in assertExactPath() local
205 X509TrustManagerExtensions xtm = new X509TrustManagerExtensions(tm); in assertExactPath()
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountOperationsTest.java184 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelecomManager, tm -> { in testRegisterPhoneAccount_simultaneousCallingRestrictions()
186 tm.registerPhoneAccount(accountEmptyRestrictions); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
187 PhoneAccount testAcct = tm.getPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
194 tm.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
205 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelecomManager, tm -> { in testRegisterPhoneAccount_simultaneousCallingRestrictions()
207 tm.registerPhoneAccount(accountRestrictions); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
208 PhoneAccount testAcct = tm.getPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
216 tm.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
225 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelecomManager, tm -> { in testRegisterPhoneAccount_simultaneousCallingRestrictions()
227 tm.registerPhoneAccount(accountInvalidRestrictions); in testRegisterPhoneAccount_simultaneousCallingRestrictions()
[all …]
DPhoneAccountRegistrarTest.java578 tm -> tm.registerPhoneAccount(pa), REGISTER_SIM_SUBSCRIPTION_PERMISSION); in testGetAllPhoneAccountsWithLargePayload()
608 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfiles()
638 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfiles()
651 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfiles()
655 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(true), in testGetCallCapablePhoneAccountsAcrossProfiles()
707 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfilesWithWorkProfile()
720 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(), in testGetCallCapablePhoneAccountsAcrossProfilesWithWorkProfile()
724 (tm) -> tm.getCallCapablePhoneAccountsAcrossProfiles(true), in testGetCallCapablePhoneAccountsAcrossProfilesWithWorkProfile()
833 mTelecomManager, (tm) -> tm.getAllPhoneAccountHandles(), in verifyCanFetchAllPhoneAccountHandles()
842 mTelecomManager, (tm) -> tm.getAllPhoneAccounts(), in verifyCanFetchAllPhoneAccounts()
[all …]
/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/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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DCallDomainSelectionTestOnMockModem.java118 sTelephonyManager, (tm) -> tm.isDomainSelectionSupported()); in beforeAllTests()
328 (tm) -> in testCombinedAttachPsSelected()
329 tm.registerTelephonyCallback( in testCombinedAttachPsSelected()
390 (tm) -> in testVoiceCallOverPs()
391 tm.registerTelephonyCallback( in testVoiceCallOverPs()
442 (tm) -> in testVoiceCallOverCs()
443 tm.registerTelephonyCallback( in testVoiceCallOverCs()
506 (tm) -> in testVoiceCallOverVoWifi()
507 tm.registerTelephonyCallback( in testVoiceCallOverVoWifi()
566 (tm) -> in testCallWhenImsForSmsOnlyAndCsfbSupported()
[all …]
DImsServiceTestOnMockModem.java81 TelephonyManager tm = (TelephonyManager) getContext() in beforeAllTests() local
84 Pair<Integer, Integer> halVersion = tm.getHalVersion(TelephonyManager.HAL_SERVICE_IMS); in beforeAllTests()
101 int simCardState = tm.getSimCardState(); in beforeAllTests()
105 simCardState = tm.getSimState(); in beforeAllTests()
DImsUtils.java132 TelephonyManager tm = in shouldRunSmsImsTests() local
135 tm = tm.createForSubscriptionId(subId); in shouldRunSmsImsTests()
139 carrierPackages = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in shouldRunSmsImsTests()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/
DResourceSourceTest.java107 for (TrustManager tm : tmf.getTrustManagers()) { in getTrustedCertificates()
108 if (tm instanceof X509TrustManager) { in getTrustedCertificates()
109 X509Certificate[] trustedCerts = ((X509TrustManager) tm).getAcceptedIssuers(); in getTrustedCertificates()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUiccUtil.java125 TelephonyManager tm = in uiccHasCertificate() local
131 tm, in uiccHasCertificate()
/cts/tests/tests/carrierapi/targetprep/device/src/android/carrierapi/cts/targetprep/
DCsimRemover.java110 tm -> tm.isApplicationOnUicc(TelephonyManager.APPTYPE_CSIM), in isCsimPresent()

123