/aosp12/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/ |
H A D | ContactDisplayPreferencesImpl.java | 32 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 D | BlockedNumbersAutoMigrator.java | 41 @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 D | PreferredAccountWorkerImpl.java | 73 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 D | FeatureFactoryImpl.java | 78 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 D | FeatureFactoryImplTwoPanel.java | 82 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 D | app.c | 642 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 D | clients.c | 175 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 D | services.c | 87 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 D | CountryDetector.java | 81 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 D | AbstractGlobalKeyReceiver.java | 49 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 D | DailyLoggingAlarmReceiver.java | 53 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 D | DailyLoggingAlarmScheduler.java | 40 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 D | RotationWallpaperUpdateReceiver.java | 60 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 D | CallCommand.java | 40 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 D | ActiveCallsCommand.java | 32 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 D | MissedCallCountObserver.java | 36 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 D | SystemCallLogDataSource.java | 75 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 D | CequintPhoneLookup.java | 45 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 D | ClearMissedCalls.java | 46 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 D | SystemBlockedNumberPhoneLookup.java | 53 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 D | clients_test.cpp | 69 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 D | DuoPromotion.java | 43 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 D | RefreshAnnotatedCallLogNotifier.java | 43 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 D | PhoneLookupHistoryDatabaseHelper.java | 38 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 D | PhoneLookupHistoryRecorder.java | 45 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()
|