Searched refs:enforceCursor (Results 1 – 4 of 4) sorted by relevance
72 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument74 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()77 enforceCursor.moveToFirst(); in isDpcApnEnforced()78 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()
84 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument86 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()89 enforceCursor.moveToFirst(); in isDpcApnEnforced()90 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()
651 Cursor enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri() local653 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()
274 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument276 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()279 enforceCursor.moveToFirst(); in isDpcApnEnforced()280 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()