/packages/apps/Dialer/tests/src/com/android/dialer/compat/ |
D | FilteredNumberCompatTest.java | 68 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 …]
|
D | FilteredNumberCompatInstrumentationTest.java | 67 FilteredNumberCompat.setHasMigratedToNewBlocking(false); in testShowBlockNumberDialogFlow_AlreadyBlocked() 71 FilteredNumberCompat in testShowBlockNumberDialogFlow_AlreadyBlocked()
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | FilteredNumberAsyncQueryHandler.java | 31 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/ |
D | BlockedNumbersAutoMigratorTest.java | 30 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()
|
D | BlockedNumbersMigratorTest.java | 28 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()
|
D | FilteredNumbersUtilTest.java | 31 import com.android.dialer.compat.FilteredNumberCompat; 113 FilteredNumberCompat.setIsEnabledForTest(true); in testMaybeNotifyCallBlockingDisabled_Migrated() 114 FilteredNumberCompat.setHasMigratedToNewBlocking(true); in testMaybeNotifyCallBlockingDisabled_Migrated()
|
D | BlockedNumbersFragmentInstrumentationTest.java | 27 import com.android.dialer.compat.FilteredNumberCompat; 53 FilteredNumberCompat.setIsEnabledForTest(true); in setUp()
|
/packages/apps/Dialer/src/com/android/dialer/filterednumber/ |
D | BlockedNumbersAutoMigrator.java | 24 import com.android.dialer.compat.FilteredNumberCompat; 77 FilteredNumberCompat.setHasMigratedToNewBlocking(true); in autoMigrate() 90 if (!FilteredNumberCompat.canUseNewFiltering()) { in shouldAttemptAutoMigrate() 95 if (FilteredNumberCompat.hasMigratedToNewBlocking()) { in shouldAttemptAutoMigrate()
|
D | BlockedNumbersFragment.java | 40 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()
|
D | BlockedNumbersMigrator.java | 27 import com.android.dialer.compat.FilteredNumberCompat; 76 if (!FilteredNumberCompat.canUseNewFiltering()) { in migrate() 91 FilteredNumberCompat.setHasMigratedToNewBlocking(isSuccessful); in migrate()
|
D | FilteredNumbersUtil.java | 36 import com.android.dialer.compat.FilteredNumberCompat; 303 if (FilteredNumberCompat.useNewFiltering()) { in maybeNotifyCallBlockingDisabled()
|
D | BlockNumberDialogFragment.java | 35 import com.android.dialer.compat.FilteredNumberCompat; 166 if (FilteredNumberCompat.useNewFiltering()) { in onCreateDialog()
|
/packages/apps/Dialer/src/com/android/dialer/settings/ |
D | DialerSettingsActivity.java | 34 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/ |
D | FilteredNumberAsyncQueryHandlerTest.java | 31 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/ |
D | CallDetailActivity.java | 57 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/ |
D | CallLogListItemViewHolder.java | 54 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/ |
D | FilteredNumberCompat.java | 63 public class FilteredNumberCompat { class
|