Home
last modified time | relevance | path

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

12345678

/aosp12/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/
H A DContactDisplayPreferencesImpl.java32 private final Context appContext; field in ContactDisplayPreferencesImpl
38 ContactDisplayPreferencesImpl(@ApplicationContext Context appContext) { in ContactDisplayPreferencesImpl() argument
39 this.appContext = appContext; in ContactDisplayPreferencesImpl()
42 this.sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext); in ContactDisplayPreferencesImpl()
44 sortOrderKey = appContext.getString(R.string.display_options_sort_list_by_key); in ContactDisplayPreferencesImpl()
84 if (!appContext.getSystemService(UserManager.class).isUserUnlocked()) { in migrate()
88 appContext.getSharedPreferences(appContext.getPackageName(), Context.MODE_PRIVATE); in migrate()
104 return DisplayOrder.ALTERNATIVE.getValue(appContext); in translateLegacyDisplayOrder()
106 return DisplayOrder.PRIMARY.getValue(appContext); in translateLegacyDisplayOrder()
113 return SortOrder.BY_ALTERNATIVE.getValue(appContext); in translateLegacySortOrder()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/blocking/
H A DBlockedNumbersAutoMigrator.java41 @NonNull private final Context appContext; field in BlockedNumbersAutoMigrator
54 @NonNull Context appContext, in BlockedNumbersAutoMigrator()
57 this.appContext = Assert.isNotNull(appContext); in BlockedNumbersAutoMigrator()
64 .createNonUiTaskBuilder(new ShouldAttemptAutoMigrate(appContext)) in asyncAutoMigrate()
96 private final Context appContext; field in BlockedNumbersAutoMigrator.ShouldAttemptAutoMigrate
98 ShouldAttemptAutoMigrate(Context appContext) { in ShouldAttemptAutoMigrate() argument
99 this.appContext = appContext; in ShouldAttemptAutoMigrate()
105 if (!UserManagerCompat.isUserUnlocked(appContext)) { in doInBackground()
110 PreferenceManager.getDefaultSharedPreferences(appContext); in doInBackground()
118 if (!FilteredNumberCompat.canAttemptBlockOperations(appContext)) { in doInBackground()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
H A DPreferredAccountWorkerImpl.java73 private final Context appContext; field in PreferredAccountWorkerImpl
82 @ApplicationContext Context appContext, in PreferredAccountWorkerImpl()
84 this.appContext = appContext; in PreferredAccountWorkerImpl()
114 appContext in doInBackground()
122 SimSuggestionComponent.get(appContext) in doInBackground()
124 .getSuggestion(appContext, phoneNumber); in doInBackground()
228 appContext.getString( in createDialogOptionsBuilder()
244 if (!isPreferredSimEnabled(appContext)) { in getDataId()
256 appContext in getDataId()
268 PreferredAccountUtil.getValidAccountTypes(appContext); in getDataId()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/overlay/
H A DFeatureFactoryImpl.java78 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local
79 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider()
80 appContext.getSystemService(DevicePolicyManager.class), in getEnterprisePrivacyFeatureProvider()
81 appContext.getPackageManager(), UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider()
82 appContext.getSystemService(ConnectivityManager.class), in getEnterprisePrivacyFeatureProvider()
83 appContext.getSystemService(VpnManager.class), appContext.getResources()); in getEnterprisePrivacyFeatureProvider()
91 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local
92 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider()
93 appContext.getPackageManager(), in getApplicationFeatureProvider()
95 appContext.getSystemService(DevicePolicyManager.class)); in getApplicationFeatureProvider()
H A DFeatureFactoryImplTwoPanel.java82 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local
84 appContext.getSystemService(DevicePolicyManager.class), in getEnterprisePrivacyFeatureProvider()
85 appContext.getPackageManager(), in getEnterprisePrivacyFeatureProvider()
86 UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider()
87 appContext.getSystemService(ConnectivityManager.class), in getEnterprisePrivacyFeatureProvider()
88 appContext.getSystemService(VpnManager.class), in getEnterprisePrivacyFeatureProvider()
89 appContext.getResources()); in getEnterprisePrivacyFeatureProvider()
97 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local
98 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider()
99 appContext.getPackageManager(), in getApplicationFeatureProvider()
[all …]
/aosp12/system/chre/chpp/
H A Dapp.c642 struct ChppAppState *appContext, in chppAppInitWithClientServiceSet() argument
645 CHPP_NOT_NULL(appContext); in chppAppInitWithClientServiceSet()
649 memset(appContext, 0, sizeof(*appContext)); in chppAppInitWithClientServiceSet()
655 chppPalSystemApiInit(appContext); in chppAppInitWithClientServiceSet()
658 chppRegisterCommonServices(appContext); in chppAppInitWithClientServiceSet()
662 chppRegisterCommonClients(appContext); in chppAppInitWithClientServiceSet()
663 chppInitBasicClients(appContext); in chppAppInitWithClientServiceSet()
671 chppDeinitMatchedClients(appContext); in chppAppDeinit()
672 chppDeinitBasicClients(appContext); in chppAppDeinit()
673 chppDeregisterCommonClients(appContext); in chppAppDeinit()
[all …]
H A Dclients.c175 appContext->registeredClientCount); in chppRegisterClient()
178 clientState->appContext = appContext; in chppRegisterClient()
180 clientState->index = appContext->registeredClientCount; in chppRegisterClient()
182 appContext->registeredClientContexts[appContext->registeredClientCount] = in chppRegisterClient()
184 appContext->registeredClientStates[appContext->registeredClientCount] = in chppRegisterClient()
186 appContext->registeredClients[appContext->registeredClientCount] = in chppRegisterClient()
193 appContext->registeredClientCount, uuidText, in chppRegisterClient()
198 appContext->registeredClientCount++; in chppRegisterClient()
335 clientState->appContext->nextRequestTimeoutNs = MIN( in chppClientTimestampRequest()
405 clientState->appContext->nextRequestTimeoutNs) { in chppClientTimestampResponse()
[all …]
H A Dservices.c87 uint8_t chppRegisterService(struct ChppAppState *appContext, in chppRegisterService() argument
92 if (appContext->registeredServiceCount >= CHPP_MAX_REGISTERED_SERVICES) { in chppRegisterService()
94 appContext->registeredServiceCount); in chppRegisterService()
98 appContext->registeredServices[appContext->registeredServiceCount] = in chppRegisterService()
100 appContext->registeredServiceContexts[appContext->registeredServiceCount] = in chppRegisterService()
109 appContext->registeredServiceCount, in chppRegisterService()
110 CHPP_SERVICE_HANDLE_OF_INDEX(appContext->registeredServiceCount), in chppRegisterService()
116 return CHPP_SERVICE_HANDLE_OF_INDEX(appContext->registeredServiceCount++); in chppRegisterService()
186 return chppEnqueueTxDatagramOrFail(serviceState->appContext->transportContext, in chppSendTimestampedResponseOrFail()
/aosp12/packages/apps/Dialer/java/com/android/dialer/location/
H A DCountryDetector.java81 private final Context appContext; field in CountryDetector
85 Context appContext, in CountryDetector() argument
92 this.appContext = appContext; in CountryDetector()
98 registerForLocationUpdates(appContext, locationManager); in CountryDetector()
127 Context appContext = context.getApplicationContext(); in getInstance() local
130 appContext, in getInstance()
134 new Geocoder(appContext)); in getInstance()
168 || !hasLocationPermissions(appContext) in getLocationBasedCountryIso()
169 || !UserManagerCompat.isUserUnlocked(appContext)) { in getLocationBasedCountryIso()
220 Context appContext, Geocoder geocoder, Location location) { in processLocationUpdate() argument
[all …]
/aosp12/packages/apps/TV/src/com/android/tv/receiver/
H A DAbstractGlobalKeyReceiver.java49 Context appContext = context.getApplicationContext(); in onReceive() local
52 handleIntent(appContext, intent); in onReceive()
58 appContext.getContentResolver(), in onReceive()
69 handleIntent(appContext, intent); in onReceive()
76 private void handleIntent(Context appContext, Intent intent) { in handleIntent() argument
88 ((TvApplication) appContext).handleDvrKey(); in handleIntent()
91 ((TvApplication) appContext).handleGuideKey(); in handleIntent()
94 ((TvApplication) appContext).handleTvKey(); in handleIntent()
97 ((TvApplication) appContext).handleTvInputKey(); in handleIntent()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
H A DDailyLoggingAlarmReceiver.java53 Context appContext = context.getApplicationContext(); in onReceive() local
55 UserEventLogger logger = injector.getUserEventLogger(appContext); in onReceive()
56 WallpaperPreferences preferences = injector.getPreferences(appContext); in onReceive()
65 logDailyWallpaperRotationStatus(appContext); in onReceive()
68 DiskBasedLogger.clearOldLogs(appContext); in onReceive()
77 private void logDailyWallpaperRotationStatus(Context appContext) { in logDailyWallpaperRotationStatus() argument
81 … PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE); in logDailyWallpaperRotationStatus()
88 injector.getWallpaperRefresher(appContext).refresh(new RefreshListener() { in logDailyWallpaperRotationStatus()
99 WallpaperPreferences preferences = injector.getPreferences(appContext); in logDailyWallpaperRotationStatus()
125 UserEventLogger logger = injector.getUserEventLogger(appContext); in logDailyWallpaperRotationStatus()
H A DDailyLoggingAlarmScheduler.java40 public static void setAlarm(Context appContext) { in setAlarm() argument
42 AlarmManagerWrapper alarmManagerWrapper = injector.getAlarmManagerWrapper(appContext); in setAlarm()
43 WallpaperPreferences preferences = injector.getPreferences(appContext); in setAlarm()
69 PendingIntent pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm()
72 pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm()
80 private static PendingIntent createAlarmReceiverPendingIntent(Context appContext) { in createAlarmReceiverPendingIntent() argument
81 Intent intent = new Intent(appContext, DailyLoggingAlarmReceiver.class); in createAlarmReceiverPendingIntent()
83 appContext, UNUSED_REQUEST_CODE, intent, FLAG_IMMUTABLE); in createAlarmReceiverPendingIntent()
H A DRotationWallpaperUpdateReceiver.java60 Context appContext = context.getApplicationContext(); in onReceive()
61 Context deviceProtectedContext = appContext.createDeviceProtectedStorageContext(); in onReceive()
64 moveFileToProtectedStorage(appContext, deviceProtectedContext); in onReceive()
70 switchToStaticWallpaper(appContext, wallpaperFile); in onReceive()
89 private void switchToStaticWallpaper(Context appContext, File wallpaperFile) { in switchToStaticWallpaper() argument
92 WallpaperPreferences wallpaperPreferences = injector.getPreferences(appContext); in switchToStaticWallpaper()
99 injector.getWallpaperPersister(appContext).setWallpaperInRotation(bitmap, in switchToStaticWallpaper()
108 DiskBasedLogger.e(TAG, "Unable to set static wallpaper", appContext); in switchToStaticWallpaper()
/aosp12/packages/apps/Dialer/java/com/android/dialer/commandline/impl/
H A DCallCommand.java40 private final Context appContext; field in CallCommand
43 CallCommand(@ApplicationContext Context appContext) { in CallCommand() argument
44 this.appContext = appContext; in CallCommand()
69 TelecomManager telecomManager = appContext.getSystemService(TelecomManager.class); in run()
81 appContext in run()
85 Intent intent = PreCall.getIntent(appContext, callIntentBuilder); in run()
87 appContext.startActivity(intent); in run()
H A DActiveCallsCommand.java32 private final Context appContext; field in ActiveCallsCommand
35 ActiveCallsCommand(@ApplicationContext Context appContext) { in ActiveCallsCommand() argument
36 this.appContext = appContext; in ActiveCallsCommand()
62 ActiveCallsComponent.get(appContext).activeCalls().getActiveCalls().toString()); in run()
/aosp12/packages/apps/Dialer/java/com/android/dialer/main/impl/bottomnav/
H A DMissedCallCountObserver.java36 private final Context appContext; field in MissedCallCountObserver
41 Context appContext, BottomNavBar bottomNavBar, UiListener<Integer> uiListener) { in MissedCallCountObserver() argument
43 this.appContext = appContext; in MissedCallCountObserver()
52 DialerExecutorComponent.get(appContext) in onChange()
57 appContext in onChange()
75 appContext, in onChange()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
H A DSystemCallLogDataSource.java75 private final Context appContext; field in SystemCallLogDataSource
87 @ApplicationContext Context appContext, in SystemCallLogDataSource()
93 this.appContext = appContext; in SystemCallLogDataSource()
105 if (!PermissionsUtil.hasCallLogReadPermissions(appContext)) { in registerContentObservers()
114 appContext in registerContentObservers()
124 appContext in registerContentObservers()
215 handleDeletes(appContext, annotatedCallLogIds, mutations); in fillInternal()
239 appContext in handleInsertsAndUpdates()
457 appContext in getAnnotatedCallLogIds()
482 Context appContext, Set<Long> matchingIds) { in getIdsFromSystemCallLogThatMatch() argument
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/cequint/
H A DCequintPhoneLookup.java45 private final Context appContext; field in CequintPhoneLookup
51 @ApplicationContext Context appContext, in CequintPhoneLookup()
54 this.appContext = appContext; in CequintPhoneLookup()
60 public ListenableFuture<CequintInfo> lookup(Context appContext, Call call) { in lookup() argument
61 if (!CequintCallerIdManager.isCequintCallerIdEnabled(appContext)) { in lookup()
70 TelecomCallUtil.getNumber(call), GeoUtil.getCurrentCountryIso(appContext)); in lookup()
82 appContext, in lookup()
91 if (!CequintCallerIdManager.isCequintCallerIdEnabled(appContext)) { in lookup()
99 appContext, dialerPhoneNumber.getNormalizedNumber()))); in lookup()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/
H A DClearMissedCalls.java46 private final Context appContext; field in ClearMissedCalls
52 @ApplicationContext Context appContext, in ClearMissedCalls()
55 this.appContext = appContext; in ClearMissedCalls()
69 MissedCallNotificationCanceller.cancelAll(appContext); in clearAll()
100 MissedCallNotificationCanceller.cancelSingle(appContext, callUri); in clearBySystemCallLogId()
127 if (!UserManagerCompat.isUserUnlocked(appContext)) {
131 if (!PermissionsUtil.hasCallLogWritePermissions(appContext)) {
152 appContext
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/blockednumber/
H A DSystemBlockedNumberPhoneLookup.java53 private final Context appContext; field in SystemBlockedNumberPhoneLookup
59 @ApplicationContext Context appContext, in SystemBlockedNumberPhoneLookup()
62 this.appContext = appContext; in SystemBlockedNumberPhoneLookup()
69 if (!FilteredNumberCompat.useNewFiltering(appContext)) { in lookup()
86 if (!FilteredNumberCompat.useNewFiltering(appContext)) { in getMostRecentInfo()
104 appContext in queryNumbers()
122 appContext in queryNumbers()
167 appContext in registerContentObservers()
177 appContext.getContentResolver().unregisterContentObserver(markDirtyObserver); in unregisterContentObservers()
/aosp12/system/chre/chpp/test/
H A Dclients_test.cpp69 ASSERT_TRUE(clientState->appContext != NULL); in getClientRRStateInputCheck()
70 ASSERT_TRUE(clientState->appContext->registeredClients != NULL); in getClientRRStateInputCheck()
71 ASSERT_TRUE(clientState->appContext->registeredClients[clientIdx] != NULL); in getClientRRStateInputCheck()
77 clientState->appContext->registeredClients[clientIdx]->rRStateCount); in getClientRRStateInputCheck()
85 return &(clientState->appContext->registeredClientStates[clientIdx] in getClientRRState()
108 isTimeoutAsExpected(clientState->appContext->nextRequestTimeoutNs, in registerAndValidateRequestForTimeout()
118 ASSERT_FALSE(clientState->appContext == NULL); in registerAndValidateResponseForTimeout()
119 ASSERT_FALSE(clientState->appContext->registeredClients == NULL); in registerAndValidateResponseForTimeout()
126 clientState->appContext->registeredClients[clientIdx]->rRStateCount); in registerAndValidateResponseForTimeout()
129 &(clientState->appContext->registeredClientStates[clientIdx] in registerAndValidateResponseForTimeout()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/promotion/impl/
H A DDuoPromotion.java43 private final Context appContext; field in DuoPromotion
54 this.appContext = context; in DuoPromotion()
73 if (!duo.isEnabled(appContext) || !duo.isActivated(appContext)) { in isEligibleToBeShown()
115 return appContext.getString(R.string.duo_disclosure_title); in getTitle()
120 return new ContentWithLearnMoreSpanner(appContext) in getDetails()
122 appContext.getString(R.string.duo_disclosure_details), in getDetails()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/
H A DRefreshAnnotatedCallLogNotifier.java43 private final Context appContext; field in RefreshAnnotatedCallLogNotifier
48 @ApplicationContext Context appContext, @Unencrypted SharedPreferences sharedPreferences) { in RefreshAnnotatedCallLogNotifier()
49 this.appContext = appContext; in RefreshAnnotatedCallLogNotifier()
81 LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent); in notify()
97 LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent); in cancel()
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
H A DPhoneLookupHistoryDatabaseHelper.java38 private final Context appContext; field in PhoneLookupHistoryDatabaseHelper
43 @ApplicationContext Context appContext, in PhoneLookupHistoryDatabaseHelper()
45 super(appContext, FILENAME, null, 1); in PhoneLookupHistoryDatabaseHelper()
47 this.appContext = appContext; in PhoneLookupHistoryDatabaseHelper()
89 appContext.deleteDatabase(FILENAME); in delete()
/aosp12/packages/apps/Dialer/java/com/android/incallui/
H A DPhoneLookupHistoryRecorder.java45 static void recordPhoneLookupInfo(Context appContext, Call call) { in recordPhoneLookupInfo() argument
46 if (!CallLogConfigComponent.get(appContext).callLogConfig().isCallLogFrameworkEnabled()) { in recordPhoneLookupInfo()
51 PhoneLookupComponent.get(appContext).compositePhoneLookup().lookup(call); in recordPhoneLookupInfo()
60 TelecomCallUtil.getNormalizedNumber(appContext, call); in recordPhoneLookupInfo()
68 appContext in recordPhoneLookupInfo()
84 DialerExecutorComponent.get(appContext).backgroundExecutor()); in recordPhoneLookupInfo()

12345678