Searched refs:enforceCursor (Results 1 – 3 of 3) 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()
655 Cursor enforceCursor = mContentResolver.query(URI_ENFORCE_MANAGED, in testEnforceManagedUri() local657 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()
104 try (Cursor enforceCursor = context.getContentResolver().query(ENFORCE_MANAGED_URI, in isDpcApnEnforced() argument106 if (enforceCursor == null || enforceCursor.getCount() != 1) { in isDpcApnEnforced()109 enforceCursor.moveToFirst(); in isDpcApnEnforced()110 return enforceCursor.getInt(0) > 0; in isDpcApnEnforced()