Home
last modified time | relevance | path

Searched refs:FilteredNumberCompat (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Dialer/tests/src/com/android/dialer/compat/
DFilteredNumberCompatTest.java68 FilteredNumberCompat.setIsEnabledForTest(true); in setUp()
72 FilteredNumberCompat.setIsEnabledForTest(false); in testIsNewFilteringEnabled_TestValueFalse()
73 assertFalse(FilteredNumberCompat.canUseNewFiltering()); in testIsNewFilteringEnabled_TestValueFalse()
77 FilteredNumberCompat.setIsEnabledForTest(true); in testIsNewFilteringEnabled_TestValueTrue()
78 assertEquals(CompatUtils.isNCompatible(), FilteredNumberCompat.canUseNewFiltering()); in testIsNewFilteringEnabled_TestValueTrue()
82 assertFalse(FilteredNumberCompat.hasMigratedToNewBlocking()); in testHasMigratedToNewBlocking_False()
87 .getBoolean(FilteredNumberCompat.HAS_MIGRATED_TO_NEW_BLOCKING_KEY, false)) in testHasMigratedToNewBlocking_Migrated()
89 assertTrue(FilteredNumberCompat.hasMigratedToNewBlocking()); in testHasMigratedToNewBlocking_Migrated()
93 assertEquals(FilteredNumber.CONTENT_URI, FilteredNumberCompat.getContentUri(null)); in testGetContentUri_NullId()
98 FilteredNumberCompat.getContentUri(1)); in testGetContentUri_NotMigrated()
[all …]
DFilteredNumberCompatInstrumentationTest.java67 FilteredNumberCompat.setHasMigratedToNewBlocking(false); in testShowBlockNumberDialogFlow_AlreadyBlocked()
71 FilteredNumberCompat in testShowBlockNumberDialogFlow_AlreadyBlocked()
/packages/apps/Dialer/src/com/android/dialer/database/
DFilteredNumberAsyncQueryHandler.java31 import com.android.dialer.compat.FilteredNumberCompat;
120 if (FilteredNumberCompat.useNewFiltering()) { in incrementFilteredCount()
136 FilteredNumberCompat.getContentUri(null), in hasBlockedNumbers()
137 new String[]{ FilteredNumberCompat.getIdColumnName() }, in hasBlockedNumbers()
138 FilteredNumberCompat.useNewFiltering() ? null : FilteredNumberColumns.TYPE in hasBlockedNumbers()
173 if (!FilteredNumberCompat.useNewFiltering() in isBlockedNumber()
183 FilteredNumberCompat.getContentUri(null), in isBlockedNumber()
184 FilteredNumberCompat.filter(new String[]{FilteredNumberCompat.getIdColumnName(), in isBlockedNumber()
185 FilteredNumberCompat.getTypeColumnName()}), in isBlockedNumber()
186 FilteredNumberCompat.getE164NumberColumnName() + " = ?", in isBlockedNumber()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/
DBlockedNumbersAutoMigratorTest.java30 import com.android.dialer.compat.FilteredNumberCompat;
54 FilteredNumberCompat.setContextForTest(getContext()); in setUp()
55 FilteredNumberCompat.setHasMigratedToNewBlocking(false); in setUp()
94 FilteredNumberCompat.setHasMigratedToNewBlocking(true); in testAutoMigrate_AlreadyMigrated()
123 assertFalse(FilteredNumberCompat.hasMigratedToNewBlocking()); in testAutoMigrate_HasNumbers()
137 assertFalse(FilteredNumberCompat.hasMigratedToNewBlocking()); in testAutoMigrate_HasNumbers_MultipleCalls()
149 assertTrue(FilteredNumberCompat.hasMigratedToNewBlocking()); in testAutoMigrate_NoNumbers()
163 assertTrue(FilteredNumberCompat.hasMigratedToNewBlocking()); in testAutoMigrate_NoNumbers_MultipleCalls()
183 assertTrue(FilteredNumberCompat.hasMigratedToNewBlocking()); in testAutoMigrate_SimulateClearingAppData()
DBlockedNumbersMigratorTest.java28 import com.android.dialer.compat.FilteredNumberCompat;
54 FilteredNumberCompat.setIsEnabledForTest(true); in setUp()
78 FilteredNumberCompat.setIsEnabledForTest(false); in testMigrate_N_Disabled()
107 assertTrue(FilteredNumberCompat.hasMigratedToNewBlocking()); in testMigrate_N()
125 assertTrue(FilteredNumberCompat.hasMigratedToNewBlocking()); in testMigrate_N_AlreadyBlocked()
DFilteredNumbersUtilTest.java31 import com.android.dialer.compat.FilteredNumberCompat;
113 FilteredNumberCompat.setIsEnabledForTest(true); in testMaybeNotifyCallBlockingDisabled_Migrated()
114 FilteredNumberCompat.setHasMigratedToNewBlocking(true); in testMaybeNotifyCallBlockingDisabled_Migrated()
DBlockedNumbersFragmentInstrumentationTest.java27 import com.android.dialer.compat.FilteredNumberCompat;
53 FilteredNumberCompat.setIsEnabledForTest(true); in setUp()
/packages/apps/Dialer/src/com/android/dialer/filterednumber/
DBlockedNumbersAutoMigrator.java24 import com.android.dialer.compat.FilteredNumberCompat;
77 FilteredNumberCompat.setHasMigratedToNewBlocking(true); in autoMigrate()
90 if (!FilteredNumberCompat.canUseNewFiltering()) { in shouldAttemptAutoMigrate()
95 if (FilteredNumberCompat.hasMigratedToNewBlocking()) { in shouldAttemptAutoMigrate()
DBlockedNumbersFragment.java40 import com.android.dialer.compat.FilteredNumberCompat;
137 if (FilteredNumberCompat.canUseNewFiltering()) { in onResume()
161 if (!FilteredNumberCompat.canUseNewFiltering() in onResume()
195 if (FilteredNumberCompat.canUseNewFiltering() || data.getCount() == 0) { in onLoadFinished()
236 FilteredNumberCompat.createManageBlockedNumbersIntent(getContext())); in onClick()
DBlockedNumbersMigrator.java27 import com.android.dialer.compat.FilteredNumberCompat;
76 if (!FilteredNumberCompat.canUseNewFiltering()) { in migrate()
91 FilteredNumberCompat.setHasMigratedToNewBlocking(isSuccessful); in migrate()
DFilteredNumbersUtil.java36 import com.android.dialer.compat.FilteredNumberCompat;
303 if (FilteredNumberCompat.useNewFiltering()) { in maybeNotifyCallBlockingDisabled()
DBlockNumberDialogFragment.java35 import com.android.dialer.compat.FilteredNumberCompat;
166 if (FilteredNumberCompat.useNewFiltering()) { in onCreateDialog()
/packages/apps/Dialer/src/com/android/dialer/settings/
DDialerSettingsActivity.java34 import com.android.dialer.compat.FilteredNumberCompat;
57 if (migrationStatusOnBuildHeaders != FilteredNumberCompat.hasMigratedToNewBlocking()) { in onResume()
111 if (FilteredNumberCompat.canCurrentUserOpenBlockSettings(this)) { in onBuildHeaders()
114 blockedCallsHeader.intent = FilteredNumberCompat.createManageBlockedNumbersIntent(this); in onBuildHeaders()
116 migrationStatusOnBuildHeaders = FilteredNumberCompat.hasMigratedToNewBlocking(); in onBuildHeaders()
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DFilteredNumberAsyncQueryHandlerTest.java31 import com.android.dialer.compat.FilteredNumberCompat;
67 FilteredNumberCompat.setIsEnabledForTest(true); in setUp()
79 FilteredNumberCompat.setIsEnabledForTest(false); in testHasBlockedNumbers_Disabled()
128 FilteredNumberCompat.setIsEnabledForTest(false); in testIsBlockedNumber_Disabled()
205 FilteredNumberCompat.setIsEnabledForTest(false); in testBlockNumber_Disabled()
258 FilteredNumberCompat.setIsEnabledForTest(false); in testUnblockNumber_Disabled()
266 .withDefaultProjection(FilteredNumberCompat.getIdColumnName()) in testUnblockNumber_Disabled()
292 .withDefaultProjection(FilteredNumberCompat.getIdColumnName()) in testUnblockNumber()
/packages/apps/Dialer/src/com/android/dialer/
DCallDetailActivity.java57 import com.android.dialer.compat.FilteredNumberCompat;
311 if (!FilteredNumberCompat.canAttemptBlockOperations(mContext)) { in updateBlockActionItemVisibility()
399 FilteredNumberCompat in onClick()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogListItemViewHolder.java54 import com.android.dialer.compat.FilteredNumberCompat;
348 if (FilteredNumberCompat.canAttemptBlockOperations(mContext) in onCreateContextMenu()
375 FilteredNumberCompat in onMenuItemClick()
/packages/apps/Dialer/src/com/android/dialer/compat/
DFilteredNumberCompat.java63 public class FilteredNumberCompat { class