Home
last modified time | relevance | path

Searched refs:mmsConfig (Results 1 – 12 of 12) sorted by relevance

/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java121 String proxyHost, int proxyPort, Bundle mmsConfig, int subId, String requestId) in execute() argument
140 mmsConfig.getInt(SmsManager.MMS_CONFIG_HTTP_SOCKET_TIMEOUT)); in execute()
142 mmsConfig.getInt(SmsManager.MMS_CONFIG_HTTP_SOCKET_TIMEOUT)); in execute()
150 final String userAgent = mmsConfig.getString(SmsManager.MMS_CONFIG_USER_AGENT); in execute()
155 mmsConfig.getString(SmsManager.MMS_CONFIG_UA_PROF_TAG_NAME); in execute()
156 final String uaProfUrl = mmsConfig.getString(SmsManager.MMS_CONFIG_UA_PROF_URL); in execute()
172 if (mmsConfig.getBoolean(CarrierConfigManager.KEY_MMS_CLOSE_CONNECTION_BOOL, false)) { in execute()
177 addExtraHeaders(connection, mmsConfig, subId); in execute()
186 if (mmsConfig.getBoolean(SmsManager.MMS_CONFIG_SUPPORT_HTTP_CHARSET_HEADER)) { in execute()
370 private void addExtraHeaders(HttpURLConnection connection, Bundle mmsConfig, int subId) { in addExtraHeaders() argument
[all …]
DMmsConfigManager.java92 Bundle mmsConfig; in getMmsConfigBySubId() local
94 mmsConfig = mSubIdConfigMap.get(subId); in getMmsConfigBySubId()
96 LogUtil.i("mms config for sub " + subId + ": " + mmsConfig); in getMmsConfigBySubId()
98 if (mmsConfig != null) { in getMmsConfigBySubId()
99 return new Bundle(mmsConfig); in getMmsConfigBySubId()
DMmsService.java245 Bundle mmsConfig = loadMmsConfig(subId);
246 if (mmsConfig == null) {
254 mmsConfig.putAll(configOverrides);
258 if (!mmsConfig.getBoolean(SmsManager.MMS_CONFIG_MMS_ENABLED)) {
267 locationUrl, sentIntent, callingUser, callingPkg, mmsConfig,
349 Bundle mmsConfig = loadMmsConfig(subId);
350 if (mmsConfig == null) {
358 mmsConfig.putAll(configOverrides);
362 if (!mmsConfig.getBoolean(SmsManager.MMS_CONFIG_MMS_ENABLED)) {
369 contentUri, downloadedIntent, callingPkg, mmsConfig, MmsService.this,
DMmsRequest.java164 Bundle mmsConfig, Context context, long messageId, MmsStats mmsStats, in MmsRequest() argument
170 mMmsConfig = mmsConfig; in MmsRequest()
/packages/services/Mms/tests/unittests/src/com/android/mms/service/
DMmsHttpClientTest.java81 Bundle mmsConfig = new Bundle(); in getPhoneNumberForMacroLine1() local
87 phoneNo = MmsHttpClient.getMacroValue(mContext, macro, mmsConfig, subId); in getPhoneNumberForMacroLine1()
97 phoneNo = MmsHttpClient.getMacroValue(mContext, macro, mmsConfig, subId); in getPhoneNumberForMacroLine1()
105 phoneNo = MmsHttpClient.getMacroValue(mContext, macro, mmsConfig, subId); in getPhoneNumberForMacroLine1()
115 Bundle mmsConfig = new Bundle(); in getPhoneNumberForMacroLine1CountryCode() local
119 phoneNo = MmsHttpClient.getMacroValue(mContext, macro, mmsConfig, subId); in getPhoneNumberForMacroLine1CountryCode()
129 phoneNo = MmsHttpClient.getMacroValue(mContext, macro, mmsConfig, subId); in getPhoneNumberForMacroLine1CountryCode()
137 phoneNo = MmsHttpClient.getMacroValue(mContext, macro, mmsConfig, subId); in getPhoneNumberForMacroLine1CountryCode()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageTextStats.java55 final MmsConfig mmsConfig = MmsConfig.get(selfSubId); in updateMessageTextStats() local
56 if (!mmsConfig.getMultipartSmsEnabled() && in updateMessageTextStats()
57 !mmsConfig.getSendMultipartSmsAsSeparateMessages()) { in updateMessageTextStats()
63 final int threshold = mmsConfig.getSmsToMmsTextThreshold(); in updateMessageTextStats()
68 int smsToMmsLengthThreshold = mmsConfig.getSmsToMmsTextLengthThreshold(); in updateMessageTextStats()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsRequest.java55 protected abstract boolean loadRequest(Context context, Bundle mmsConfig); in loadRequest() argument
80 ApnSettingsLoader.Apn apn, Bundle mmsConfig, String userAgent, String uaProfUrl) in doHttp() argument
136 final Bundle mmsConfig = carrierConfigValuesLoader.get(MmsManager.DEFAULT_SUB_ID); in execute() local
137 if (mmsConfig == null) { in execute()
140 } else if (!loadRequest(context, mmsConfig)) { in execute()
173 context, networkManager, apn, mmsConfig, userAgent, uaProfUrl); in execute()
175 if (isWrongApnResponse(response, mmsConfig)) { in execute()
223 static boolean isWrongApnResponse(final byte[] response, final Bundle mmsConfig) { in isWrongApnResponse() argument
228 mmsConfig.getBoolean( in isWrongApnResponse()
DMmsHttpClient.java113 String proxyHost, int proxyPort, Bundle mmsConfig, String userAgent, String uaProfUrl) in execute() argument
130 mmsConfig.getInt(CarrierConfigValuesLoader.CONFIG_HTTP_SOCKET_TIMEOUT, in execute()
142 final String uaProfUrlTagName = mmsConfig.getString( in execute()
150 addExtraHeaders(connection, mmsConfig); in execute()
159 if (mmsConfig.getBoolean( in execute()
310 private String resolveMacro(String value, Bundle mmsConfig) { in resolveMacro() argument
326 final String macroValue = getHttpParamMacro(macro, mmsConfig); in resolveMacro()
346 private void addExtraHeaders(HttpURLConnection connection, Bundle mmsConfig) { in addExtraHeaders() argument
347 final String extraHttpParams = mmsConfig.getString( in addExtraHeaders()
356 final String value = resolveMacro(splitPair[1].trim(), mmsConfig); in addExtraHeaders()
[all …]
DSendRequest.java52 protected boolean loadRequest(final Context context, final Bundle mmsConfig) { in loadRequest() argument
56 mmsConfig.getInt( in loadRequest()
79 Bundle mmsConfig, String userAgent, String uaProfUrl) throws MmsHttpException { in doHttp() argument
83 mmsConfig, userAgent, uaProfUrl); in doHttp()
DDownloadRequest.java47 protected boolean loadRequest(final Context context, final Bundle mmsConfig) { in loadRequest() argument
59 Bundle mmsConfig, String userAgent, String uaProfUrl) throws MmsHttpException { in doHttp() argument
63 mmsConfig, userAgent, uaProfUrl); in doHttp()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsConfig.java116 final MmsConfig mmsConfig = sSubIdToMmsConfigMap.get(realSubId); in get() local
117 if (mmsConfig == null) { in get()
124 return mmsConfig; in get()
171 private static void addMmsConfig(MmsConfig mmsConfig) { in addMmsConfig() argument
173 (mmsConfig.mSubId == ParticipantData.DEFAULT_SELF_SUB_ID)); in addMmsConfig()
174 sSubIdToMmsConfigMap.put(mmsConfig.mSubId, mmsConfig); in addMmsConfig()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java985 final MmsConfig mmsConfig = getMmsConfig(); in chooseBestPictureSize() local
986 final int maxWidth = mmsConfig.getMaxImageWidth(); in chooseBestPictureSize()
987 final int maxHeight = mmsConfig.getMaxImageHeight(); in chooseBestPictureSize()