Searched refs:violations (Results 1 – 3 of 3) sorted by relevance
64 StringBuilder violations = new StringBuilder(); in testUseDeviceConfigWithoutPermissions() local68 violations.append("DeviceConfig.setProperty() must not be accessible without " in testUseDeviceConfigWithoutPermissions()75 violations.append("DeviceConfig.getProperty() must not be accessible without " in testUseDeviceConfigWithoutPermissions()83 violations.append("DeviceConfig.addOnPropertiesChangedListener() must not be accessible" in testUseDeviceConfigWithoutPermissions()89 if (violations.length() > 0) { in testUseDeviceConfigWithoutPermissions()90 fail(violations.toString()); in testUseDeviceConfigWithoutPermissions()102 StringBuilder violations = new StringBuilder(); in testUseDeviceConfigWithWritePermission() local109 violations.append("DeviceConfig.setProperty() must be accessible with" in testUseDeviceConfigWithWritePermission()115 violations.append("DeviceConfig.getProperty() must not be accessible without" in testUseDeviceConfigWithWritePermission()123 violations.append( in testUseDeviceConfigWithWritePermission()[all …]
558 final BlockingQueue<Violation> violations = new ArrayBlockingQueue<>(1); in testThreadPenaltyListener() local562 violations.add(v); in testThreadPenaltyListener()567 final Violation v = violations.poll(5, TimeUnit.SECONDS); in testThreadPenaltyListener()573 final BlockingQueue<Violation> violations = new ArrayBlockingQueue<>(1); in testVmPenaltyListener() local577 violations.add(v); in testVmPenaltyListener()585 final Violation v = violations.poll(5, TimeUnit.SECONDS); in testVmPenaltyListener()653 final LinkedBlockingQueue<ViolationInfo> violations = new LinkedBlockingQueue<>(); in inspectViolation() local654 StrictMode.setViolationLogger(violations::add); in inspectViolation()658 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()
413 final LinkedBlockingQueue<ViolationInfo> violations = new LinkedBlockingQueue<>(); in inspectViolation() local414 StrictMode.setViolationLogger(violations::add); in inspectViolation()420 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()