Lines Matching refs:slotId
90 public String getLabel(int slotId) { in getLabel() argument
91 findConfig(slotId); in getLabel()
93 if (DBG) CatLog.d(LOG_TAG, "getLabel: " + mConfigs[slotId].label + ", slot id: " + slotId); in getLabel()
94 return mConfigs[slotId].label; in getLabel()
100 public Bitmap getIcon(int slotId) { in getIcon() argument
101 findConfig(slotId); in getIcon()
104 if (mConfigs[slotId].icon != null) { in getIcon()
105 int resId = mContext.getResources().getIdentifier(mConfigs[slotId].icon, in getIcon()
110 if (DBG) CatLog.d(LOG_TAG, "getIcon: " + mConfigs[slotId].icon + ", slot id: " + slotId); in getIcon()
114 private void findConfig(int slotId) { in findConfig() argument
117 SubscriptionInfo info = (sm != null) ? sm.getActiveSubscriptionInfoForSimSlotIndex(slotId) in findConfig()
120 mConfigs[slotId] = NO_CONFIG; in findConfig()
128 mConfigs[slotId] = NO_CONFIG; in findConfig()
135 if (mConfigs[slotId] != null && mConfigs[slotId].mcc == mcc in findConfig()
136 && mConfigs[slotId].mnc == mnc) { in findConfig()
137 if (DBG) CatLog.d(LOG_TAG, "Return the cached config, slot id: " + slotId); in findConfig()
141 if (DBG) CatLog.d(LOG_TAG, "Find config and create the cached config, slot id: " + slotId); in findConfig()
144 mConfigs[slotId] = config; in findConfig()
149 mConfigs[slotId] = new Config(mcc, mnc, null, null); in findConfig()