Searched refs:violations (Results 1 – 3 of 3) sorted by relevance
56 StringBuilder violations = new StringBuilder(); in testDeviceConfigWithoutPermissions() local59 trySetPropertyWithoutWritePermission(violations); in testDeviceConfigWithoutPermissions()60 trySetPropertiesWithoutWritePermission(violations); in testDeviceConfigWithoutPermissions()63 tryGetPropertyWithoutReadPermission(violations); in testDeviceConfigWithoutPermissions()64 tryGetPropertiesWithoutReadPermission(violations); in testDeviceConfigWithoutPermissions()65 tryAddOnPropertiesChangedListenerWithoutReadPermission(violations); in testDeviceConfigWithoutPermissions()68 if (violations.length() > 0) { in testDeviceConfigWithoutPermissions()69 fail(violations.toString()); in testDeviceConfigWithoutPermissions()81 StringBuilder violations = new StringBuilder(); in testDeviceConfigWithWritePermission() local86 trySetPropertyWithWritePermission(violations); in testDeviceConfigWithWritePermission()[all …]
626 final BlockingQueue<Violation> violations = new ArrayBlockingQueue<>(1); in testThreadPenaltyListener() local630 violations.add(v); in testThreadPenaltyListener()635 final Violation v = violations.poll(5, TimeUnit.SECONDS); in testThreadPenaltyListener()641 final BlockingQueue<Violation> violations = new ArrayBlockingQueue<>(1); in testVmPenaltyListener() local645 violations.add(v); in testVmPenaltyListener()653 final Violation v = violations.poll(5, TimeUnit.SECONDS); in testVmPenaltyListener()868 final LinkedBlockingQueue<ViolationInfo> violations = new LinkedBlockingQueue<>(); in inspectViolation() local869 StrictMode.setViolationLogger(violations::add); in inspectViolation()873 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()
464 final LinkedBlockingQueue<ViolationInfo> violations = new LinkedBlockingQueue<>(); in inspectViolation() local465 StrictMode.setViolationLogger(violations::add); in inspectViolation()471 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()