/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/ |
D | SystemCallLogDataSource.java | 73 Context appContext, ContentObserverCallbacks contentObserverCallbacks) { in registerContentObservers() argument 78 if (!PermissionsUtil.hasCallLogReadPermissions(appContext)) { in registerContentObservers() 83 appContext in registerContentObservers() 89 ThreadUtil.getUiThreadHandler(), appContext, contentObserverCallbacks)); in registerContentObservers() 94 public boolean isDirty(Context appContext) { in isDirty() argument 108 public void fill(Context appContext, CallLogMutations mutations) { in fill() argument 113 if (!PermissionsUtil.hasPermission(appContext, permission.READ_CALL_LOG)) { in fill() 121 Set<Long> annotatedCallLogIds = getAnnotatedCallLogIds(appContext); in fill() 128 handleInsertsAndUpdates(appContext, mutations, annotatedCallLogIds); in fill() 129 handleDeletes(appContext, annotatedCallLogIds, mutations); in fill() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ |
D | RefreshAnnotatedCallLogWorker.java | 44 private final Context appContext; field in RefreshAnnotatedCallLogWorker 48 RefreshAnnotatedCallLogWorker(@ApplicationContext Context appContext, DataSources dataSources) { in RefreshAnnotatedCallLogWorker() argument 49 this.appContext = appContext; in RefreshAnnotatedCallLogWorker() 59 checkDirtyAndRebuildIfNecessary(appContext, skipDirtyCheck); in doInBackground() 68 private void checkDirtyAndRebuildIfNecessary(Context appContext, boolean skipDirtyCheck) in checkDirtyAndRebuildIfNecessary() argument 74 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext); in checkDirtyAndRebuildIfNecessary() 85 boolean isDirty = skipDirtyCheck || forceRebuildPrefValue || isDirty(appContext); in checkDirtyAndRebuildIfNecessary() 93 rebuild(appContext); in checkDirtyAndRebuildIfNecessary() 102 private boolean isDirty(Context appContext) { in isDirty() argument 109 boolean isDirty = dataSource.isDirty(appContext); in isDirty() [all …]
|
D | CallLogFramework.java | 57 public void registerContentObservers(Context appContext) { in registerContentObservers() argument 60 if (!isNewCallLogEnabled(appContext)) { in registerContentObservers() 66 dataSource.registerContentObservers(appContext, this); in registerContentObservers() 99 public void markDirtyAndNotify(Context appContext) { in markDirtyAndNotify() argument 103 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext); in markDirtyAndNotify()
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | BlockedNumbersAutoMigrator.java | 40 @NonNull private final Context appContext; field in BlockedNumbersAutoMigrator 53 @NonNull Context appContext, in BlockedNumbersAutoMigrator() 56 this.appContext = Assert.isNotNull(appContext); in BlockedNumbersAutoMigrator() 63 .createNonUiTaskBuilder(new ShouldAttemptAutoMigrate(appContext)) in asyncAutoMigrate() 89 FilteredNumberCompat.setHasMigratedToNewBlocking(appContext, true); in autoMigrate() 95 private final Context appContext; field in BlockedNumbersAutoMigrator.ShouldAttemptAutoMigrate 97 ShouldAttemptAutoMigrate(Context appContext) { in ShouldAttemptAutoMigrate() argument 98 this.appContext = appContext; in ShouldAttemptAutoMigrate() 104 if (!UserManagerCompat.isUserUnlocked(appContext)) { in doInBackground() 109 PreferenceManager.getDefaultSharedPreferences(appContext); in doInBackground() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 80 private final Context appContext; field in CountryDetector 84 Context appContext, in CountryDetector() argument 91 this.appContext = appContext; in CountryDetector() 97 registerForLocationUpdates(appContext, locationManager); in CountryDetector() 125 Context appContext = context.getApplicationContext(); in getInstance() local 128 appContext, in getInstance() 132 new Geocoder(appContext)); in getInstance() 166 || !PermissionsUtil.hasLocationPermissions(appContext) in getLocationBasedCountryIso() 167 || !UserManagerCompat.isUserUnlocked(appContext)) { in getLocationBasedCountryIso() 170 return PreferenceManager.getDefaultSharedPreferences(appContext) in getLocationBasedCountryIso() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/configprovider/ |
D | SharedPrefConfigProvider.java | 55 private final Context appContext; field in SharedPrefConfigProvider 58 SharedPrefConfigProvider(@ApplicationContext Context appContext) { in SharedPrefConfigProvider() argument 59 this.appContext = appContext; in SharedPrefConfigProvider() 99 () -> getSharedPrefs(appContext).getString(PREF_PREFIX + key, defaultValue)); in getString() 105 () -> getSharedPrefs(appContext).getLong(PREF_PREFIX + key, defaultValue)); in getLong() 111 () -> getSharedPrefs(appContext).getBoolean(PREF_PREFIX + key, defaultValue)); in getBoolean() 114 private static SharedPreferences getSharedPrefs(Context appContext) { in getSharedPrefs() argument 115 return DialerUtils.getDefaultSharedPreferenceForDeviceProtectedStorageContext(appContext); in getSharedPrefs()
|
/packages/apps/TV/src/com/android/tv/receiver/ |
D | GlobalKeyReceiver.java | 50 Context appContext = context.getApplicationContext(); in onReceive() local 53 handleIntent(appContext, intent); in onReceive() 58 return Settings.Secure.getInt(appContext.getContentResolver(), in onReceive() 67 handleIntent(appContext, intent); in onReceive() 74 private void handleIntent(Context appContext, Intent intent) { in handleIntent() argument 86 ((TvApplication) appContext).handleGuideKey(); in handleIntent() 89 ((TvApplication) appContext).handleTvKey(); in handleIntent() 92 ((TvApplication) appContext).handleTvInputKey(); in handleIntent()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 231 .setContentIntent(PendingIntent.getActivity(appContext, 0, navigateIntent, in getWarningNotification() 314 ProvidersCache cache = DocumentsApplication.getProvidersCache(appContext); in verifySpaceAvailable() 381 appContext, operationType, Metrics.OPMODE_PROVIDER); in processDocument() 388 appContext, Metrics.SUBFILEOP_QUICK_COPY, src.derivedUri); in processDocument() 413 appContext, Metrics.SUBFILEOP_OBTAIN_STREAM_TYPE, src.derivedUri); in byteCopyDocument() 426 appContext, Metrics.SUBFILEOP_OBTAIN_STREAM_TYPE, src.derivedUri); in byteCopyDocument() 443 appContext, Metrics.SUBFILEOP_CREATE_DOCUMENT, dest.derivedUri); in byteCopyDocument() 451 appContext, Metrics.SUBFILEOP_CREATE_DOCUMENT, dest.derivedUri); in byteCopyDocument() 462 appContext, Metrics.SUBFILEOP_QUERY_DOCUMENT, dstUri); in byteCopyDocument() 501 appContext, Metrics.SUBFILEOP_QUERY_CHILDREN, srcDir.derivedUri); in copyDirectoryHelper() [all …]
|
D | ResolvedResourcesJob.java | 66 Iterable<Uri> uris = mResourceUris.getUris(appContext); in setUp() 120 final ContentResolver resolver = appContext.getContentResolver(); in buildDocumentList() 123 uris = mResourceUris.getUris(appContext); in buildDocumentList()
|
D | Job.java | 89 final Context appContext; field in Job 126 this.appContext = service.getApplicationContext(); in Job() 287 .setContentIntent(PendingIntent.getActivity(appContext, 0, navigateIntent, in getFailureNotification() 304 PendingIntent.getActivity(appContext, 0, in createProgressBuilder()
|
D | MoveJob.java | 95 final ContentResolver resolver = appContext.getContentResolver(); in setUp() 153 appContext, operationType, Metrics.OPMODE_PROVIDER); in processDocument() 158 appContext, Metrics.SUBFILEOP_QUICK_MOVE, src.derivedUri); in processDocument()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/ |
D | CallLogDataSource.java | 68 boolean isDirty(Context appContext); in isDirty() argument 80 void fill(Context appContext, CallLogMutations mutations); in fill() argument 90 void onSuccessfulFill(Context appContext); in onSuccessfulFill() argument 110 Context appContext, ContentObserverCallbacks contentObserverCallbacks); in registerContentObservers() argument 117 void markDirtyAndNotify(Context appContext); in markDirtyAndNotify() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | DevelopmentSettingsTest.java | 115 final Context appContext = RuntimeEnvironment.application; in searchIndex_pageDisabled_shouldAddAllKeysToNonIndexable() local 116 new DevelopmentSettingsEnabler(appContext, null /* lifecycle */) in searchIndex_pageDisabled_shouldAddAllKeysToNonIndexable() 120 DevelopmentSettings.SEARCH_INDEX_DATA_PROVIDER.getNonIndexableKeys(appContext); in searchIndex_pageDisabled_shouldAddAllKeysToNonIndexable() 127 final Context appContext = RuntimeEnvironment.application; in searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() local 128 new DevelopmentSettingsEnabler(appContext, null /* lifecycle */) in searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() 132 DevelopmentSettings.SEARCH_INDEX_DATA_PROVIDER.getNonIndexableKeys(appContext); in searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable()
|
/packages/apps/Camera2/src/com/android/camera/burst/ |
D | BurstFacadeFactory.java | 77 public static BurstFacade create(Context appContext, in create() argument 80 if (BurstControllerImpl.isBurstModeSupported(appContext.getContentResolver())) { in create() 81 BurstFacade burstController = new BurstFacadeImpl(appContext, orientationController, in create() 84 new ToastingBurstFacadeDecorator.BurstToaster(appContext); in create()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/contacts/ |
D | ContactsDataSource.java | 39 public boolean isDirty(Context appContext) { in isDirty() argument 49 Context appContext, in fill() argument 59 public void onSuccessfulFill(Context appContext) { in onSuccessfulFill() argument 74 Context appContext, ContentObserverCallbacks contentObserverCallbacks) { in registerContentObservers() argument
|
/packages/apps/TV/src/com/android/tv/tuner/util/ |
D | TunerInputInfoUtils.java | 83 final Context appContext = context.getApplicationContext(); in updateTunerInputInfo() local 89 return buildTunerInputInfo(appContext); in updateTunerInputInfo() 96 ((TvInputManager) appContext.getSystemService(Context.TV_INPUT_SERVICE)) in updateTunerInputInfo() 102 + info.loadLabel(appContext) in updateTunerInputInfo()
|
/packages/services/Car/car-lib/src/android/car/app/menu/ |
D | CarUiEntry.java | 40 public CarUiEntry(Context uiLibContext, Context appContext) { in CarUiEntry() argument 42 appContext.getResources().getConfiguration()); in CarUiEntry() 43 mAppContext = appContext; in CarUiEntry()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSetupTypeFragment.java | 53 final Context appContext = inflater.getContext().getApplicationContext(); in onCreateView() local 59 : EmailServiceUtils.getServiceInfoList(appContext)) { in onCreateView() 60 if (EmailServiceUtils.isServiceAvailable(appContext, info.protocol)) { in onCreateView()
|
/packages/apps/Email/provider_src/com/android/email/mail/ |
D | Sender.java | 109 Context appContext = context.getApplicationContext(); in getInstance() local 110 Sender sender = findSender(appContext, R.xml.senders_product, account); in getInstance() 112 sender = findSender(appContext, R.xml.senders, account); in getInstance()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | EmergencyTonePreferenceControllerTest.java | 65 final Context appContext = ShadowApplication.getInstance().getApplicationContext(); in setUp() local 71 when(mActivity.getResources()).thenReturn(appContext.getResources()); in setUp() 72 mPreference = new DropDownPreference(appContext); in setUp()
|
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/ |
D | SuggestionFeatureProviderImpl.java | 107 final Context appContext = context.getApplicationContext(); in SuggestionFeatureProviderImpl() local 109 new SuggestionFeaturizer(new EventStore(appContext))); in SuggestionFeatureProviderImpl() 110 mMetricsFeatureProvider = FeatureFactory.getFactory(appContext) in SuggestionFeatureProviderImpl()
|
/packages/apps/Dialer/java/com/android/dialer/inject/ |
D | ContextModule.java | 31 public ContextModule(@NonNull Context appContext) { in ContextModule() argument 32 this.context = Assert.isNotNull(appContext); in ContextModule()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | SoundPlayer.java | 40 public SoundPlayer(Context appContext) { in SoundPlayer() argument 41 mAppContext = appContext; in SoundPlayer()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | PortabilityCameraActionProvider.java | 41 Context appContext, in PortabilityCameraActionProvider() argument 46 mAppContext = appContext; in PortabilityCameraActionProvider()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
D | AnnotatedCallLogDatabaseHelper.java | 30 AnnotatedCallLogDatabaseHelper(Context appContext, int maxRows) { in AnnotatedCallLogDatabaseHelper() argument 31 super(appContext, "annotated_call_log.db", null, 1); in AnnotatedCallLogDatabaseHelper()
|