/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DeviceIdentifiersTest.java | 46 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testProfileOwnerCanGetDeviceIdentifiersWithPermission() local 50 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 51 TelephonyManager::getDeviceId), telephonyManager.getDeviceId()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 53 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 54 TelephonyManager::getImei), telephonyManager.getImei()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 56 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 57 TelephonyManager::getMeid), telephonyManager.getMeid()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 59 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 60 TelephonyManager::getSubscriberId), telephonyManager.getSubscriberId()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 63 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | DeviceIdentifiersTest.java | 43 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() local 47 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 48 TelephonyManager::getDeviceId), telephonyManager.getDeviceId()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 50 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 51 TelephonyManager::getImei), telephonyManager.getImei()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 53 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 54 TelephonyManager::getMeid), telephonyManager.getMeid()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 56 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 57 TelephonyManager::getSubscriberId), telephonyManager.getSubscriberId()); in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 60 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() [all …]
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | NoLocationPermissionTest.java | 56 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testGetCellLocation() local 57 assertNotNull(telephonyManager); in testGetCellLocation() 60 telephonyManager.getCellLocation(); in testGetCellLocation() 73 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testGetAllCellInfo() local 74 assertNotNull(telephonyManager); in testGetAllCellInfo() 77 telephonyManager.getAllCellInfo(); in testGetAllCellInfo() 90 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testListenCellLocation() local 91 assertNotNull(telephonyManager); in testListenCellLocation() 94 telephonyManager.listen(new PhoneStateListener(Runnable::run), in testListenCellLocation() 108 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testRequestCellInfoUpdate() local [all …]
|
D | CallStateListenerPermissionTest.java | 78 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testRegisterWithNoCallLogPermission() local 79 assertNotNull(telephonyManager); in testRegisterWithNoCallLogPermission() 83 () -> telephonyManager.registerTelephonyCallback(mSimpleExecutor, callback)); in testRegisterWithNoCallLogPermission() 104 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testCallStatePermission() local 105 assertNotNull(telephonyManager); in testCallStatePermission() 113 telephonyManager.registerTelephonyCallback(mSimpleExecutor, callback); in testCallStatePermission() 120 telephonyManager.listen(new PhoneStateListener(Runnable::run), in testCallStatePermission()
|
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/ |
D | DeviceIdentifierAppOpTest.java | 52 TelephonyManager telephonyManager = in testAccessToDeviceIdentifiersWithAppOp() local 56 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp() 57 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testAccessToDeviceIdentifiersWithAppOp() 59 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp() 60 (tm) -> tm.getImei()), telephonyManager.getImei()); in testAccessToDeviceIdentifiersWithAppOp() 62 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp() 63 (tm) -> tm.getMeid()), telephonyManager.getMeid()); in testAccessToDeviceIdentifiersWithAppOp() 65 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp() 66 (tm) -> tm.getSubscriberId()), telephonyManager.getSubscriberId()); in testAccessToDeviceIdentifiersWithAppOp() 69 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | DeviceIdentifiersTest.java | 32 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers() local 40 assertAccessDenied(telephonyManager::getDeviceId, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers() 41 assertAccessDenied(telephonyManager::getImei, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers() 42 assertAccessDenied(telephonyManager::getMeid, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers() 43 assertAccessDenied(telephonyManager::getSubscriberId, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers() 44 assertAccessDenied(telephonyManager::getSimSerialNumber, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers() 45 assertAccessDenied(telephonyManager::getNai, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyUtils.java | 95 public static boolean isSkt(TelephonyManager telephonyManager) { in isSkt() argument 96 return isOperator(telephonyManager, "45005"); in isSkt() 99 public static boolean isKt(TelephonyManager telephonyManager) { in isKt() argument 100 return isOperator(telephonyManager, "45002") in isKt() 101 || isOperator(telephonyManager, "45004") in isKt() 102 || isOperator(telephonyManager, "45008"); in isKt() 105 private static boolean isOperator(TelephonyManager telephonyManager, String operator) { in isOperator() argument 106 String simOperator = telephonyManager.getSimOperator(); in isOperator()
|
D | CarrierServiceTest.java | 49 TelephonyManager telephonyManager = in hasCellular() local 52 && telephonyManager.getPhoneCount() > 0; in hasCellular()
|
D | MmsTest.java | 320 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getSimNumber() local 322 return telephonyManager.getLine1Number(); in getSimNumber()
|
D | TelephonyManagerTest.java | 987 TelephonyManager telephonyManager = mTelephonyManager.createForPhoneAccountHandle(handle); in testCreateForPhoneAccountHandle() local 991 telephonyManager, (tm) -> tm.getSubscriberId()); in testCreateForPhoneAccountHandle() 1897 (telephonyManager) -> telephonyManager.getMeid(slotIndex)); in testGetMeidForSlot()
|
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/ |
D | SimPhonebookRequirementsRule.java | 49 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in before() local 55 telephonyManager.getSupportedModemCount(), greaterThanOrEqualTo(mMinimumSimCount)); in before()
|
D | SimPhonebookContract_ContentNotificationsTest.java | 179 TelephonyManager telephonyManager = ApplicationProvider.getApplicationContext() in setSimPower() local 183 SystemUtil.runWithShellPermissionIdentity(() -> telephonyManager.setSimPowerStateForSlot( in setSimPower() 194 telephonyManager.getSimState(slotIndex), in setSimPower()
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | DefaultSmsAppHelper.java | 119 TelephonyManager telephonyManager = (TelephonyManager) ApplicationProvider in hasSms() local 121 return telephonyManager.isSmsCapable(); in hasSms()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssTtffTests.java | 113 TelephonyManager telephonyManager = (TelephonyManager) getContext().getApplicationContext() in hasCellularData() local 115 if (!telephonyManager.isDataEnabled()) { in hasCellularData()
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | DeviceInfoInstrument.java | 128 (telephonyManager) -> telephonyManager.getDeviceId()); in onStart() 133 (telephonyManager) -> telephonyManager.getSubscriberId()); in onStart()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 384 private boolean isMobileDataEnabled(TelephonyManager telephonyManager) { in isMobileDataEnabled() argument 386 return telephonyManager.isDataEnabled(); in isMobileDataEnabled() 398 TelephonyManager telephonyManager = in checkPreRequisites() local 400 if (telephonyManager == null) { in checkPreRequisites() 404 } else if (!isMobileDataEnabled(telephonyManager)) { in checkPreRequisites()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SmsBackupRestoreTest.java | 140 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testSmsBackupRestore() local 141 if (!mHasFeature || !telephonyManager.isSmsCapable()) { in testSmsBackupRestore()
|
D | BlockedNumberContractTest.java | 83 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testProviderInteractionsAsRegularApp_fails() local 89 if (telephonyManager.checkCarrierPrivilegesForPackage(mContext.getPackageName()) in testProviderInteractionsAsRegularApp_fails()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ManifestTestListAdapter.java | 460 TelephonyManager telephonyManager = mContext.getSystemService( in matchAllConfigs() local 462 if (!telephonyManager.isVoiceCapable()) { in matchAllConfigs()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 362 (telephonyManager) -> telephonyManager.getSubscriberId()); in getSubscriberId()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpsLoggingTest.kt | 683 val telephonyManager = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant 686 telephonyManager.allCellInfo in nativeNoteOp()
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | CarrierApiTest.java | 242 TelephonyManager telephonyManager = in getFirstActivateCarrierPrivilegedSubscriptionId() local 244 if (telephonyManager.hasCarrierPrivileges()) { in getFirstActivateCarrierPrivilegedSubscriptionId()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 1294 final TelephonyManager telephonyManager = in testReadPhoneNumbersPermission() local 1296 final String nmbr = telephonyManager.getLine1Number(); in testReadPhoneNumbersPermission()
|