Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 34) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DAudioNativeTest.java225 for (int mask = 0; mask <= MAX_INDEX_MASK; ++mask) { in testOutputChannelMasks()
226 int channelCount = Long.bitCount(mask); in testOutputChannelMasks()
228 && ((mask & validIndexMask) != 0); in testOutputChannelMasks()
234 mask | CHANNEL_INDEX_MASK_MAGIC, 48000, false, 2); in testOutputChannelMasks()
268 for (int mask = 0; mask <= MAX_INDEX_MASK; ++mask) { in testInputChannelMasksPreQ()
269 int channelCount = Long.bitCount(mask); in testInputChannelMasksPreQ()
271 && ((mask & validIndexMask) != 0); in testInputChannelMasksPreQ()
277 mask | CHANNEL_INDEX_MASK_MAGIC, 48000, false, 2); in testInputChannelMasksPreQ()
305 for (int mask : posChannelMasks) { in testInputChannelMasksPostQ()
306 int channelCount = AudioFormat.channelCountFromInChannelMask(mask); in testInputChannelMasksPostQ()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloat16Utils.java167 long mask; in roundToFloat16() local
179 mask = DOUBLE_MANTISSA_MASK >> maxSigMantissaBits; in roundToFloat16()
182 long lowFloat16Mantissa = mantissa & ~mask; in roundToFloat16()
183 long highFloat16Mantissa = mantissa & ~mask; in roundToFloat16()
188 if ((mantissa & mask) != 0) { in roundToFloat16()
191 highFloat16Mantissa += mask + 1; in roundToFloat16()
265 long mask = DOUBLE_MANTISSA_MASK >> maxSigMantissaBits; in float16Ulp() local
267 if((mask & mantissa) != 0) { in float16Ulp()
275 long mask = DOUBLE_MANTISSA_MASK >> 10; in float16Ulp() local
276 if ((mantissa & mask) != 0) { in float16Ulp()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DScanFilterTest.java112 ParcelUuid mask = ParcelUuid.fromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF"); in testsetServiceUuidFilter() local
115 mask) in testsetServiceUuidFilter()
117 assertEquals(mask.toString(), filter.getServiceUuidMask().toString()); in testsetServiceUuidFilter()
135 ParcelUuid mask = ParcelUuid.fromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF"); in testsetServiceSolicitationUuidFilter() local
137 .setServiceSolicitationUuid(ParcelUuid.fromString(UUID3), mask) in testsetServiceSolicitationUuidFilter()
139 assertEquals(mask.toString(), filter.getServiceSolicitationUuidMask().toString()); in testsetServiceSolicitationUuidFilter()
165 byte[] mask = new byte[] { in testsetServiceDataFilter()
167 filter = mFilterBuilder.setServiceData(serviceDataUuid, nonMatchData, mask).build(); in testsetServiceDataFilter()
169 assertEquals(mask, filter.getServiceDataMask()); in testsetServiceDataFilter()
203 byte[] mask = new byte[] { in testManufacturerSpecificData()
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/
Dfifo.c51 uint32_t mask = fifo->mFrameCountP2 - 1; in audio_utils_fifo_sum() local
52 ALOG_ASSERT((index & mask) < fifo->mFrameCount); in audio_utils_fifo_sum()
54 if ((index & mask) + increment >= fifo->mFrameCount) { in audio_utils_fifo_sum()
58 ALOG_ASSERT((index & mask) < fifo->mFrameCount); in audio_utils_fifo_sum()
71 uint32_t mask = ~(fifo->mFrameCountP2 - 1); in audio_utils_fifo_diff() local
72 int32_t genDiff = (rear & mask) - (front & mask); in audio_utils_fifo_diff()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8425/
Dpoc.c53 cpu_set_t mask; in set_affinity() local
54 CPU_ZERO(&mask); in set_affinity()
55 CPU_SET(num, &mask); in set_affinity()
56 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8426/
Dpoc.c53 cpu_set_t mask; in set_affinity() local
54 CPU_ZERO(&mask); in set_affinity()
55 CPU_SET(num, &mask); in set_affinity()
56 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6732/
Dpoc.c87 cpu_set_t mask; in set_affinity() local
88 CPU_ZERO(&mask); in set_affinity()
89 CPU_SET(num, &mask); in set_affinity()
90 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportWrappedKeyTest.java91 byte[] mask = new byte[32]; // Zero mask in testKeyStore_ImportWrappedKey()
104 mask, in testKeyStore_ImportWrappedKey() local
154 byte[] mask = new byte[24]; // Zero mask in testKeyStore_ImportWrappedKey_3DES()
167 mask, in testKeyStore_ImportWrappedKey_3DES() local
202 byte[] mask = new byte[24]; // Zero mask in testKeyStore_ImportWrappedKey_3DES_StrongBox()
207 mask, in testKeyStore_ImportWrappedKey_3DES_StrongBox() local
242 byte[] mask = new byte[32]; // Zero mask in testKeyStore_ImportWrappedKey_AES_StrongBox()
247 mask, in testKeyStore_ImportWrappedKey_AES_StrongBox() local
274 byte[] mask = new byte[32]; // Zero mask in testKeyStore_ImportWrappedKey_AES_StrongBox()
279 mask, in testKeyStore_ImportWrappedKey_AES_StrongBox() local
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6734/
Dpoc.c92 cpu_set_t mask; in set_affinity() local
93 CPU_ZERO(&mask); in set_affinity()
94 CPU_SET(num, &mask); in set_affinity()
95 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6735/
Dpoc.c93 cpu_set_t mask; in set_affinity() local
94 CPU_ZERO(&mask); in set_affinity()
95 CPU_SET(num, &mask); in set_affinity()
96 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6733/
Dpoc.c86 cpu_set_t mask; in set_affinity() local
87 CPU_ZERO(&mask); in set_affinity()
88 CPU_SET(num, &mask); in set_affinity()
89 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6731/
Dpoc.c95 cpu_set_t mask; in set_affinity() local
96 CPU_ZERO(&mask); in set_affinity()
97 CPU_SET(num, &mask); in set_affinity()
98 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6730/
Dpoc.c95 cpu_set_t mask; in set_affinity() local
96 CPU_ZERO(&mask); in set_affinity()
97 CPU_SET(num, &mask); in set_affinity()
98 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8432/
Dpoc.c49 cpu_set_t mask; in set_affinity() local
50 CPU_ZERO(&mask); in set_affinity()
51 CPU_SET(num, &mask); in set_affinity()
52 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6736/
Dpoc.c107 cpu_set_t mask; in set_affinity() local
108 CPU_ZERO(&mask); in set_affinity()
109 CPU_SET(num, &mask); in set_affinity()
110 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8479/
Dpoc.c119 cpu_set_t mask; in set_affinity() local
120 CPU_ZERO(&mask); in set_affinity()
121 CPU_SET(num, &mask); in set_affinity()
122 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/
Dpoc.c72 cpu_set_t mask; in set_affinity() local
73 CPU_ZERO(&mask); in set_affinity()
74 CPU_SET(num, &mask); in set_affinity()
75 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DBitStreamReader.java70 int mask = (1 << (8 - bitsRead)) - 1; in readByte() local
71 byte result = (byte) ((buffer[position] & mask) << bitsRead); in readByte()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventTest.java313 int mask = KeyEvent.getModifierMetaStateMask(); in testGetModifierMetaStateMask() local
314 assertTrue((mask & KeyEvent.META_SHIFT_ON) != 0); in testGetModifierMetaStateMask()
315 assertTrue((mask & KeyEvent.META_SHIFT_LEFT_ON) != 0); in testGetModifierMetaStateMask()
316 assertTrue((mask & KeyEvent.META_SHIFT_RIGHT_ON) != 0); in testGetModifierMetaStateMask()
317 assertTrue((mask & KeyEvent.META_ALT_ON) != 0); in testGetModifierMetaStateMask()
318 assertTrue((mask & KeyEvent.META_ALT_LEFT_ON) != 0); in testGetModifierMetaStateMask()
319 assertTrue((mask & KeyEvent.META_ALT_RIGHT_ON) != 0); in testGetModifierMetaStateMask()
320 assertTrue((mask & KeyEvent.META_CTRL_ON) != 0); in testGetModifierMetaStateMask()
321 assertTrue((mask & KeyEvent.META_CTRL_LEFT_ON) != 0); in testGetModifierMetaStateMask()
322 assertTrue((mask & KeyEvent.META_CTRL_RIGHT_ON) != 0); in testGetModifierMetaStateMask()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_MediaVulkanGpuTest.cpp41 uint32_t mask = 0x000000FF << shift; in fuzzyMatch() local
43 int32_t value1Masked = static_cast<int32_t>((value1 & mask) >> shift); in fuzzyMatch()
44 int32_t value2Masked = static_cast<int32_t>((value2 & mask) >> shift); in fuzzyMatch()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSweepTests.java102 protected void sweepModifiersForMask(int mask, final DisplayModifier drawOp, in sweepModifiersForMask() argument
104 if ((mask & DisplayModifier.Accessor.ALL_OPTIONS_MASK) == 0) { in sweepModifiersForMask()
108 final DisplayModifier.Accessor modifierAccessor = new DisplayModifier.Accessor(mask); in sweepModifiersForMask()
DRgba16fTests.java98 Bitmap mask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), in testMasked()
100 Canvas c = new Canvas(mask); in testMasked()
111 canvas.drawBitmap(mask, 0, 0, p); in testMasked()
/cts/tests/tests/libcoreapievolution/src/android/apievolution/cts/
DApiEvolutionTest.java173 int mask = syntheticMask | bridgeMask; in assertSyntheticMethodOverloadExists() local
178 originalModifiers | mask, in assertSyntheticMethodOverloadExists()
179 syntheticModifiers | mask); in assertSyntheticMethodOverloadExists()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRGBAF16Test.java147 Bitmap mask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), in testCopyFromA8() local
149 Canvas c = new Canvas(mask); in testCopyFromA8()
152 Bitmap b = mask.copy(Config.RGBA_F16, false); in testCopyFromA8()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java366 public MockFileObserver(File file, int mask) { in MockFileObserver() argument
367 super(file, mask); in MockFileObserver()
374 public MockFileObserver(List<File> files, int mask) { in MockFileObserver() argument
375 super(files, mask); in MockFileObserver()

12