Home
last modified time | relevance | path

Searched refs:memory (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3746/
Dpoc.cpp43 sp<IMemory> memory; in fuzzIOMXQcomVpx() local
82 memory = dealerIn->allocate(inSize); in fuzzIOMXQcomVpx()
83 if (memory.get() == nullptr || memory->pointer() == nullptr) { in fuzzIOMXQcomVpx()
95 OMXBuffer omxInBuf(memory); in fuzzIOMXQcomVpx()
96 memset(memory->pointer(), 0xCF, inSize); in fuzzIOMXQcomVpx()
102 codecDataIn = new SharedMemoryBuffer(inputFormat, memory); in fuzzIOMXQcomVpx()
108 memory = dealerOut->allocate(outSize); in fuzzIOMXQcomVpx()
109 if (memory.get() == nullptr || memory->pointer() == nullptr) { in fuzzIOMXQcomVpx()
115 OMXBuffer omxOutBuf(memory); in fuzzIOMXQcomVpx()
121 codecDataOut = new SharedMemoryBuffer(outputFormat, memory); in fuzzIOMXQcomVpx()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/
Dpoc.cpp61 sp<IMemory> memory; in fuzzIOMXQcomEnc() local
93 sp<IMemory> memory = dealerIn->allocate(inBufferSize); in fuzzIOMXQcomEnc() local
94 if (memory.get() == nullptr) { in fuzzIOMXQcomEnc()
99 OMXBuffer omxInBuf(memory); in fuzzIOMXQcomEnc()
107 sp<IMemory> memory = dealerOut->allocate(outBufferSize); in fuzzIOMXQcomEnc() local
108 if (memory.get() == nullptr) { in fuzzIOMXQcomEnc()
113 OMXBuffer omxOutBuf(memory); in fuzzIOMXQcomEnc()
127 OMXBuffer omxInBuf(memory); in fuzzIOMXQcomEnc()
133 OMXBuffer omxOutBuf(memory); in fuzzIOMXQcomEnc()
/cts/tests/media/jni/
DNativeCodecTestBase.cpp277 if (memory != that->memory) { in equals()
278 if (memory.size() != that->memory.size()) { in equals()
280 (int)memory.size(), (int)that->memory.size()); in equals()
284 for (auto it1 = memory.cbegin(), it2 = that->memory.cbegin(); it1 < memory.cend(); in equals()
324 if (length != memory.size()) return -1.0F; in getRmsError()
327 std::copy(memory.begin(), memory.end(), testData); in getRmsError()
DNativeCodecTestBase.h89 std::vector<uint8_t> memory; variable
105 memory.insert(memory.end(), buf + info->offset, buf + info->size); in saveToMemory()
113 memory.clear(); in reset()
118 int getOutStreamSize() { return memory.size(); } in getOutStreamSize()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2482/
Dpoc.cpp51 sp<IMemory> memory; in fuzzIOMXSetParameterChangeCount() local
84 memory = dealerIn->allocate(memSize); in fuzzIOMXSetParameterChangeCount()
85 if (memory.get() == nullptr) { in fuzzIOMXSetParameterChangeCount()
127 err = node->useBuffer(OMX_CORE_INPUT_PORT_INDEX, memory, &bufferId); in fuzzIOMXSetParameterChangeCount()
/cts/tests/tests/os/src/android/os/cts/
DSharedMemoryService.java39 public void setup(SharedMemory memory, int prot) throws RemoteException { in setup() argument
40 mSharedMemory = memory; in setup()
DISharedMemoryService.aidl22 void setup(in SharedMemory memory, int prot); in setup() argument
DSharedMemoryTest.java196 private static native boolean nWriteByte(SharedMemory memory, int index, byte value); in nWriteByte() argument
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0811/
Dpoc.cpp35 sp<IMemory> memory = dealer->allocate(wsize); in mediaPoc() local
37 data.writeStrongBinder(IInterface::asBinder(memory)); in mediaPoc()
/cts/tests/media/src/android/mediav2/cts/
DCodecTestBase.java207 private byte[] memory; field in OutputManager
214 memory = new byte[1024]; in OutputManager()
369 if (memIndex + info.size >= memory.length) { in saveToMemory()
370 memory = Arrays.copyOf(memory, memIndex + info.size); in saveToMemory()
373 buf.get(memory, memIndex, info.size); in saveToMemory()
378 if (index < 0 || index >= memory.length) index = 0; in position()
383 return ByteBuffer.wrap(memory); in getBuffer()
395 assertTrue(0 == (memory.length & 1)); in getRmsError()
396 short[] shortData = new short[memory.length / 2]; in getRmsError()
397 ByteBuffer.wrap(memory).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shortData); in getRmsError()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DVulkanDeviceInfo.java588 JSONObject memory = device.getJSONObject(KEY_MEMORY); in emitDevices() local
591 emitLong(store, memory, KEY_MEMORY_TYPE_COUNT); in emitDevices()
592 JSONArray memoryTypes = memory.getJSONArray(KEY_MEMORY_TYPES); in emitDevices()
606 emitLong(store, memory, KEY_MEMORY_HEAP_COUNT); in emitDevices()
607 JSONArray memoryHeaps = memory.getJSONArray(KEY_MEMORY_HEAPS); in emitDevices()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto68 // Information about the device's memory configuration
/cts/tests/tests/graphics/jni/
DVulkanTestHelpers.cpp290 bindImageInfo.memory = mMemory; in init()