Home
last modified time | relevance | path

Searched refs:Telephony (Results 1 – 25 of 44) sorted by relevance

12

/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsTest.java34 import android.provider.Telephony;
65 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
66 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
90 String actualSmsBody = cursor.getString(cursor.getColumnIndex(Telephony.Sms.BODY)); in testSmsInsert()
120 mSmsTestHelper.assertSmsColumnEquals(Telephony.Sms.BODY, uri, TEST_SMS_BODY); in testSmsUpdate()
123 values.put(Telephony.Sms.ADDRESS, TEST_ADDRESS); in testSmsUpdate()
124 values.put(Telephony.Sms.BODY, testSmsBodyUpdate); in testSmsUpdate()
128 mSmsTestHelper.assertSmsColumnEquals(Telephony.Sms.BODY, uri, testSmsBodyUpdate); in testSmsUpdate()
136 values.put(Telephony.Sms.BODY, TEST_SMS_BODY); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId()
137 values.put(Telephony.Sms.SUBSCRIPTION_ID, subId); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId()
[all …]
DMmsTest.java34 import android.provider.Telephony;
35 import android.provider.Telephony.Mms.Draft;
36 import android.provider.Telephony.Mms.Inbox;
37 import android.provider.Telephony.Mms.Outbox;
38 import android.provider.Telephony.Mms.Sent;
39 import android.provider.Telephony.Sms;
70 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
94 String actualSubject = cursor.getString(cursor.getColumnIndex(Telephony.Mms.SUBJECT)); in testMmsInsert_insertSendReqSucceeds()
133 final Uri partUri = Telephony.Mms.Part.getPartUriForMessage(String.valueOf(mmsId)); in testMmsInsert_canInsertTextMms()
149 assertThat(partCursor.getLong(partCursor.getColumnIndex(Telephony.Mms.Part.MSG_ID))) in testMmsInsert_canInsertTextMms()
[all …]
DLockedMessageTest.java30 import android.provider.Telephony;
59 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
60 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
84 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_atMostOneLockedMessage()
89 assertThat(cursor.getColumnNames()).isEqualTo(new String[]{Telephony.BaseMmsColumns._ID}); in testLockedMessage_atMostOneLockedMessage()
90 assertThat(cursor.getInt(cursor.getColumnIndex(Telephony.BaseMmsColumns._ID))) in testLockedMessage_atMostOneLockedMessage()
92 assertThat(cursor.getInt(cursor.getColumnIndex(Telephony.BaseMmsColumns._ID))) in testLockedMessage_atMostOneLockedMessage()
102 Uri mmsUri = insertIntoMmsTable(MMS_SUBJECT_ONE, Telephony.Sms.MESSAGE_TYPE_SENT); in testLockedMessage_getNoLockedMessage()
112 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_getNoLockedMessage()
118 Uri mmsUri = insertIntoMmsTable(MMS_SUBJECT_ONE, Telephony.Sms.MESSAGE_TYPE_SENT); in insertMmsWithLockedMessage()
[all …]
DSmsTestHelper.java27 import android.provider.Telephony;
41 mContentValues.put(Telephony.Sms.ADDRESS, testAddress); in insertTestSms()
42 mContentValues.put(Telephony.Sms.BODY, testSmsBody); in insertTestSms()
43 return mContentResolver.insert(Telephony.Sms.CONTENT_URI, mContentValues); in insertTestSms()
48 smsRow.put(Telephony.Sms.BODY, messageBody); in createSmsValues()
53 mContentValues.put(Telephony.Sms.ADDRESS, testAddress); in insertTestSmsWithThread()
54 mContentValues.put(Telephony.Sms.BODY, testSmsBody); in insertTestSmsWithThread()
55 mContentValues.put(Telephony.Sms.THREAD_ID, threadId); in insertTestSmsWithThread()
57 return mContentResolver.insert(Telephony.Sms.CONTENT_URI, mContentValues); in insertTestSmsWithThread()
72 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in assertBulkSmsContentEqual()
[all …]
DMmsPartTest.java34 import android.provider.Telephony;
79 contentResolver.delete(Telephony.Mms.Part.CONTENT_URI, null, null); in cleanup()
81 .call(Telephony.MmsSms.CONTENT_URI, "garbage_collect", "delete", null); in cleanup()
100 values.put(Telephony.Mms.Part._DATA, "/dev/urandom"); in testMmsPartInsert_cannotInsertPartWithDataColumn()
101 values.put(Telephony.Mms.Part.NAME, "testMmsPartInsert_cannotInsertPartWithDataColumn"); in testMmsPartInsert_cannotInsertPartWithDataColumn()
116 final Uri partUri = Telephony.Mms.Part.getPartUriForMessage(String.valueOf(mmsId)); in testMmsPartInsert_canInsertPartWithoutDataColumn()
140 .call(Telephony.MmsSms.CONTENT_URI, METHOD_GARBAGE_COLLECT, in testMmsPart_garbageCollectWithOnlyOneValidPart()
158 .call(Telephony.MmsSms.CONTENT_URI, METHOD_GARBAGE_COLLECT, in testMmsPart_verifyLargeNumberOfParts()
176 .call(Telephony.MmsSms.CONTENT_URI, METHOD_GARBAGE_COLLECT, in testMmsPart_garbageCollectWithOnlyValidParts()
196 final Uri partUri = Telephony.Mms.Part.getPartUriForMessage(String.valueOf(mmsId)); in testMmsPartUpdate()
[all …]
DThreadsTest.java31 import android.provider.Telephony;
59 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
60 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
76 long threadId1 = Telephony.Threads.getOrCreateThreadId(mContext, DESTINATION); in testThreadDeletion_doNotReuseThreadIdsFromEmptyThreads()
86 long threadId2 = Telephony.Threads.getOrCreateThreadId(mContext, destination2); in testThreadDeletion_doNotReuseThreadIdsFromEmptyThreads()
113 contentValues.put(Telephony.Sms.THREAD_ID, threadId); in addMessageToTelephonyWithDate()
114 contentValues.put(Telephony.Sms.DATE, date); in addMessageToTelephonyWithDate()
115 contentValues.put(Telephony.Sms.BODY, messageBody); in addMessageToTelephonyWithDate()
117 return mContext.getContentResolver().insert(Telephony.Sms.CONTENT_URI, contentValues); in addMessageToTelephonyWithDate()
121 Cursor cursor = mContentResolver.query(Telephony.Threads.CONTENT_URI, in assertVerifyThreadDate()
[all …]
DSmsConversationTest.java31 import android.provider.Telephony;
32 import android.provider.Telephony.Sms.Conversations;
58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
81 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
106 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
121 values.put(Telephony.Sms.BODY, messageBody); in saveToTelephony()
122 values.put(Telephony.Sms.ADDRESS, address); in saveToTelephony()
123 Uri uri1 = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in saveToTelephony()
DServiceStateTest.java20 import static android.provider.Telephony.ServiceStateTable.DATA_NETWORK_TYPE;
21 import static android.provider.Telephony.ServiceStateTable.DATA_REG_STATE;
22 import static android.provider.Telephony.ServiceStateTable.DUPLEX_MODE;
23 import static android.provider.Telephony.ServiceStateTable.VOICE_REG_STATE;
43 import android.provider.Telephony;
108 Uri uri = Telephony.ServiceStateTable.CONTENT_URI; in testUriAndAuthority()
111 String authority = Telephony.ServiceStateTable.AUTHORITY; in testUriAndAuthority()
126 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetVoiceRegState_query()
187 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetDataNetworkType_query()
262 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetDuplexMode_query()
[all …]
DCellBroadcastProviderTest.java22 import android.provider.Telephony;
42 mContentResolver.query(Telephony.CellBroadcasts.CONTENT_URI, in testAccess()
55 mContentResolver.query(Telephony.CellBroadcasts.MESSAGE_HISTORY_URI, in testAccessMessageHistoryWithoutPermission()
/cts/tests/tests/provider/src/android/provider/cts/
DSmsBackupRestoreTest.java31 import android.provider.Telephony;
55 Telephony.Mms.TEXT_ONLY };
56 private static final String SMS_SELECTION = Telephony.Sms.ADDRESS + " = ? and "
57 + Telephony.Sms.BODY + " = ?";
59 private static final String MMS_SELECTION = Telephony.Mms.SUBJECT + " = ?";
61 private static final String[] MMS_PART_TEXT_PROJECTION = new String[]{Telephony.Mms.Part.TEXT};
62 private static final String MMS_PART_SELECTION = Telephony.Mms.Part.MSG_ID + " = ?";
63 private static final String MMS_PART_TEXT_SELECTION = Telephony.Mms.Part.CONTENT_TYPE + " = ?";
64 private static final String[] MMS_ADDR_PROJECTION = new String[] { Telephony.Mms.Addr.ADDRESS };
65 private static final String MMS_ADDR_SELECTION = Telephony.Mms.Addr.MSG_ID + " = ?";
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsCbMessageTest.java28 import android.provider.Telephony;
246 int serial = cv.getAsInteger(Telephony.CellBroadcasts.SERIAL_NUMBER); in testContentValues()
254 Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE)); in testCreateFromCursor()
258 Telephony.CellBroadcasts.SERIAL_NUMBER)); in testCreateFromCursor()
262 Telephony.CellBroadcasts.SERVICE_CATEGORY)); in testCreateFromCursor()
266 Telephony.CellBroadcasts.LANGUAGE_CODE)); in testCreateFromCursor()
270 Telephony.CellBroadcasts.MESSAGE_BODY)); in testCreateFromCursor()
274 Telephony.CellBroadcasts.MESSAGE_FORMAT)); in testCreateFromCursor()
278 Telephony.CellBroadcasts.MESSAGE_PRIORITY)); in testCreateFromCursor()
282 Telephony.CellBroadcasts.SLOT_INDEX)); in testCreateFromCursor()
[all …]
DSmsReceiver.java22 import android.provider.Telephony;
35 case Telephony.Sms.Intents.SMS_DELIVER_ACTION: { in onReceive()
38 SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent); in onReceive()
DMmsReceiver.java22 import android.provider.Telephony;
40 case Telephony.Sms.Intents.WAP_PUSH_DELIVER_ACTION: { in onReceive()
DSmsManagerTest.java60 import android.provider.Telephony;
178 new IntentFilter(Telephony.Sms.Intents.SMS_RECEIVED_ACTION); in setUp()
187 mSmsReceivedReceiver = new SmsBroadcastReceiver(Telephony.Sms.Intents.SMS_RECEIVED_ACTION); in setUp()
554 contentValues.put(Telephony.TextBasedSmsColumns.ADDRESS, "addr"); in testContentProviderAccessRestriction()
555 contentValues.put(Telephony.TextBasedSmsColumns.READ, 1); in testContentProviderAccessRestriction()
556 contentValues.put(Telephony.TextBasedSmsColumns.SUBJECT, "subj"); in testContentProviderAccessRestriction()
557 contentValues.put(Telephony.TextBasedSmsColumns.BODY, "created_at_" in testContentProviderAccessRestriction()
560 dummySmsUri = contentResolver.insert(Telephony.Sms.CONTENT_URI, contentValues); in testContentProviderAccessRestriction()
1040 if (mAction.equals(Telephony.Sms.Intents.SMS_RECEIVED_ACTION)) { in onReceive()
DCellBroadcastDataMigrationTest.java22 import android.provider.Telephony.CellBroadcasts;
/cts/tests/tests/telephony/
DREADME.md1 # Telephony CTS tests
3 This directory contains the main set of Telephony CTS tests.
/cts/tests/tests/telephony4/
DREADME.md3 This directory contains the set of Telephony CTS tests which involve carrier privileges.
/cts/tests/tests/telephony3/
DREADME.md3 This directory contains the set of Telephony CTS tests which verify behavior on
/cts/tests/tests/telephony2/
DREADME.md3 This directory contains the set of Telephony CTS tests used to exercise permissions.
/cts/tests/tests/telephony5/
DREADME.md3 This directory contains the set of Telephony CTS tests used to exercise
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDefaultSmsApplicationTest.java37 import android.provider.Telephony;
141 assertThat(Telephony.Sms.getDefaultSmsPackage(sContext)) in setDefaultSmsApplication_unchanged()
240 return Telephony.Sms.getDefaultSmsPackage(sContext); in getDefaultSmsPackage()
246 return Telephony.Sms.getDefaultSmsPackage( in getDefaultSmsPackageInDpc()
/cts/tests/tests/telephony/TestSmsApp22/src/android/telephony/cts/sms23/
DMainActivity.java23 import android.provider.Telephony.Sms;
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/telephony/
DTelephony.kt26 object Telephony { object
/cts/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java59 import android.provider.Telephony;
279 smsValues.put(Telephony.Sms.ADDRESS, sDestinationNumber); in allManagedSubscriptions_accessWorkMessageFromPersonalProfile_fails()
280 smsValues.put(Telephony.Sms.BODY, "This is a test message."); in allManagedSubscriptions_accessWorkMessageFromPersonalProfile_fails()
284 Telephony.Sms.CONTENT_URI, smsValues); in allManagedSubscriptions_accessWorkMessageFromPersonalProfile_fails()
327 smsValues.put(Telephony.Sms.ADDRESS, sDestinationNumber); in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
328 smsValues.put(Telephony.Sms.BODY, insertMessageBody); in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
332 Telephony.Sms.CONTENT_URI, smsValues); in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
343 String actualSmsBody = cursor.getString(cursor.getColumnIndex(Telephony.Sms.BODY)); in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
/cts/hostsidetests/telephonyprovider/devicetest/src/android/telephonyprovider/device/cts/
DTelephonyProviderTest.java21 import android.provider.Telephony.Carriers;

12