Home
last modified time | relevance | path

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

12345

/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceSerializationPerfTest.java55 SharedMemory memory = Typeface.serializeFontMap(Typeface.getSystemFontMap()); in testDeserializeFontMap() local
56 ByteBuffer buffer = memory.mapReadOnly().order(ByteOrder.BIG_ENDIAN); in testDeserializeFontMap()
68 SharedMemory memory = null; in testSetSystemFontMap() local
77 if (memory != null) { in testSetSystemFontMap()
78 memory.close(); in testSetSystemFontMap()
80 memory = Typeface.serializeFontMap(Typeface.getSystemFontMap()); in testSetSystemFontMap()
82 Typeface.setSystemFontMap(memory); in testSetSystemFontMap()
/frameworks/base/core/java/com/android/internal/os/
DMemoryPowerCalculator.java44 BatterySipper memory = new BatterySipper(BatterySipper.DrainType.MEMORY, null, 0); in calculate() local
45 memory.usageTimeMs = durationMs; in calculate()
46 memory.usagePowerMah = powerMah; in calculate()
47 memory.sumPower(); in calculate()
48 if (memory.totalPowerMah > 0) { in calculate()
49 sippers.add(memory); in calculate()
/frameworks/base/core/java/android/text/
DSelection.java85 private static void setSelection(Spannable text, int start, int stop, int memory) { in setSelection() argument
97 updateMemory(text, memory); in setSelection()
106 private static void updateMemory(Spannable text, int memory) { in updateMemory() argument
107 if (memory > -1) { in updateMemory()
109 if (memory != currentMemory) { in updateMemory()
110 text.setSpan(SELECTION_MEMORY, memory, memory, Spanned.SPAN_POINT_POINT); in updateMemory()
173 private static void extendSelection(Spannable text, int index, int memory) { in extendSelection() argument
177 updateMemory(text, memory); in extendSelection()
239 int memory = getSelectionMemory(text); in setSelectionAndMemory() local
240 if (memory > -1) { in setSelectionAndMemory()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagGOTPLT.inc7 "fial to allocate memory for GOT",
8 "fial to allocate memory for GOT")
11 "fial to allocate memory for PLT",
12 "fial to allocate memory for PLT")
DDiagCommonKinds.inc128 "cannot open memory mapped file %0 from offset %1 to length %2.",
132 "cannot remove the mapped memory of file %0.",
133 "cannot remove the mapped memory of file %0.")
148 "requested memory region [%0, %1] is out of range.",
149 "requested memory region [%0, %1] is out of range.")
/frameworks/av/media/libshmem/
DREADME.md3 This library provides facilities for sharing memory across processes over (stable) AIDL. The main
5 memory that can be shared between processes. In addition, a few utilities are provided to facilitate
6 the use of shared memory and to integrate with legacy code that uses older facilities.
/frameworks/base/libs/hwui/pipeline/skia/
DATraceMemoryDump.cpp107 it.second.memory = 0; in startFrame()
123 hwui_all_frame_memory += it.second.memory; in logTraces()
124 ATRACE_INT64(it.first.c_str(), it.second.memory); in logTraces()
150 memoryCounter->second.memory += mLastDumpValue; in recordAndResetCountersIfNeeded()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBuffer.h134 static bool isDeadObject(const sp<IMemory> &memory) { in isDeadObject() argument
140 if (memory.get() == nullptr || memory->unsecurePointer() == nullptr) return false; in isDeadObject()
141 return reinterpret_cast<SharedControl *>(memory->unsecurePointer())->isDeadObject(); in isDeadObject()
143 (void) memory; in isDeadObject()
DCodecBase.h379 const sp<hardware::HidlMemory> &memory, in attachEncryptedBuffer() argument
389 (void)memory; in attachEncryptedBuffer()
437 const sp<IMemory> &memory,
/frameworks/compile/mclinker/lib/MC/
DInputBuilder.cpp124 MemoryArea* memory = m_pMemFactory->produce(pInput.path(), pMode, pPerm); in setMemory() local
125 pInput.setMemArea(memory); in setMemory()
130 MemoryArea* memory = m_pMemFactory->produce(pMemBuffer, pSize); in setMemory() local
131 pInput.setMemArea(memory); in setMemory()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DMemoryAccessTask.java34 byte[] memory = new byte[BUFFER_SIZE]; in run()
43 result += ++memory[index]; in run()
/frameworks/base/tests/SystemMemoryTest/
DREADME.txt1 This directory contains a test for system server memory use.
16 atest -v system-memory-test
/frameworks/av/media/libstagefright/
DCodecBase.cpp30 const sp<IMemory> &memory, in IMemoryToSharedBuffer() argument
37 hidlMemory = hardware::fromHeap(memory->getMemory(&offset, &size)); in IMemoryToSharedBuffer()
DACodecBufferChannel.cpp319 int32_t ACodecBufferChannel::getHeapSeqNum(const sp<HidlMemory> &memory) { in getHeapSeqNum() argument
321 auto it = mHeapSeqNumMap.find(memory); in getHeapSeqNum()
324 heapSeqNum = mCrypto->setHeap(memory); in getHeapSeqNum()
325 mHeapSeqNumMap.emplace(memory, heapSeqNum); in getHeapSeqNum()
333 const sp<hardware::HidlMemory> &memory, in attachEncryptedBuffer() argument
377 int32_t heapSeqNum = getHeapSeqNum(memory); in attachEncryptedBuffer()
398 .heapBase = *memory, in attachEncryptedBuffer()
/frameworks/base/services/core/java/com/android/server/am/
DEventLogTags.logtags30 # Reporting to applications that memory is low
33 # Kill a process to reclaim memory.
66 # Report collection of global memory state
68 # Report collection of memory used by a process
71 # Report changing memory conditions (Values are ProcessStats.ADJ_MEM_FACTOR* constants)
/frameworks/hardware/interfaces/sensorservice/1.0/
DISensorManager.hal54 * Create direct channel based on shared memory
59 * The memory layout looks as follows. These offsets can be found in
72 * @param mem the shared memory to use, must be ashmem.
84 createAshmemDirectChannel(memory mem, uint64_t size)
/frameworks/proto_logging/stats/enums/service/
Dprocstats_enum.proto32 MEMORY_STATE_MODERATE = 2; // moderate memory pressure.
33 MEMORY_STATE_LOW = 3; // low memory.
34 MEMORY_STATE_CRITICAL = 4; // critical memory.
/frameworks/av/media/libaudiohal/impl/
DEffectBufferHalHidl.cpp77 [&](bool success, const hidl_memory& memory) { in init() argument
79 mHidlBuffer.data = memory; in init()
/frameworks/av/media/libstagefright/include/
DACodecBufferChannel.h88 const sp<hardware::HidlMemory> &memory,
135 int32_t getHeapSeqNum(const sp<HidlMemory> &memory);
DSharedMemoryBuffer.h34 typedef ::android::hidl::memory::V1_0::IMemory TMemory;
/frameworks/base/core/proto/android/os/
Dps.proto45 // Virtual set size (memory size) of the process, in KiB.
48 // process; real memory usage, in KiB.
101 // How Android memory manager will treat the task
Dpagetypeinfo.proto25 * /proc/pagetypeinfo exports free memory distributions.
31 * The memory has multiple zones, e.g. DMA zone, Normal zone
/frameworks/native/vulkan/vkjson/
Dvkjson.h89 memset(&memory, 0, sizeof(VkPhysicalDeviceMemoryProperties)); in VkJsonDevice()
115 VkPhysicalDeviceMemoryProperties memory; member
/frameworks/native/services/inputflinger/reader/
DTouchVideoDevice.cpp101 req.memory = V4L2_MEMORY_MMAP; in create()
115 buf.memory = V4L2_MEMORY_MMAP; in create()
189 buf.memory = V4L2_MEMORY_MMAP; in readFrame()
/frameworks/compile/libbcc/
DREADME.rst10 to an in-memory executable. libbcc is versatile because:
30 * after each compilation, serialize the in-memory executable into a
99 * **bccPrepareExecutableEx** - Create the in-memory executable by either
170 * **Context** - The context of the in-memory executable, including
172 a page size, so that we can mmap the context directly into memory.

12345