Home
last modified time | relevance | path

Searched refs:appContext (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java73 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/
DRefreshAnnotatedCallLogWorker.java44 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 …]
DCallLogFramework.java57 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/
DBlockedNumbersAutoMigrator.java40 @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/
DCountryDetector.java80 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/
DSharedPrefConfigProvider.java55 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/
DGlobalKeyReceiver.java50 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/
DCopyJob.java231 .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 …]
DResolvedResourcesJob.java66 Iterable<Uri> uris = mResourceUris.getUris(appContext); in setUp()
120 final ContentResolver resolver = appContext.getContentResolver(); in buildDocumentList()
123 uris = mResourceUris.getUris(appContext); in buildDocumentList()
DJob.java89 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()
DMoveJob.java95 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/
DCallLogDataSource.java68 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/
DDevelopmentSettingsTest.java115 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/
DBurstFacadeFactory.java77 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/
DContactsDataSource.java39 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/
DTunerInputInfoUtils.java83 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/
DCarUiEntry.java40 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/
DAccountSetupTypeFragment.java53 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/
DSender.java109 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/
DEmergencyTonePreferenceControllerTest.java65 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/
DSuggestionFeatureProviderImpl.java107 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/
DContextModule.java31 public ContextModule(@NonNull Context appContext) { in ContextModule() argument
32 this.context = Assert.isNotNull(appContext); in ContextModule()
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java40 public SoundPlayer(Context appContext) { in SoundPlayer() argument
41 mAppContext = appContext; in SoundPlayer()
/packages/apps/Camera2/src/com/android/camera/device/
DPortabilityCameraActionProvider.java41 Context appContext, in PortabilityCameraActionProvider() argument
46 mAppContext = appContext; in PortabilityCameraActionProvider()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogDatabaseHelper.java30 AnnotatedCallLogDatabaseHelper(Context appContext, int maxRows) { in AnnotatedCallLogDatabaseHelper() argument
31 super(appContext, "annotated_call_log.db", null, 1); in AnnotatedCallLogDatabaseHelper()

12