Home
last modified time | relevance | path

Searched refs:violations (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java56 StringBuilder violations = new StringBuilder(); in testDeviceConfigWithoutPermissions() local
59 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() local
86 trySetPropertyWithWritePermission(violations); in testDeviceConfigWithWritePermission()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java626 final BlockingQueue<Violation> violations = new ArrayBlockingQueue<>(1); in testThreadPenaltyListener() local
630 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() local
645 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() local
869 StrictMode.setViolationLogger(violations::add); in inspectViolation()
873 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java464 final LinkedBlockingQueue<ViolationInfo> violations = new LinkedBlockingQueue<>(); in inspectViolation() local
465 StrictMode.setViolationLogger(violations::add); in inspectViolation()
471 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()