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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java655 Cursor enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri() local
657 assertNotNull(enforceCursor); in testEnforceManagedUri()
658 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri()
659 enforceCursor.moveToFirst(); in testEnforceManagedUri()
660 assertEquals(0, enforceCursor.getInt(0)); in testEnforceManagedUri()
696 enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri()
698 assertNotNull(enforceCursor); in testEnforceManagedUri()
699 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri()
700 enforceCursor.moveToFirst(); in testEnforceManagedUri()
701 assertEquals(1, enforceCursor.getInt(0)); in testEnforceManagedUri()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java104 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument
106 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()
109 enforceCursor.moveToFirst(); in isDpcApnEnforced()
110 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()