/cts/tests/tests/content/src/android/content/cts/ |
D | ContentProviderOperationTest.java | 80 private ContentProviderOperation op; field in ContentProviderOperationTest 90 op = ContentProviderOperation.newInsert(TEST_URI) in testInsert() 95 assertEquals(TEST_URI, op.getUri()); in testInsert() 96 assertTrue(op.isInsert()); in testInsert() 97 assertTrue(op.isWriteOperation()); in testInsert() 101 res = op.apply(provider, null, 0); in testInsert() 107 op = ContentProviderOperation.newUpdate(TEST_URI) in testUpdate() 113 assertEquals(TEST_URI, op.getUri()); in testUpdate() 114 assertTrue(op.isUpdate()); in testUpdate() 115 assertTrue(op.isWriteOperation()); in testUpdate() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | SensorOperationTest.java | 50 SensorOperation op = new FakeSensorOperation(opDurationMs, TimeUnit.MILLISECONDS); in testFakeSensorOperation() local 52 assertFalse(op.getStats().flatten().containsKey("executed")); in testFakeSensorOperation() 54 op.execute(mTestNode); in testFakeSensorOperation() 57 assertTrue(op.getStats().flatten().containsKey("executed")); in testFakeSensorOperation() 59 op = new FakeSensorOperation(true, 0, TimeUnit.MILLISECONDS); in testFakeSensorOperation() 61 op.execute(mTestNode); in testFakeSensorOperation() 66 assertTrue(op.getStats().flatten().keySet().contains(SensorStats.ERROR)); in testFakeSensorOperation() 77 SensorOperation op = new DelaySensorOperation(subOp, opDurationMs, TimeUnit.MILLISECONDS); 80 op.execute(mTestNode); 93 ParallelSensorOperation op = new ParallelSensorOperation(); [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RegionTest.java | 347 assertFalse(mRegion.op(rect1, Region.Op.DIFFERENCE)); in verifyNullRegionOp1() 348 assertFalse(mRegion.op(rect1, Region.Op.INTERSECT)); in verifyNullRegionOp1() 349 assertFalse(mRegion.op(rect1, Region.Op.UNION)); in verifyNullRegionOp1() 350 assertFalse(mRegion.op(rect1, Region.Op.XOR)); in verifyNullRegionOp1() 351 assertFalse(mRegion.op(rect1, Region.Op.REVERSE_DIFFERENCE)); in verifyNullRegionOp1() 352 assertFalse(mRegion.op(rect1, Region.Op.REPLACE)); in verifyNullRegionOp1() 362 assertTrue(mRegion.op(rect1, Region.Op.DIFFERENCE)); in verifyDifferenceOp1() 367 assertTrue(mRegion.op(rect3, Region.Op.DIFFERENCE)); in verifyDifferenceOp1() 374 assertTrue(mRegion.op(rect4, Region.Op.DIFFERENCE)); in verifyDifferenceOp1() 380 assertTrue(mRegion.op(rect5, Region.Op.DIFFERENCE)); in verifyDifferenceOp1() [all …]
|
D | RegionIteratorTest.java | 68 region.op(rect, Region.Op.UNION); in testNext() 95 region.op(rect, Region.Op.DIFFERENCE); in testNext() 117 region.op(rect, Region.Op.INTERSECT); in testNext() 134 region.op(rect, Region.Op.REVERSE_DIFFERENCE); in testNext() 156 region.op(rect, Region.Op.XOR); in testNext()
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | OpActiveChangedCapture.java | 32 public OpActiveChangedCapture(AppOpsManager appOps, String op) { in OpActiveChangedCapture() argument 34 mOp = op; in OpActiveChangedCapture() 52 public void onOpActiveChanged(String op, int uid, String packageName, boolean active) { in onOpActiveChanged() argument 53 if (op.equals(mOp)) { in onOpActiveChanged()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8460/ |
D | poc.c | 127 struct nvmap_create_handle op = {0}; in main() local 128 op.size = 0x1000; in main() 129 ioctl(g_fd, NVMAP_IOC_CREATE, &op); in main() 130 handles[i] = op.handle; in main() 133 alloc.handle = op.handle; in main()
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | ScopedStorageCoreHostTest.java | 132 for (String op : ops) { in allowAppOps() 133 executeShellCommand("cmd appops set --uid android.scopedstorage.cts %s allow", op); in allowAppOps() 138 for (String op : ops) { in denyAppOps() 139 executeShellCommand("cmd appops set --uid android.scopedstorage.cts %s deny", op); in denyAppOps()
|
D | ScopedStorageHostTest.java | 342 for (String op : ops) { in allowAppOps() 343 executeShellCommand("cmd appops set --uid android.scopedstorage.cts " + op + " allow"); in allowAppOps() 348 for (String op : ops) { in denyAppOps() 349 executeShellCommand("cmd appops set --uid android.scopedstorage.cts " + op + " deny"); in denyAppOps()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | ForegroundModeAndActiveTest.kt | 201 WATCH_FOREGROUND_CHANGES) { op, packageName -> in <lambda>() method 202 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 217 WATCH_FOREGROUND_CHANGES) { op, packageName -> in <lambda>() method 218 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 288 WATCH_FOREGROUND_CHANGES) { op, packageName -> in <lambda>() method 289 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 313 WATCH_FOREGROUND_CHANGES) { op, packageName -> in <lambda>() method 314 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 331 WATCH_FOREGROUND_CHANGES) { op, packageName -> in <lambda>() method 332 if (op == OPSTR_FINE_LOCATION && packageName.equals(TEST_SERVICE_PKG)) { in <lambda>() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorBatchingFifoTest.java | 102 TestSensorOperation op = TestSensorOperation.createFlushOperation( in runBatchingSensorFifoTest() local 105 op.addVerification(FifoLengthVerification.getDefault(environment)); in runBatchingSensorFifoTest() 106 op.execute(getCurrentTestNode()); in runBatchingSensorFifoTest() 107 op.getStats().log(TAG); in runBatchingSensorFifoTest()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 75 private void failWorkSource(String op, WorkSource ws, int[] uids) { in failWorkSource() argument 77 sb.append(op); in failWorkSource() 85 private void failWorkSource(String op, WorkSource ws, int[] uids, String[] names) { in failWorkSource() argument 87 sb.append(op); in failWorkSource() 95 private void checkWorkSource(String op, WorkSource ws, int[] uids) { in checkWorkSource() argument 98 fail(op + ": WorkSource is not null " + ws +", but expected null"); in checkWorkSource() 101 fail(op + "WorkSource is null, but expected non-null: " + Arrays.toString(uids)); in checkWorkSource() 106 failWorkSource(op, ws, uids); in checkWorkSource() 110 failWorkSource(op, ws, uids); in checkWorkSource() 115 private void checkWorkSource(String op, WorkSource ws, int[] uids, String[] names) { in checkWorkSource() argument [all …]
|
/cts/tests/tests/appop2/src/android/app/appops2/cts/ |
D | AppOpsLoggingTest.kt | 73 override fun onNoted(op: SyncNotedAppOp) { in <lambda>() 74 noted.add(op to Throwable().stackTrace) in <lambda>() 77 override fun onSelfNoted(op: SyncNotedAppOp) { in <lambda>() 78 selfNoted.add(op to Throwable().stackTrace) in <lambda>() 127 assertThat(asyncNoted[0].op).isEqualTo( in <lambda>()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | DeviceSuspendTestActivity.java | 352 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpWhenReportLatencyExpires() local 359 op.addVerification(BatchArrivalVerification.getDefault(environment)); in runAPWakeUpWhenReportLatencyExpires() 365 op.execute(getCurrentTestNode()); in runAPWakeUpWhenReportLatencyExpires() 403 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpWhenFIFOFull() local 409 op.addDefaultVerifications(); in runAPWakeUpWhenFIFOFull() 412 op.execute(getCurrentTestNode()); in runAPWakeUpWhenFIFOFull() 466 …TestSensorOperation op = TestSensorOperation.createOperation(environment, MIN_TIMESTAMP_BASE_SAMPL… in runVerifySensorTimestampClockbase() local 467 op.addVerification(TimestampClockSourceVerification.getDefault(environment)); in runVerifySensorTimestampClockbase() 469 op.execute(getCurrentTestNode()); in runVerifySensorTimestampClockbase() 498 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpByAlarmNonWakeSensor() local [all …]
|
/cts/tests/tests/appop/jni/android/app/appops/cts/ |
D | AppOpsLoggingTest.cpp | 32 jint op, jint uid, jstring jCallingPackageName, jstring jAttributionTag, jstring jMessage) { in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeNoteOp() argument 52 appOpsManager.noteOp(op, uid, callingPackageName, attributionTag, message); in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeNoteOp()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconMaskTest.java | 109 boolean result = maskRegion.op(safeZoneRegion, intersectRegion, Region.Op.INTERSECT); in testDeviceConfigMask_largerThanSafezone() 114 result = safeZoneRegion.op(intersectRegion, subtractRegion, Op.DIFFERENCE); in testDeviceConfigMask_largerThanSafezone() 149 circle99.op(maskPath, Path.Op.DIFFERENCE); in isCircle() 151 maskPath.op(circle101, Path.Op.DIFFERENCE); in isCircle()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AtomicTest.rscript | 38 #define TEST_OP(op) \ 39 void __attribute__((kernel)) test_##op(int32_t v) { \ 40 rsAtomic##op(&gISum, v); \ 42 void __attribute__((kernel)) test_u##op(uint32_t v) { \ 43 rsAtomic##op(&gUSum, v); \
|
/cts/apps/CrossProfileTestApp/src/com/android/cts/crossprofilepermissioncontrol/ |
D | TestActivity.java | 64 final String op = AppOpsManager.permissionToOp(INTERACT_ACROSS_PROFILES); in updateText() local 66 op, Process.myUid(), getPackageName())) { in updateText()
|
/cts/tests/tests/opengl/libopengltest/ |
D | color_one.h | 30 static void checkGlError(const char* op);
|
D | color_one.cpp | 125 static void checkGlError(const char* op) { in checkGlError() argument 128 LOGI("after %s() glError (0x%x)\n", op, error); in checkGlError()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appops/ |
D | AppOpsTests.java | 136 private static int computeExpectedTransformedNoted(int op) { in computeExpectedTransformedNoted() argument 137 if (!TRANSFORMED_FROM_OP.containsKey(op)) { in computeExpectedTransformedNoted() 140 return TRANSFORMED_FROM_OP.get(op) + 1; in computeExpectedTransformedNoted()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapFilterTests.java | 162 whiteArea.op(blackArea, Region.Op.DIFFERENCE); in testDrawSnapped() 184 whiteArea.op(blackArea, Region.Op.DIFFERENCE); in testDrawHalfPixelFiltered() 185 whiteArea.op(greyArea1, Region.Op.DIFFERENCE); in testDrawHalfPixelFiltered() 186 whiteArea.op(greyArea2, Region.Op.DIFFERENCE); in testDrawHalfPixelFiltered()
|
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
D | GLGameActivity.java | 154 BitmapFactory.Options op = new BitmapFactory.Options(); in loadTexture() local 155 op.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadTexture() 156 Bitmap bmp = BitmapFactory.decodeStream(in, null, op); in loadTexture()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | TextureTestRenderer.java | 177 private void checkGlError(GL10 gl, String op) { in checkGlError() argument 180 Log.e(TAG, op + ": glError " + error); in checkGlError() 181 throw new IllegalStateException(op + ": glError " + error); in checkGlError()
|
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/ |
D | AppOpsUtils.kt | 173 fun getOpEntry(uid: Int, packageName: String, op: String): OpEntry? { in getOpEntry() 176 .getSystemService(AppOpsManager::class.java).getOpsForPackage(uid, packageName, op) in getOpEntry()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordAppOpTest.java | 66 public void onOpActiveChanged(String op, int uid, String packageName, boolean active) { in testRecordAppOps() 67 mockListener.onOpActiveChanged(op, uid, packageName, active); in testRecordAppOps()
|