HomeSort by relevance Sort by last modified time
    Searched refs:BlockedNumbers (Results 1 - 17 of 17) sorted by null

  /packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
BlockedNumberProviderTest.java 41 import android.provider.BlockedNumberContract.BlockedNumbers;
115 assertEquals(BlockedNumbers.CONTENT_TYPE, mResolver.getType(
116 BlockedNumbers.CONTENT_URI));
118 assertEquals(BlockedNumbers.CONTENT_ITEM_TYPE, mResolver.getType(
119 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1)));
127 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, null));
128 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, ""));
129 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ID, 1));
130 insertExpectingFailure(cv(BlockedNumbers.COLUMN_E164_NUMBER, "1"));
132 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123"))
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
BlockedNumberContractTest.java 28 import android.provider.BlockedNumberContract.BlockedNumbers;
49 BlockedNumbers.COLUMN_ORIGINAL_NUMBER,
50 BlockedNumbers.COLUMN_E164_NUMBER};
74 BlockedNumbers.CONTENT_URI, getContentValues("1234567890")));
80 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null);
87 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null);
108 assertEquals(BlockedNumbers.CONTENT_TYPE,
109 mContentResolver.getType(BlockedNumbers.CONTENT_URI));
110 assertEquals(BlockedNumbers.CONTENT_ITEM_TYPE,
112 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 0)))
    [all...]
BlockedNumberBackupRestoreTest.java 140 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER, number);
141 mContentResolver.insert(BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv);
147 BlockedNumberContract.BlockedNumbers.CONTENT_URI,
148 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + "= ?",
152 private void verifyBlockedNumbers(String ... blockedNumbers) {
153 assertEquals(blockedNumbers.length,
155 BlockedNumberContract.BlockedNumbers.CONTENT_URI, null, null, null, null)
157 for (String blockedNumber : blockedNumbers) {
163 mContentResolver.delete(BlockedNumberContract.BlockedNumbers.CONTENT_URI, null, null);
  /cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
NumberBlockingAppTest.java 30 BlockedNumberContract.BlockedNumbers.CONTENT_URI,
31 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + "= ?",
55 BlockedNumberContract.BlockedNumbers.CONTENT_URI,
56 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + "= ?",
62 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER, mBlockedPhoneNumber);
64 BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv);
  /packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
BlockedNumberDatabaseHelper.java 21 import android.provider.BlockedNumberContract.BlockedNumbers;
29 private static final String DATABASE_NAME = "blockednumbers.db";
62 BlockedNumbers.COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
63 BlockedNumbers.COLUMN_ORIGINAL_NUMBER + " TEXT NOT NULL UNIQUE," +
64 BlockedNumbers.COLUMN_E164_NUMBER + " TEXT" +
68 " (" + BlockedNumbers.COLUMN_ORIGINAL_NUMBER + ");");
70 BlockedNumbers.COLUMN_E164_NUMBER +
BlockedNumberProvider.java 62 static final String TAG = "BlockedNumbers";
87 .add(BlockedNumberContract.BlockedNumbers.COLUMN_ID)
88 .add(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER)
89 .add(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER)
93 BlockedNumberContract.BlockedNumbers.COLUMN_ID + "=?";
96 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + "=?";
99 BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER + "=?";
118 return BlockedNumberContract.BlockedNumbers.CONTENT_TYPE;
120 return BlockedNumberContract.BlockedNumbers.CONTENT_ITEM_TYPE;
146 throwIfSpecified(cv, BlockedNumberContract.BlockedNumbers.COLUMN_ID)
    [all...]
BlockedNumberBackupAgent.java 49 BlockedNumberContract.BlockedNumbers.COLUMN_ID,
50 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER,
51 BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER,
168 List<BackedUpBlockedNumber> blockedNumbers = new ArrayList<>();
171 BlockedNumberContract.BlockedNumbers.CONTENT_URI, BLOCKED_NUMBERS_PROJECTION, null,
176 blockedNumbers.add(createBlockedNumberFromCursor(cursor));
182 return blockedNumbers;
225 contentValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER,
227 contentValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER,
231 BlockedNumberContract.BlockedNumbers.CONTENT_URI, contentValues)
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/blocking/
BlockedNumbersMigrator.java 26 import android.provider.BlockedNumberContract.BlockedNumbers;
82 values.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, originalNumber);
83 resolver.insert(BlockedNumbers.CONTENT_URI, values);
98 BlockedNumbers.CONTENT_URI,
99 new String[] {BlockedNumbers.COLUMN_ID},
100 BlockedNumbers.COLUMN_ORIGINAL_NUMBER + " = ?",
FilteredNumberCompat.java 31 import android.provider.BlockedNumberContract.BlockedNumbers;
62 return useNewFiltering(context) ? BlockedNumbers.COLUMN_ID : FilteredNumberColumns._ID;
86 ? BlockedNumbers.COLUMN_ORIGINAL_NUMBER
102 ? BlockedNumbers.COLUMN_E164_NUMBER
160 ? BlockedNumbers.CONTENT_URI
  /packages/services/Telecomm/src/com/android/server/telecom/settings/
BlockNumberTaskFragment.java 55 newValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER,
57 contentResolver.insert(BlockedNumberContract.BlockedNumbers.CONTENT_URI,
BlockedNumbersAdapter.java 43 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER));
91 contentResolver.delete(BlockedNumberContract.BlockedNumbers.CONTENT_URI,
92 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + "=?",
BlockedNumbersActivity.java 66 BlockedNumberContract.BlockedNumbers.COLUMN_ID,
67 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER
71 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + " NOTNULL) AND (" +
72 BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER + " != '' ))";
124 String[] fromColumns = {BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER};
181 return new CursorLoader(this, BlockedNumberContract.BlockedNumbers.CONTENT_URI,
183 BlockedNumberContract.BlockedNumbers.COLUMN_ID + " DESC");
  /frameworks/base/core/java/android/provider/
BlockedNumberContract.java 32 * accessing this table are defined by the {@link BlockedNumbers} class. Messages, and calls from
56 * in the {@link BlockedNumbers#COLUMN_ORIGINAL_NUMBER} column. A normalized version of phone
57 * numbers (if normalization is possible) is stored in {@link BlockedNumbers#COLUMN_E164_NUMBER}
59 * {@link BlockedNumbers#COLUMN_ORIGINAL_NUMBER} column or if the E164 version of the address
60 * matches the {@link BlockedNumbers#COLUMN_E164_NUMBER} column.
68 * {@link BlockedNumbers#COLUMN_ORIGINAL_NUMBER} is a required column that needs to be populated.
69 * Apps can optionally provide the {@link BlockedNumbers#COLUMN_E164_NUMBER} which is the phone
75 * {@link BlockedNumbers#COLUMN_ORIGINAL_NUMBER} column) will result in replacing the existing
81 * values.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1234567890");
82 * Uri uri = getContentResolver().insert(BlockedNumbers.CONTENT_URI, values)
    [all...]
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsManagerTest.java 385 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER, phoneNumber);
387 BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv);
  /cts/tests/tests/telecom/src/android/telecom/cts/
ExtendedInCallServiceTest.java 347 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER,
350 BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv);
  /frameworks/base/
compiled-classes-phone     [all...]
  /prebuilts/sdk/25/
android.jar 

Completed in 586 milliseconds