Home
last modified time | relevance | path

Searched refs:SUBSCRIPTION_ID (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageUtilsTest.java41 private static final int SUBSCRIPTION_ID = 1; field in DataUsageUtilsTest
87 when(subscriptionManager.getSubscriptionPlans(SUBSCRIPTION_ID)).thenReturn( in getPrimaryPlan_noSubscriptions_returnsNull()
90 assertThat(DataUsageUtils.getPrimaryPlan(subscriptionManager, SUBSCRIPTION_ID)).isNull(); in getPrimaryPlan_noSubscriptions_returnsNull()
97 when(subscriptionManager.getSubscriptionPlans(SUBSCRIPTION_ID)).thenReturn( in getPrimaryPlan_dataLimitBytesIsZero_returnsNull()
101 assertThat(DataUsageUtils.getPrimaryPlan(subscriptionManager, SUBSCRIPTION_ID)).isNull(); in getPrimaryPlan_dataLimitBytesIsZero_returnsNull()
109 when(subscriptionManager.getSubscriptionPlans(SUBSCRIPTION_ID)).thenReturn( in getPrimaryPlan_dataUsageBytesIsHuge_returnsNull()
114 assertThat(DataUsageUtils.getPrimaryPlan(subscriptionManager, SUBSCRIPTION_ID)).isNull(); in getPrimaryPlan_dataUsageBytesIsHuge_returnsNull()
121 when(subscriptionManager.getSubscriptionPlans(SUBSCRIPTION_ID)).thenReturn( in getPrimaryPlan_cycleRuleIsNull_returnsNull()
127 assertThat(DataUsageUtils.getPrimaryPlan(subscriptionManager, SUBSCRIPTION_ID)).isNull(); in getPrimaryPlan_cycleRuleIsNull_returnsNull()
135 when(subscriptionManager.getSubscriptionPlans(SUBSCRIPTION_ID)).thenReturn( in getPrimaryPlan_cycleRuleIsValid_returnsSubscriptionPlan()
[all …]
DDataUsageEntryPreferenceControllerTest.java58 private static final int SUBSCRIPTION_ID = 1; field in DataUsageEntryPreferenceControllerTest
123 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBSCRIPTION_ID); in refreshUi_noPrimaryPlan_noSummarySet()
132 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBSCRIPTION_ID); in refreshUi_hasPrimaryPlan_setsSummary()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java336 smsRow.put(Telephony.Sms.SUBSCRIPTION_ID, subId); in createSmsRow()
366 mmsRow.put(Telephony.Mms.SUBSCRIPTION_ID, subId); in createMmsRow()
716 if (mSubId2Phone.get(modifiedValues.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID)) in insert()
718 modifiedValues.put(Telephony.Sms.SUBSCRIPTION_ID, -1); in insert()
816 if (values.get(Telephony.Mms.SUBSCRIPTION_ID) != null) { in insert()
818 if (mSubId2Phone.get(modifiedValues.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID)) in insert()
820 modifiedValues.put(Telephony.Sms.SUBSCRIPTION_ID, -1); in insert()
DSmsProviderTest.java165 values.put(Telephony.Sms.SUBSCRIPTION_ID, 1); in testInsertUri()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java194 Telephony.Sms.SUBSCRIPTION_ID,
216 Telephony.Mms.SUBSCRIPTION_ID,
287 sDefaultValuesSms.put(Telephony.Sms.SUBSCRIPTION_ID, -1); in sDefaultValuesSms.put() argument
291 sDefaultValuesMms.put(Telephony.Mms.SUBSCRIPTION_ID, -1); in sDefaultValuesMms.put() argument
723 case Telephony.Sms.SUBSCRIPTION_ID:
820 values.put(Telephony.Sms.SUBSCRIPTION_ID, mPhone2subId.get(selfPhone));
866 case Telephony.Mms.SUBSCRIPTION_ID:
920 mms.values.put(Telephony.Mms.SUBSCRIPTION_ID, mPhone2subId.get(selfPhone));
DMmsSmsDatabaseHelper.java760 Mms.SUBSCRIPTION_ID + " INTEGER DEFAULT " in createMmsTables()
1148 PendingMessages.SUBSCRIPTION_ID + " INTEGER DEFAULT " + in createCommonTables()
1882 " ADD COLUMN " + Mms.SUBSCRIPTION_ID in upgradeDatabaseToVersion58()
1888 + " ADD COLUMN " + Sms.SUBSCRIPTION_ID in upgradeDatabaseToVersion58()
1891 +" ADD COLUMN " + Sms.SUBSCRIPTION_ID in upgradeDatabaseToVersion58()
2280 Mms.SUBSCRIPTION_ID + " INTEGER DEFAULT " in upgradePduTableToAutoIncrement()
DTelephonyProvider.java61 import static android.provider.Telephony.Carriers.SUBSCRIPTION_ID;
325 SUBSCRIPTION_ID + " INTEGER DEFAULT " + in getStringForCarrierTableCreation()
1742 getIntValueFromCursor(cv, c, SUBSCRIPTION_ID); in copyApnValuesV17()
1780 getIntValueFromCursor(cv, c, SUBSCRIPTION_ID); in copyAllApnValues()
2101 if (!values.containsKey(SUBSCRIPTION_ID)) { in setDefaultValue()
2103 values.put(SUBSCRIPTION_ID, subId); in setDefaultValue()
DMmsSmsProvider.java127 Mms.SUBSCRIPTION_ID };
/packages/apps/Messaging/src/com/android/messaging/sms/
DApnDatabase.java86 Telephony.Carriers.SUBSCRIPTION_ID + " INTEGER DEFAULT " +
101 Telephony.Carriers.SUBSCRIPTION_ID // 11
139 Telephony.Carriers.SUBSCRIPTION_ID,
DDatabaseMessages.java118 Sms.SUBSCRIPTION_ID, in getProjection()
307 Mms.SUBSCRIPTION_ID, in getProjection()
DMmsUtils.java868 values.put(Telephony.Sms.SUBSCRIPTION_ID, subId); in addMessageToUri()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DReceiveSmsMessageAction.java62 Integer subId = messageValues.getAsInteger(Sms.SUBSCRIPTION_ID); in executeAction()
/packages/services/Mms/src/com/android/mms/service/
DDownloadRequest.java163 values.put(Telephony.Mms.SUBSCRIPTION_ID, mSubId); in persistIfRequired()
DSendRequest.java219 values.put(Telephony.Mms.SUBSCRIPTION_ID, mSubId); in persistIfRequired()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java216 messageValues.put(Sms.SUBSCRIPTION_ID, subId); in deliverSmsMessages()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java1489 values.put(Mms.SUBSCRIPTION_ID, subId); in persist()