/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/ |
D | TelephonyManagerReadPhoneStatePermissionTest.java | 114 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/ |
D | TelephonyManagerTest.java | 380 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons() 381 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons() 386 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons() 387 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons() 392 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons() 393 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons() 398 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons() 399 return tm.getAllowedNetworkTypesForReason( in saveAllowedNetworkTypesForAllReasons() 420 (tm) -> tm.setAllowedNetworkTypesForReason( in recoverAllowedNetworkType() 671 (tm) -> tm.getSimSerialNumber()); in testTelephonyManager() [all …]
|
D | TelephonyRegistryManagerTest.java | 70 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 …]
|
D | PhoneStateListenerTest.java | 466 (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 …]
|
D | TelephonyCallbackTest.java | 173 (tm) -> tm.registerTelephonyCallback(mSimpleExecutor, callback)); in registerTelephonyCallbackWithPermission() 605 (tm) -> tm.getVoiceActivationState()); in testOnVoiceActivationStateChangedByRegisterTelephonyCallback() 1346 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener() 1347 return tm.getAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener() 1357 (tm) -> tm.setAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener() 1369 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener() 1370 return tm.getAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener() 1383 (tm) -> tm.setAllowedNetworkTypesForReason( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
|
D | CallComposerTest.java | 136 TelephonyManager tm = mContext.getSystemService(TelephonyManager.class); in pictureUploadHelper() local 153 tm.uploadCallComposerPicture(inputFile, TEST_FILE_CONTENT_TYPE, in pictureUploadHelper() 156 tm.uploadCallComposerPicture(inputStream, TEST_FILE_CONTENT_TYPE, in pictureUploadHelper()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | NativeTimeFunctions.java | 34 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/ |
D | DeviceIdentifierAppOpTest.java | 57 (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/ |
D | FileUtil.cpp | 48 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/ |
D | ConscryptIntermediateVerificationTest.java | 69 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()
|
D | CertBlacklistTest.java | 112 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()
|
D | X509CertChainBuildingTest.java | 177 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/ |
D | X509TrustManagerExtensionsTest.java | 48 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/ |
D | get_element_at_x.rscript | 7 const uint32_t * tm = rsGetElementAt (gIn, x); 8 *out = *tm;
|
D | get_element_at_x_y.rscript | 7 const uint32_t * tm = rsGetElementAt (gIn, x, y); 8 *out = *tm;
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | PhoneNumberTest.java | 65 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in testGetLine1Number() local 70 tm.getLine1Number(); in testGetLine1Number() 76 tm.getLine1Number(); in testGetLine1Number()
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | TelecomManagerNoPermissionsTest.java | 65 TelecomManager tm = mContext.getSystemService(TelecomManager.class); in testCallStateCompatPermissions() local 66 assertNotNull(tm); in testCallStateCompatPermissions() 72 tm.getCallState(); in testCallStateCompatPermissions()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | UiccUtil.java | 64 TelephonyManager tm = in uiccHasCertificate() local 70 tm, in uiccHasCertificate()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsUtils.java | 118 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/ |
D | ResourceSourceTest.java | 90 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/ |
D | TestUtils.java | 73 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/ |
D | GbaServiceTest.java | 163 (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/ |
D | DeviceInfoInstrument.java | 121 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/ |
D | GTestApiReport.java | 96 for (TestModule tm : apiReport.mTestModules) { in main() 97 tm.getDynSymArr(); in main()
|
D | ApkNdkApiReport.java | 98 for (TestModule tm : apiReport.mTestModules) { in main() 99 tm.getDynSymArr(); in main()
|