Home
last modified time | relevance | path

Searched refs:enforceCursor (Results 1 – 3 of 3) 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.java91 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument
93 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()
96 enforceCursor.moveToFirst(); in isDpcApnEnforced()
97 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java677 Cursor enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri() local
679 assertNotNull(enforceCursor); in testEnforceManagedUri()
680 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri()
681 enforceCursor.moveToFirst(); in testEnforceManagedUri()
682 assertEquals(0, enforceCursor.getInt(0)); in testEnforceManagedUri()
718 enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri()
720 assertNotNull(enforceCursor); in testEnforceManagedUri()
721 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri()
722 enforceCursor.moveToFirst(); in testEnforceManagedUri()
723 assertEquals(1, enforceCursor.getInt(0)); in testEnforceManagedUri()