Home
last modified time | relevance | path

Searched refs:mapSize (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/jni/
Dandroid_ddm_DdmHandleNativeHeap.cpp45 size_t mapSize; member
77 header.mapSize = maps.size(); in DdmHandleNativeHeap_getLeakInfo()
91 header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory); in DdmHandleNativeHeap_getLeakInfo()
99 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize); in DdmHandleNativeHeap_getLeakInfo()
/frameworks/av/media/codec2/vndk/
DC2AllocatorIon.cpp236 size_t mapSize = size + alignmentBytes; in map() local
237 Mapping map = { nullptr, alignmentBytes, mapSize }; in map()
239 … c2_status_t err = mapInternal(mapSize, mapOffset, alignmentBytes, prot, flags, &(map.addr), addr); in map()
311 virtual c2_status_t mapInternal(size_t mapSize, size_t mapOffset, size_t alignmentBytes, in mapInternal() argument
315 int ret = ion_map(mIonFd, mBuffer, mapSize, prot, in mapInternal()
319 mIonFd, mBuffer, mapSize, prot, flags, mapOffset, ret); in mapInternal()
328 *base = mmap(nullptr, mapSize, prot, flags, mMapFd, mapOffset); in mapInternal()
331 mapSize, prot, flags, mMapFd, mapOffset, errno); in mapInternal()
381 virtual c2_status_t mapInternal(size_t mapSize, size_t mapOffset, size_t alignmentBytes, in mapInternal() argument
384 *base = mmap(nullptr, mapSize, prot, flags, mHandle.bufferFd(), mapOffset); in mapInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java782 int mapSize = 0; in pinFileRanges() local
789 mapSize = (int) Math.min(Os.fstat(fd).st_size, Integer.MAX_VALUE); in pinFileRanges()
790 address = Os.mmap(0, mapSize, in pinFileRanges()
806 pinStart = clamp(0, pinStart, mapSize); in pinFileRanges()
807 pinLength = clamp(0, pinLength, mapSize - pinStart); in pinFileRanges()
836 PinnedFile pinnedFile = new PinnedFile(address, mapSize, fileToPin, bytesPinned); in pinFileRanges()
845 safeMunmap(address, mapSize); in pinFileRanges()
854 private static void safeMunmap(long address, long mapSize) { in safeMunmap() argument
856 Os.munmap(address, mapSize); in safeMunmap()
931 final int mapSize; field in PinnerService.PinnedFile
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DRcsContactUceCapability.java231 int mapSize = in.readInt(); in RcsContactUceCapability() local
232 for (int i = 0; i < mapSize; i++) { in RcsContactUceCapability()
256 int mapSize = mServiceMap.keySet().size(); in writeToParcel() local
257 out.writeInt(mapSize); in writeToParcel()
/frameworks/base/media/java/android/media/
DMediaMuxer.java627 int mapSize = formatMap.size(); in addTrack() local
628 if (mapSize > 0) { in addTrack()
629 keys = new String[mapSize]; in addTrack()
630 values = new Object[mapSize]; in addTrack()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp26 const int32_t map[][4], size_t mapSize) { in rotateValueUsingRotationMap() argument
28 for (size_t i = 0; i < mapSize; i++) { in rotateValueUsingRotationMap()
58 size_t mapSize) { in rotateStemKey() argument
60 for (size_t i = 0; i < mapSize; i++) { in rotateStemKey()
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp121 off64_t mapSize = curOff - alignedOff; in write() local
123 void *dst = ::mmap64(NULL, mapSize, PROT_WRITE, MAP_SHARED, fd, alignedOff); in write()
130 ::msync(dst, mapSize, MS_SYNC); in write()
131 return ::munmap(dst, mapSize); in write()