/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyPermissionsTest.java | 60 private static final int SUB_ID = 55555; field in TelephonyPermissionsTest 108 new int[] {SUB_ID}); in setUp() 119 when(mMockTelephony.getCarrierPrivilegeStatusForUid(eq(SUB_ID), eq(UID))) in setUp() 134 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG); in testCheckReadPhoneState_noPermissions() 146 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPrivilegedPermission() 156 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionAndAppOp() 164 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionWithoutAppOp() 169 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneState_hasCarrierPrivileges() 174 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasCarrierPrivileges() 211 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneStateOnAnyActiveSub_hasCarrierPrivileges() [all …]
|
D | CarrierServiceStateTrackerTest.java | 60 private static final int SUB_ID = 1; field in CarrierServiceStateTrackerTest 71 when(mPhone.getSubId()).thenReturn(SUB_ID); in setUp() 103 CarrierServiceStateTracker.EMERGENCY_NOTIFICATION_TAG, SUB_ID); in testCancelBothNotifications() 105 CarrierServiceStateTracker.PREF_NETWORK_NOTIFICATION_TAG, SUB_ID); in testCancelBothNotifications() 125 eq(SUB_ID), isA(Notification.class)); in testSendBothNotifications() 128 eq(SUB_ID), any()); in testSendBothNotifications() 161 eq(SUB_ID), isA(Notification.class)); in testSendPrefNetworkNotification() 170 CarrierServiceStateTracker.PREF_NETWORK_NOTIFICATION_TAG, SUB_ID); in testSendPrefNetworkNotification() 200 eq(SUB_ID), isA(Notification.class)); in testSendEmergencyNetworkNotification() 206 CarrierServiceStateTracker.EMERGENCY_NOTIFICATION_TAG, SUB_ID); in testSendEmergencyNetworkNotification()
|
D | CarrierPrivilegesTrackerTest.java | 73 private static final int SUB_ID = 4; field in CarrierPrivilegesTrackerTest 111 when(mPhone.getSubId()).thenReturn(SUB_ID); in setUp() 130 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(mCarrierConfigs); in setupCarrierConfigCerts() 277 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(mCarrierConfigs); in testCarrierConfigUpdated() 279 sendCarrierConfigChangedIntent(SUB_ID, PHONE_ID); in testCarrierConfigUpdated() 290 sendCarrierConfigChangedIntent(SUB_ID, PHONE_ID_INCORRECT); in testCarrierConfigUpdatedMismatchedSlotIndex() 313 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(mCarrierConfigs); in testCarrierConfigUpdatedNotIdentifiedCarrier() 315 sendCarrierConfigChangedIntent(SUB_ID, PHONE_ID); in testCarrierConfigUpdatedNotIdentifiedCarrier()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | DataUsageUtilsTest.java | 46 private static final int SUB_ID = 1; field in DataUsageUtilsTest 71 when(mTelephonyManager.getSubscriberId(SUB_ID)).thenReturn(SUBSCRIBER_ID); in setUp() 79 when(mSubscriptionManager.isActiveSubId(SUB_ID)).thenReturn(false); in getMobileTemplate_infoNull_returnMobileAll() 81 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_infoNull_returnMobileAll() 88 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidNull_returnMobileAll() 93 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_groupUuidNull_returnMobileAll() 100 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidExist_returnMobileMerged() 105 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_groupUuidExist_returnMobileMerged()
|
D | DataUsageControllerTest.java | 53 private static final String SUB_ID = "Test Subscriber"; field in DataUsageControllerTest 88 doReturn(SUB_ID).when(mTelephonyManager).getSubscriberId(); in setUp() 90 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll(SUB_ID); in setUp()
|
D | NetworkCycleDataForUidLoaderTest.java | 45 private static final String SUB_ID = "Test Subscriber"; field in NetworkCycleDataForUidLoaderTest 65 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll(SUB_ID); in setUp()
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 474 public static final String SUB_ID = "sub_id"; field in CallLog.Calls
|
D | Telephony.java | 318 public static final String SUB_ID = "sub_id"; field
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 39004 field public static final String EXTRA_SUB_ID = "android.provider.extra.SUB_ID";
|
/frameworks/base/api/ |
D | current.txt | 39148 field public static final String EXTRA_SUB_ID = "android.provider.extra.SUB_ID";
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 55564 Landroid/provider/CallLog$Calls;->SUB_ID:Ljava/lang/String;
|