Home
last modified time | relevance | path

Searched refs:enforceCursor (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java72 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument
74 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()
77 enforceCursor.moveToFirst(); in isDpcApnEnforced()
78 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java84 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument
86 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()
89 enforceCursor.moveToFirst(); in isDpcApnEnforced()
90 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java651 Cursor enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri() local
653 assertNotNull(enforceCursor); in testEnforceManagedUri()
654 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri()
655 enforceCursor.moveToFirst(); in testEnforceManagedUri()
656 assertEquals(0, enforceCursor.getInt(0)); in testEnforceManagedUri()
692 enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri()
694 assertNotNull(enforceCursor); in testEnforceManagedUri()
695 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri()
696 enforceCursor.moveToFirst(); in testEnforceManagedUri()
697 assertEquals(1, enforceCursor.getInt(0)); in testEnforceManagedUri()
/packages/services/Telephony/src/com/android/phone/
DMobileNetworkSettings.java274 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument
276 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()
279 enforceCursor.moveToFirst(); in isDpcApnEnforced()
280 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()