Home
last modified time | relevance | path

Searched refs:configProvider (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
DTranscriptionClientFactory.java49 private final TranscriptionConfigProvider configProvider; field in TranscriptionClientFactory
54 public TranscriptionClientFactory(Context context, TranscriptionConfigProvider configProvider) { in TranscriptionClientFactory() argument
55 this(context, configProvider, getManagedChannel(configProvider)); in TranscriptionClientFactory()
59 Context context, TranscriptionConfigProvider configProvider, ManagedChannel managedChannel) { in TranscriptionClientFactory() argument
60 this.configProvider = configProvider; in TranscriptionClientFactory()
73 packageName, cert, configProvider.getApiKey(), configProvider.getAuthToken())); in getClient()
84 private static ManagedChannel getManagedChannel(TranscriptionConfigProvider configProvider) { in getManagedChannel() argument
86 OkHttpChannelBuilder.forTarget(configProvider.getServerAddress()); in getManagedChannel()
88 if (configProvider.shouldUsePlaintext()) { in getManagedChannel()
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/
DConcreteCreator.java53 ConfigProvider configProvider = ConfigProviderComponent.get(context).getConfigProvider(); in createNewAssistedDialingMediator() local
72 if (!isAssistedDialingEnabled(configProvider)) { in createNewAssistedDialingMediator()
84 Constraints constraints = new Constraints(context, getCountryCodeProvider(configProvider)); in createNewAssistedDialingMediator()
97 public static boolean isAssistedDialingEnabled(@NonNull ConfigProvider configProvider) { in isAssistedDialingEnabled() argument
98 if (configProvider == null) { in isAssistedDialingEnabled()
104 && configProvider.getBoolean("assisted_dialing_enabled", false); in isAssistedDialingEnabled()
110 public static CountryCodeProvider getCountryCodeProvider(ConfigProvider configProvider) { in getCountryCodeProvider() argument
111 if (configProvider == null) { in getCountryCodeProvider()
116 return new CountryCodeProvider(configProvider); in getCountryCodeProvider()
DCountryCodeProvider.java49 CountryCodeProvider(ConfigProvider configProvider) { in CountryCodeProvider() argument
52 configProvider.getString("assisted_dialing_csv_country_codes", "")) in CountryCodeProvider()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionService.java56 private TranscriptionConfigProvider configProvider; field in TranscriptionService
137 TranscriptionConfigProvider configProvider) { in TranscriptionService() argument
140 this.configProvider = configProvider; in TranscriptionService()
157 "transcription server address: " + configProvider.getServerAddress()); in onStartJob()
208 configProvider.shouldUseSyncApi() in checkForWork()
210 this, new Callback(), workItem, getClientFactory(), configProvider) in checkForWork()
212 this, new Callback(), workItem, getClientFactory(), configProvider); in checkForWork()
264 if (configProvider == null) { in getConfigProvider()
265 configProvider = new TranscriptionConfigProvider(this); in getConfigProvider()
267 return configProvider; in getConfigProvider()
DTranscriptionTaskAsync.java53 TranscriptionConfigProvider configProvider) { in TranscriptionTaskAsync() argument
54 super(context, callback, workItem, clientFactory, configProvider); in TranscriptionTaskAsync()
93 configProvider, in getTranscription()
106 configProvider, in getTranscription()
128 if (configProvider.useClientGeneratedVoicemailIds() in getUploadRequest()
DTranscriptionTask.java64 protected final TranscriptionConfigProvider configProvider; field in TranscriptionTask
80 TranscriptionConfigProvider configProvider) { in TranscriptionTask() argument
87 this.configProvider = configProvider; in TranscriptionTask()
132 for (int i = 0; i < configProvider.getMaxTranscriptionRetries(); i++) { in sendRequest()
DGetTranscriptReceiver.java66 TranscriptionConfigProvider configProvider, in beginPolling() argument
69 long initialDelayMillis = configProvider.getInitialGetTranscriptPollDelayMillis(); in beginPolling()
70 long maxBackoffMillis = configProvider.getMaxGetTranscriptPollTimeMillis(); in beginPolling()
71 int maxAttempts = configProvider.getMaxGetTranscriptPolls(); in beginPolling()
DTranscriptionTaskSync.java38 TranscriptionConfigProvider configProvider) { in TranscriptionTaskSync() argument
39 super(context, callback, workItem, clientFactory, configProvider); in TranscriptionTaskSync()
DTranscriptionRatingService.java70 TranscriptionConfigProvider configProvider = new TranscriptionConfigProvider(this); in onHandleWork() local
71 TranscriptionClientFactory factory = new TranscriptionClientFactory(this, configProvider); in onHandleWork()
/packages/apps/Dialer/java/com/android/dialer/promotion/impl/
DDuoPromotion.java44 private final ConfigProvider configProvider; field in DuoPromotion
51 ConfigProvider configProvider, in DuoPromotion() argument
55 this.configProvider = configProvider; in DuoPromotion()
67 if (!configProvider.getBoolean(FLAG_SHOW_DUO_DISCLOSURE, false)) { in isEligibleToBeShown()
93 <= configProvider.getLong( in isEligibleToBeShown()
123 configProvider.getString( in getDetails()
DRttPromotion.java37 private final ConfigProvider configProvider; field in RttPromotion
48 ConfigProvider configProvider) { in RttPromotion() argument
51 this.configProvider = configProvider; in RttPromotion()
70 configProvider.getString( in getDetails()
/packages/apps/Dialer/java/com/android/dialer/calllog/config/
DCallLogConfigImpl.java67 private final ConfigProvider configProvider; field in CallLogConfigImpl
75 ConfigProvider configProvider, in CallLogConfigImpl() argument
80 this.configProvider = configProvider; in CallLogConfigImpl()
87 configProvider.getBoolean("new_call_log_fragment_enabled", false); in update()
89 configProvider.getBoolean("new_voicemail_fragment_enabled", false); in update()
90 boolean newPeerEnabledInConfigProvider = configProvider.getBoolean("nui_peer_enabled", false); in update()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2ExtendedDirectoryPhoneLookup.java66 private final ConfigProvider configProvider; field in Cp2ExtendedDirectoryPhoneLookup
78 ConfigProvider configProvider, in Cp2ExtendedDirectoryPhoneLookup() argument
84 this.configProvider = configProvider; in Cp2ExtendedDirectoryPhoneLookup()
101 configProvider.getLong(CP2_EXTENDED_DIRECTORY_PHONE_LOOKUP_TIMEOUT_MILLIS, Long.MAX_VALUE); in lookup()
DCp2DefaultDirectoryPhoneLookup.java76 private final ConfigProvider configProvider; field in Cp2DefaultDirectoryPhoneLookup
87 ConfigProvider configProvider, in Cp2DefaultDirectoryPhoneLookup() argument
93 this.configProvider = configProvider; in Cp2DefaultDirectoryPhoneLookup()
974 return configProvider.getLong("cp2_phone_lookup_max_invalid_numbers", 5);
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DAssistedDialAction.java87 ConfigProvider configProvider = ConfigProviderComponent.get(context).getConfigProvider(); in getAssistedDialingTelephonyManager() local
95 if (!configProvider.getBoolean("assisted_dialing_dual_sim_enabled", false)) { in getAssistedDialingTelephonyManager()
/packages/apps/Dialer/java/com/android/dialer/precall/externalreceiver/
DLaunchPreCallActivity.java72 ConfigProvider configProvider = in onCreate() local
89 configProvider.getBoolean("assisted_dialing_default_precall_state", false))); in onCreate()