HomeSort by relevance Sort by last modified time
    Searched refs:subId (Results 76 - 100 of 272) sorted by null

1 2 34 5 6 7 8 91011

  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastResources.java 267 int subId = cbm.getSubId();
269 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
275 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
280 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
293 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
297 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
302 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
306 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
310 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
314 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
    [all...]
CellBroadcastAlertService.java 200 * @param subId Subscription index
205 private long getDuplicateExpirationTime(int subId) {
214 PersistableBundle b = configManager.getConfigForSubId(subId);
240 int subId = intent.getExtras().getInt(PhoneConstants.SUBSCRIPTION_KEY);
241 if (SubscriptionManager.isValidSubscriptionId(subId)) {
242 cbm.setSubId(subId);
287 long expirationTime = getDuplicateExpirationTime(subId);
435 int subId = message.getSubId();
436 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
443 if (CellBroadcastChannelManager.checkCellBroadcastChannelRange(subId,
    [all...]
CellBroadcastChannelManager.java 212 * @param subId Subscription index
219 public static boolean checkCellBroadcastChannelRange(int subId, int channel, int key,
226 return checkScope(context, subId, range.mScope);
236 * @param subId Subscription id
240 public static boolean checkScope(Context context, int subId, int rangeScope) {
245 ServiceState ss = tm.getServiceStateForSubscriber(subId);
273 int subId = message.getSubId();
278 if (checkCellBroadcastChannelRange(subId, channel, key, context)) {
CellBroadcastConfigService.java 63 int subId = SubscriptionManager.getDefaultSmsSubscriptionId();
64 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
65 subId = SubscriptionManager.getDefaultSubscriptionId();
66 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID &&
70 subId = subIds[0];
86 if (id == subId) {
  /packages/apps/Messaging/src/android/support/v7/mms/
DefaultApnSettingsLoader.java 245 final int subId = Utils.getEffectiveSubscriptionId(MmsManager.DEFAULT_SUB_ID);
249 apns = mApnsCache.get(subId);
252 mApnsCache.put(subId, apns);
253 loadLocked(subId, apnName, apns);
263 private void loadLocked(final int subId, final String apnName, final List<Apn> apns) {
265 loadFromSystem(subId, apnName, apns);
270 loadFromResources(subId, apnName, apns);
275 loadFromResources(subId, null/*apnName*/, apns);
282 * @param subId the SIM subId
    [all...]
  /packages/apps/Settings/src/com/android/settings/sim/
SimDialogActivity.java 95 final int subId = sir.getSubscriptionId();
97 subscriptionIdToPhoneAccountHandle(subId);
98 setDefaultDataSubId(context, subId);
99 setDefaultSmsSubId(context, subId);
118 private static void setDefaultDataSubId(final Context context, final int subId) {
120 subscriptionManager.setDefaultDataSubId(subId);
124 private static void setDefaultSmsSubId(final Context context, final int subId) {
126 subscriptionManager.setDefaultSmsSubId(subId);
134 private PhoneAccountHandle subscriptionIdToPhoneAccountHandle(final int subId) {
143 if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount))
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
PhoneUtils.java 57 * The class instance can only be obtained via the get(int subId) method parameterized
58 * by a SIM subscription ID. On pre-L_MR1, the subId is not used and it has to be
59 * the default subId (-1).
61 * A convenient getDefault() method is provided for default subId (-1) on any platform
80 public PhoneUtils(int subId) {
81 mSubId = subId;
146 * Returns the "effective" subId, or the subId used in the context of actual messages,
155 * @param subId The input subId
    [all...]
BugleSubscriptionPrefs.java 32 public BugleSubscriptionPrefs(final Context context, final int subId) {
34 mSubId = subId;
  /packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
ServiceStateProviderTest.java 113 public ServiceState getServiceState(int subId) {
114 if (subId == 1) {
135 // Verify that when calling query with no subId in the uri the default ServiceState is
137 // In this case the subId is set to 0 and the expected service state is
147 // In this case the subId is set to 0 and the expected service state is
155 * Test querying the service state for a given subId
160 // Verify that when calling with a specific subId the correct ServiceState is returned
161 // In this case the subId is set to 1 and the expected service state is
224 int subId = 0;
237 ServiceStateProvider.notifyChangeForSubIdAndField(mContext, oldSS, newSS, subId);
    [all...]
  /packages/services/Telephony/src/com/android/phone/
MobileDataPreference.java 99 * Initialize this preference with subId.
101 public void initialize(int subId) {
102 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
107 if (mSubId != subId) {
108 mSubId = subId;
109 setKey(getKey() + subId);
217 private void disableDataForOtherSubscriptions(int subId) {
221 if (subInfo.getSubscriptionId() != subId) {
259 * Set / Unset data state listening, specifying subId.
261 public void setListener(boolean listening, int subId, Context context)
    [all...]
  /frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
CarrierDefaultReceiverTest.java 62 private static int subId = 0;
92 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId);
107 verify(mTelephonyMgr).carrierActionSetMeteredApnsEnabled(eq(subId), eq(false));
  /packages/services/Mms/src/com/android/mms/service/
MmsHttpClient.java 111 * @param subId The subscription ID used to get line number, etc.
117 String proxyHost, int proxyPort, Bundle mmsConfig, int subId, String requestId)
164 addExtraHeaders(connection, mmsConfig, subId);
355 * @param subId The subscription ID used to get line number, etc.
357 private void addExtraHeaders(HttpURLConnection connection, Bundle mmsConfig, int subId) {
367 resolveMacro(mContext, splitPair[1].trim(), mmsConfig, subId);
383 * @param subId The subscription ID used to get line number, etc.
386 private static String resolveMacro(Context context, String value, Bundle mmsConfig, int subId) {
402 final String macroValue = getMacroValue(context, macro, mmsConfig, subId);
460 * @param subId The subscription ID used to get line number, etc
    [all...]
MmsService.java 113 private MmsNetworkManager getNetworkManager(int subId) {
115 MmsNetworkManager manager = mNetworkManagerCache.get(subId);
117 manager = new MmsNetworkManager(this, subId);
118 mNetworkManagerCache.put(subId, manager);
130 private int checkSubId(int subId) {
131 if (!SubscriptionManager.isValidSubscriptionId(subId)) {
132 throw new RuntimeException("Invalid subId " + subId);
134 if (subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
137 return subId;
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/sms/
MmsUtils.java 297 final int subId) {
317 final int byteBudget = MmsConfig.get(subId).getMaxMessageSize() - totalLength
322 final int widthLimit = MmsConfig.get(subId).getMaxImageWidth();
323 final int heightLimit = MmsConfig.get(subId).getMaxImageHeight();
639 public static boolean groupMmsEnabled(final int subId) {
642 final BuglePrefs prefs = BuglePrefs.getSubscriptionPrefs(subId);
646 return MmsConfig.get(subId).getGroupMmsEnabled() && groupMmsPrefOn;
    [all...]
MmsConfig.java 109 * Retrieves the MmsConfig instance associated with the given {@code subId}
111 public static MmsConfig get(final int subId) {
112 final int realSubId = PhoneUtils.getDefault().getEffectiveSubId(subId);
116 // The subId is no longer valid. Fall back to the default config.
117 LogUtil.e(LogUtil.BUGLE_TAG, "Get mms config failed: invalid subId. subId=" + subId
118 + ", real subId=" + realSubId
126 private MmsConfig(final int subId, final Bundle values) {
127 mSubId = subId;
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/keyguard/
KeyguardUpdateMonitor.java 425 cb.onSimStateChanged(data.subId, data.slotId, data.simState);
    [all...]
KeyguardSimPinView.java 67 public void onSimStateChanged(int subId, int slotId, State simState) {
68 if (DEBUG) Log.v(TAG, "onSimStateChanged(subId=" + subId + ",state=" + simState + ")");
161 int subId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED);
162 if (subId != mSubId && SubscriptionManager.isValidSubscriptionId(subId)) {
163 mSubId = subId;
258 protected CheckSimPin(String pin, int subId) {
260 mSubId = subId;
269 Log.v(TAG, "call supplyPinReportResultForSubscriber(subid=" + mSubId + ")")
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
ProcessDownloadedMmsAction.java 139 final String contentLocation, final int subId, final String subPhoneNumber,
153 params.putInt(KEY_SUB_ID, subId);
166 final int statusIfFailed, final int subId, final String transactionId) {
180 params.putInt(KEY_SUB_ID, subId);
186 final String contentLocation, final int subId) {
193 params.putInt(KEY_SUB_ID, subId);
211 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID);
226 subId,
268 MmsSender.parseRetrieveConf(downloadedData, subId);
289 notificationUri, subId, subPhoneNumber, transactionId
    [all...]
DownloadMmsAction.java 125 final int subId = self.getSubId();
126 actionParameters.putInt(KEY_SUB_ID, subId);
167 message.getMmsContentLocation(), subId);
232 final int subId = actionParameters.getInt(KEY_SUB_ID);
258 notificationUri, subId, subPhoneNumber, transactionId, contentLocation,
272 notificationUri, conversationId, participantId, contentLocation, subId,
292 final int subId = actionParameters.getInt(KEY_SUB_ID);
296 conversationId, participantId, statusIfFailed, subId, transactionId);
ProcessSentMessageAction.java 100 final Uri messageUri, final Uri updatedMessageUri, final int subId, final boolean isSms,
109 params.putInt(KEY_SUB_ID, subId);
136 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID);
159 final SendConf sendConf = MmsSender.parseSendConf(response, subId);
180 if (messageSize > MmsConfig.get(subId).getMaxMessageSize()) {
190 messageId, updatedMessageUri, status, rawStatus, isSms, this, subId,
203 final int subId, final int resultCode, final int httpStatusCode) {
276 conversationId, !failed, status, isSms, subId, true/*isSend*/);
  /frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
KeyguardUpdateMonitorTest.java 87 protected void handleSimStateChange(int subId, int slotId,
90 super.handleSimStateChange(subId, slotId, state);
  /packages/apps/Messaging/src/com/android/messaging/ui/conversation/
EnterSelfPhoneNumberDialog.java 40 public static EnterSelfPhoneNumberDialog newInstance(final int subId) {
42 dialog.mSubId = subId;
  /packages/apps/Settings/src/com/android/settings/datausage/
CellDataPreference.java 107 public void setTemplate(NetworkTemplate template, int subId, NetworkServices services) {
108 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
117 mSubId = subId;
118 setKey(getKey() + subId);
233 private void disableDataForOtherSubscriptions(int subId) {
237 if (subInfo.getSubscriptionId() != subId) {
283 public void setListener(boolean listening, int subId, Context context) {
287 uri = Global.getUriFor(Global.MOBILE_DATA + subId);
  /packages/services/Telephony/src/com/android/phone/vvm/
RemoteVvmTaskManager.java 110 static boolean hasRemoteService(Context context, int subId, String targetPackage) {
111 return getRemotePackage(context, subId, targetPackage) != null;
119 public static ComponentName getRemotePackage(Context context, int subId) {
120 return getRemotePackage(context, subId, null);
130 public static ComponentName getRemotePackage(Context context, int subId,
145 .getSystemService(CarrierConfigManager.class).getConfigForSubId(subId);
232 int subId = PhoneAccountHandleConverter.toSubId(phoneAccountHandle);
233 ComponentName remotePackage = getRemotePackage(this, subId,
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DcFailCause.java 135 * Map of subId -> set of data call setup permanent failure for the carrier.
153 * @param subId subscription id
156 public boolean isRestartRadioFail(Context context, int subId) {
161 PersistableBundle b = configManager.getConfigForSubId(subId);
171 public boolean isPermanentFailure(Context context, int subId) {
175 HashSet<DcFailCause> permanentFailureSet = sPermanentFailureCache.get(subId);
183 PersistableBundle b = configManager.getConfigForSubId(subId);
222 sPermanentFailureCache.put(subId, permanentFailureSet);

Completed in 628 milliseconds

1 2 34 5 6 7 8 91011