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.java64 StringBuilder violations = new StringBuilder(); in testUseDeviceConfigWithoutPermissions() local
68 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() local
109 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 …]
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java558 final BlockingQueue<Violation> violations = new ArrayBlockingQueue<>(1); in testThreadPenaltyListener() local
562 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() local
577 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() local
654 StrictMode.setViolationLogger(violations::add); in inspectViolation()
658 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java413 final LinkedBlockingQueue<ViolationInfo> violations = new LinkedBlockingQueue<>(); in inspectViolation() local
414 StrictMode.setViolationLogger(violations::add); in inspectViolation()
420 consume.accept(violations.poll(5, TimeUnit.SECONDS)); in inspectViolation()