Searched refs:ashmem (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 212 mPixelStorage.ashmem.address = address; in Bitmap() 213 mPixelStorage.ashmem.fd = fd; in Bitmap() 214 mPixelStorage.ashmem.size = mappedSize; in Bitmap() 238 munmap(mPixelStorage.ashmem.address, mPixelStorage.ashmem.size); in ~Bitmap() 239 close(mPixelStorage.ashmem.fd); in ~Bitmap() 266 return mPixelStorage.ashmem.address; in getStorage() 277 return mPixelStorage.ashmem.fd; in getAshmemFd() 288 return mPixelStorage.ashmem.size; in getAllocationByteCount()
|
D | Bitmap.h | 163 } ashmem; member
|
/frameworks/ml/nn/runtime/test/ |
D | TestGenerated.cpp | 204 auto ashmem = TestAshmem::createFrom(operand.data); in computeWithDeviceMemories() local 205 ASSERT_NE(ashmem, nullptr); in computeWithDeviceMemories() 206 ASSERT_EQ(ANeuralNetworksMemory_copy(ashmem->get()->get(), memory), in computeWithDeviceMemories() 230 auto ashmem = TestAshmem::createFrom(output); in computeWithDeviceMemories() local 231 ASSERT_NE(ashmem, nullptr); in computeWithDeviceMemories() 232 ASSERT_EQ(ANeuralNetworksMemory_copy(outputMemories[i].get(), ashmem->get()->get()), in computeWithDeviceMemories() 234 std::copy(ashmem->dataAs<uint8_t>(), ashmem->dataAs<uint8_t>() + bufferSize, in computeWithDeviceMemories()
|
D | TestPartitioningRandom.cpp | 318 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout() 320 CHECK(ashmem != nullptr); in layout() 322 ANeuralNetworksMemory* memory = reinterpret_cast<ANeuralNetworksMemory*>(ashmem.release()); in layout()
|
D | TestValidation.cpp | 250 ANeuralNetworksMemory* ashmem = nullptr; in createAshmem() local 251 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(size, PROT_READ | PROT_WRITE, fd, 0, &ashmem), in createAshmem() 253 mMemories.push_back(ashmem); in createAshmem() 254 return ashmem; in createAshmem()
|
/frameworks/av/media/libaudiohal/impl/ |
D | EffectBufferHalHidl.cpp | 69 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in init() local 70 if (ashmem == 0) { in init() 75 Return<void> result = ashmem->allocate( in init()
|
/frameworks/base/core/java/android/hardware/ |
D | SensorDirectChannel.java | 211 static long[] encodeData(MemoryFile ashmem) { in encodeData() argument 214 fd = ashmem.getFileDescriptor().getInt$(); in encodeData()
|
/frameworks/base/core/java/android/os/image/ |
D | DynamicSystemManager.java | 66 public boolean setAshmem(ParcelFileDescriptor ashmem, long size) { in setAshmem() argument 68 return mService.setAshmem(ashmem, size); in setAshmem()
|
/frameworks/base/services/core/java/com/android/server/ |
D | DynamicSystemService.java | 204 public boolean setAshmem(ParcelFileDescriptor ashmem, long size) { in setAshmem() argument 206 return getGsiService().setGsiAshmem(ashmem, size); in setAshmem()
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHalHidl.cpp | 73 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in moveVectorToMemory() local 74 if (ashmem == 0) { in moveVectorToMemory() 79 Return<void> r = ashmem->allocate(v->size(), [&](bool s, const hidl_memory& m) { in moveVectorToMemory()
|
/frameworks/hardware/interfaces/sensorservice/1.0/ |
D | ISensorManager.hal | 72 * @param mem the shared memory to use, must be ashmem.
|