Home
last modified time | relevance | path

Searched refs:SUB_ID (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java62 private static final int SUB_ID = 55555; field in TelephonyPermissionsTest
108 new int[]{SUB_ID}); in setUp()
124 when(mMockTelephony.getCarrierPrivilegeStatusForUid(eq(SUB_ID), eq(UID))) in setUp()
137 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG); in testCheckReadPhoneState_noPermissions()
149 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPrivilegedPermission()
159 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionAndAppOp()
167 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionWithoutAppOp()
172 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneState_hasCarrierPrivileges()
177 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasCarrierPrivileges()
214 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneStateOnAnyActiveSub_hasCarrierPrivileges()
[all …]
DCarrierServiceStateTrackerTest.java60 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()
DCarrierPrivilegesTrackerTest.java73 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()
DDefaultPhoneNotifierTest.java50 private static final int SUB_ID = 0; field in DefaultPhoneNotifierTest
158 doReturn(SUB_ID).when(mPhone).getSubId(); in testNotifyDisconnectCause()
161 verify(mTelephonyRegistryManager).notifyDisconnectCause(PHONE_ID, SUB_ID, in testNotifyDisconnectCause()
166 verify(mTelephonyRegistryManager).notifyDisconnectCause(PHONE_ID, SUB_ID, in testNotifyDisconnectCause()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageUtilsTest.java47 private static final int SUB_ID = 1; field in DataUsageUtilsTest
72 when(mTelephonyManager.getSubscriberId(SUB_ID)).thenReturn(SUBSCRIBER_ID); in setUp()
81 when(mSubscriptionManager.isActiveSubscriptionId(SUB_ID)).thenReturn(false); in getMobileTemplate_infoNull_returnMobileAll()
83 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_infoNull_returnMobileAll()
91 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidNull_returnMobileAll()
96 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_groupUuidNull_returnMobileAll()
104 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidExist_returnMobileMerged()
109 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_groupUuidExist_returnMobileMerged()
DDataUsageControllerTest.java53 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()
DNetworkCycleDataForUidLoaderTest.java45 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/
DCallLog.java474 public static final String SUB_ID = "sub_id"; field in CallLog.Calls
DTelephony.java319 public static final String SUB_ID = "sub_id"; field
/frameworks/base/api/
Dcurrent.txt40571 field public static final String EXTRA_SUB_ID = "android.provider.extra.SUB_ID";