Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/tests/unit/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.java69 private static final int SUBSCRIPTION_ID = 1; field in DataUsageEntryPreferenceControllerTest
130 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_noMobileNetwork_isUnsupported()
139 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_noMobileNetwork_isUnsupported_zoneWrite()
150 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_noMobileNetwork_isUnsupported_zoneRead()
161 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_noMobileNetwork_isUnsupported_zoneHidden()
172 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_hasMobileNetwork_isAvailable()
181 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_hasMobileNetwork_isAvailable_zoneWrite()
192 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_hasMobileNetwork_isAvailable_zoneRead()
203 mockSubscriptionManager(SUBSCRIPTION_ID, mMockSubscriptionPlan); in getAvailabilityStatus_hasMobileNetwork_isAvailable_zoneHidden()
222 mockSubscriptionManager(SUBSCRIPTION_ID, /* subscriptionPlan= */ null); in refreshUi_noPrimaryPlan_noSummarySet()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java654 cv.put(MmsSms.WordsTable.SUBSCRIPTION_ID, -1); in populateWordsTable()
691 cv.put(MmsSms.WordsTable.SUBSCRIPTION_ID, -1); in populateWordsTable()
806 Addr.SUBSCRIPTION_ID + " INTEGER DEFAULT -1" +
826 Part.SUBSCRIPTION_ID + " INTEGER DEFAULT -1" +
862 Mms.SUBSCRIPTION_ID + " INTEGER DEFAULT "
872 Rate.SUBSCRIPTION_ID + " INTEGER DEFAULT -1" +
1219 Telephony.CanonicalAddressesColumns.SUBSCRIPTION_ID + " INTEGER DEFAULT -1" in createCommonTables()
1242 Threads.SUBSCRIPTION_ID + " INTEGER DEFAULT -1" + in createCommonTables()
1257 PendingMessages.SUBSCRIPTION_ID + " INTEGER DEFAULT " + in createCommonTables()
2057 " ADD COLUMN " + Mms.SUBSCRIPTION_ID in upgradeDatabaseToVersion58()
[all …]
DMmsSmsProvider.java138 Mms.SUBSCRIPTION_ID };
692 contentValues.put(CanonicalAddressesColumns.SUBSCRIPTION_ID, subId); in getSingleAddressId()
782 values.put(ThreadsColumns.SUBSCRIPTION_ID, SmsManager.getDefaultSmsSubscriptionId()); in insertThread()
1469 if (values.containsKey(PendingMessages.SUBSCRIPTION_ID)) { in insert()
1470 subId = values.getAsInteger(PendingMessages.SUBSCRIPTION_ID); in insert()
1474 values.put(PendingMessages.SUBSCRIPTION_ID, subId); in insert()
1489 if (!values.containsKey(CanonicalAddressesColumns.SUBSCRIPTION_ID)) { in insert()
1491 values.put(CanonicalAddressesColumns.SUBSCRIPTION_ID, defaultSmsSubId); in insert()
DTelephonyBackupAgent.java208 Telephony.Sms.SUBSCRIPTION_ID,
230 Telephony.Mms.SUBSCRIPTION_ID,
303 sDefaultValuesSms.put(Telephony.Sms.SUBSCRIPTION_ID, -1); in sDefaultValuesSms.put() argument
307 sDefaultValuesMms.put(Telephony.Mms.SUBSCRIPTION_ID, in sDefaultValuesMms.put() argument
988 case Telephony.Sms.SUBSCRIPTION_ID:
1104 values.put(Telephony.Sms.SUBSCRIPTION_ID, mPhone2subId.get(selfPhone));
1153 case Telephony.Mms.SUBSCRIPTION_ID:
1212 mms.values.put(Telephony.Mms.SUBSCRIPTION_ID, mPhone2subId.get(selfPhone));
DMmsProvider.java447 if (values.containsKey(Telephony.Sms.SUBSCRIPTION_ID)) { in insert()
448 subId = values.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID); in insert()
454 values.put(Telephony.Sms.SUBSCRIPTION_ID, subId); in insert()
666 cv.put(MmsSms.WordsTable.SUBSCRIPTION_ID, subId); in insert()
DSmsProvider.java855 if (values.containsKey(Telephony.Sms.SUBSCRIPTION_ID)) { in insertInner()
856 subId = values.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID); in insertInner()
862 values.put(Telephony.Sms.SUBSCRIPTION_ID, subId); in insertInner()
897 cv.put(MmsSms.WordsTable.SUBSCRIPTION_ID, subId); in insertInner()
DProviderUtil.java214 String selectionBySubId = (Telephony.Sms.SUBSCRIPTION_ID + " IN (" + subIdListStr + ")"); in getSelectionBySubIds()
DTelephonyProvider.java66 import static android.provider.Telephony.Carriers.SUBSCRIPTION_ID;
519 SUBSCRIPTION_ID + " INTEGER DEFAULT " + in getStringForCarrierTableCreation()
750 if (!values.containsKey(SUBSCRIPTION_ID)) { in setDefaultValue()
751 values.put(SUBSCRIPTION_ID, mDefaultSubId); in setDefaultValue()
2500 getIntValueFromCursor(cv, c, SUBSCRIPTION_ID); in copyApnValuesV17()
2538 getIntValueFromCursor(cv, c, SUBSCRIPTION_ID); in copyAllApnValues()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DMmsSmsDatabaseHelperTest.java85 .contains(Telephony.ThreadsColumns.SUBSCRIPTION_ID)); in testDBHelperOnUpgrade_hasSubIdField()
94 assertTrue(Arrays.asList(upgradedColumns).contains(Mms.Part.SUBSCRIPTION_ID)); in testDBHelperOnUpgrade_hasSubIdField()
104 Telephony.CanonicalAddressesColumns.SUBSCRIPTION_ID)); in testDBHelperOnUpgrade_hasSubIdField()
122 assertTrue(Arrays.asList(upgradedColumns).contains(Addr.SUBSCRIPTION_ID)); in testDBHelperOnUpgrade_hasSubIdField()
131 assertTrue(Arrays.asList(upgradedColumns).contains(Rate.SUBSCRIPTION_ID)); in testDBHelperOnUpgrade_hasSubIdField()
DTelephonyBackupAgentTest.java386 smsRow.put(Telephony.Sms.SUBSCRIPTION_ID, subId); in createSmsRow()
416 mmsRow.put(Telephony.Mms.SUBSCRIPTION_ID, subId); in createMmsRow()
890 if (mSubId2Phone.get(modifiedValues.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID)) in insert()
892 modifiedValues.put(Telephony.Sms.SUBSCRIPTION_ID, -1); in insert()
990 if (values.get(Telephony.Mms.SUBSCRIPTION_ID) != null) { in insert()
992 if (mSubId2Phone.get(modifiedValues.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID)) in insert()
994 modifiedValues.put(Telephony.Sms.SUBSCRIPTION_ID, -1); in insert()
DMmsProviderTest.java143 values.put(Telephony.Mms.SUBSCRIPTION_ID, 1); in getTestContentValues()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/
DMapClientContent.java269 values.put(Sms.SUBSCRIPTION_ID, mSubscriptionId); in storeSms()
359 values.put(Mms.SUBSCRIPTION_ID, mSubscriptionId); in storeMms()
484 Sms.SUBSCRIPTION_ID + " =? ", in clearMessages()
488 Mms.SUBSCRIPTION_ID + " =? ", in clearMessages()
639 Sms.SUBSCRIPTION_ID + " =? ", in getStoredMessagesCount()
649 Mms.SUBSCRIPTION_ID + " =? ", in getStoredMessagesCount()
724 selectionClause = Sms.SUBSCRIPTION_ID + " =? "; in getMessagesFromUri()
729 selectionClause = Mms.SUBSCRIPTION_ID + " =? "; in getMessagesFromUri()
/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()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java147 ElementaryFiles.SUBSCRIPTION_ID, ElementaryFiles.SUBSCRIPTION_ID in query_entityFiles_returnsCursorWithCorrectProjection() argument
149 assertThat(cursor).hasColumnNames(ElementaryFiles.SUBSCRIPTION_ID, in query_entityFiles_returnsCursorWithCorrectProjection()
150 ElementaryFiles.SUBSCRIPTION_ID); in query_entityFiles_returnsCursorWithCorrectProjection()
196 ElementaryFiles.SLOT_INDEX, ElementaryFiles.SUBSCRIPTION_ID, in query_entityFiles_multiSim_returnsCursorWithRowForEachSimEf()
242 ElementaryFiles.SUBSCRIPTION_ID, ElementaryFiles.EF_TYPE, in query_entityFiles_adnRecordCountExceedsSize_returnsAdnRecordCountAsMaxRecords()
392 SimRecords.SUBSCRIPTION_ID, in query_simRecords_singleSim_returnsDataForCorrectEf()
433 SimRecords.SUBSCRIPTION_ID, in query_adnRecords_returnsAdnData()
473 SimRecords.SUBSCRIPTION_ID, in query_fdnRecords_returnsFdnData()
510 SimRecords.SUBSCRIPTION_ID, in query_sdnRecords_returnsSdnData()
606 SimRecords.SUBSCRIPTION_ID, SimRecords.ELEMENTARY_FILE_TYPE, in query_itemUri_returnsCorrectRow()
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java83 ElementaryFiles.SUBSCRIPTION_ID,
92 SimRecords.SUBSCRIPTION_ID,
352 .add(ElementaryFiles.SUBSCRIPTION_ID, subscriptionInfo.getSubscriptionId()) in addEfToCursor()
392 case SimRecords.SUBSCRIPTION_ID: in querySimRecords()
445 .add(SimRecords.SUBSCRIPTION_ID, args.subscriptionId) in querySimRecordsItem()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java100 CellBroadcasts.SUBSCRIPTION_ID,
343 + CellBroadcasts.SUBSCRIPTION_ID + " INTEGER," in getStringForCellBroadcastTableCreation()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastDatabaseHelperTest.java108 + CellBroadcasts.SUBSCRIPTION_ID + " INTEGER," in onCreate()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DReceiveSmsMessageAction.java63 Integer subId = messageValues.getAsInteger(Sms.SUBSCRIPTION_ID); in executeAction()
/packages/services/Mms/src/com/android/mms/service/
DDownloadRequest.java174 values.put(Telephony.Mms.SUBSCRIPTION_ID, mSubId); in persistIfRequired()
DSendRequest.java265 values.put(Telephony.Mms.SUBSCRIPTION_ID, mSubId); in persistIfRequired()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java217 messageValues.put(Sms.SUBSCRIPTION_ID, subId); in deliverSmsMessages()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java477 cv.put(Telephony.Sms.Inbox.SUBSCRIPTION_ID, message.getSubscriptionId()); in writeMessageToSmsInbox()
DCellBroadcastListActivity.java166 Telephony.CellBroadcasts.SUBSCRIPTION_ID,

12