Home | History | Annotate | Download | only in database

Lines Matching refs:sim

62  * Provides data access methods for loading contacts from a SIM card and and migrating these
63 * SIM contacts to a CP2 account.
68 // Maximum number of SIM contacts to import in a single ContentResolver.applyBatch call.
74 // How many SIM contacts to consider in a single query. This prevents hitting the SQLite
108 // Require SIM_STATE_READY because the TelephonyManager methods related to SIM require
127 public ArrayList<SimContact> loadContactsForSim(SimCard sim) {
128 if (sim.hasValidSubscriptionId()) {
129 return loadSimContacts(sim.getSubscriptionId());
161 public void persistSimState(SimCard sim) {
162 SharedPreferenceUtil.persistSimStates(mContext, Collections.singletonList(sim));
176 for (SimCard sim : getSimCards()) {
177 if (sim.getSubscriptionId() == subscriptionId) {
178 return sim;
185 * Finds SIM contacts that exist in CP2 and associates the account of the CP2 contact with
186 * the SIM contact
265 private List<SimContact> getContactsForSim(SimCard sim) {
266 final List<SimContact> contacts = sim.getContacts();
267 return contacts != null ? contacts : loadContactsForSim(sim);
271 // Sometimes the SIM contacts provider seems to get stuck if read from multiple threads
278 // Assume null means there are no SIM contacts.
419 public DebugImpl addSimCard(SimCard sim) {
420 mSimCards.add(sim);
421 sim.getSubscriptionId(), sim);