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.java781 int mapSize = 0; in pinFileRanges() local
788 mapSize = (int) Math.min(Os.fstat(fd).st_size, Integer.MAX_VALUE); in pinFileRanges()
789 address = Os.mmap(0, mapSize, in pinFileRanges()
805 pinStart = clamp(0, pinStart, mapSize); in pinFileRanges()
806 pinLength = clamp(0, pinLength, mapSize - pinStart); in pinFileRanges()
835 PinnedFile pinnedFile = new PinnedFile(address, mapSize, fileToPin, bytesPinned); in pinFileRanges()
844 safeMunmap(address, mapSize); in pinFileRanges()
853 private static void safeMunmap(long address, long mapSize) { in safeMunmap() argument
855 Os.munmap(address, mapSize); in safeMunmap()
930 final int mapSize; field in PinnerService.PinnedFile
[all …]
/frameworks/base/media/java/android/media/
DMediaMuxer.java628 int mapSize = formatMap.size(); in addTrack() local
629 if (mapSize > 0) { in addTrack()
630 keys = new String[mapSize]; in addTrack()
631 values = new Object[mapSize]; in addTrack()
/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java616 int mapSize = this.builder.getRepeatedFieldCount(fieldDescriptor); in getField() local
621 for (int i = 0; i < mapSize; i++) { in getField()
/frameworks/native/services/inputflinger/
DInputReader.cpp127 const int32_t map[][4], size_t mapSize) { in rotateValueUsingRotationMap() argument
129 for (size_t i = 0; i < mapSize; i++) { in rotateValueUsingRotationMap()
158 const int32_t map[][2], size_t mapSize) { in rotateStemKey() argument
160 for (size_t i = 0; i < mapSize; i++) { in rotateStemKey()