/frameworks/base/libs/protoutil/include/android/util/ |
D | ProtoOutputStream.h | 32 const uint64_t FIELD_TYPE_SHIFT = 32; 38 const uint64_t FIELD_TYPE_MASK = 0x0ffULL << FIELD_TYPE_SHIFT; 44 const uint64_t FIELD_TYPE_UNKNOWN = 0; 45 const uint64_t FIELD_TYPE_DOUBLE = 1ULL << FIELD_TYPE_SHIFT; // double, exactly eight bytes on … 46 const uint64_t FIELD_TYPE_FLOAT = 2ULL << FIELD_TYPE_SHIFT; // float, exactly four bytes on th… 47 const uint64_t FIELD_TYPE_INT64 = 3ULL << FIELD_TYPE_SHIFT; // int64, varint on the wire. Neg… 50 const uint64_t FIELD_TYPE_UINT64 = 4ULL << FIELD_TYPE_SHIFT; // uint64, varint on the wire. 51 const uint64_t FIELD_TYPE_INT32 = 5ULL << FIELD_TYPE_SHIFT; // int32, varint on the wire. Neg… 54 const uint64_t FIELD_TYPE_FIXED64 = 6ULL << FIELD_TYPE_SHIFT; // uint64, exactly eight bytes on … 55 const uint64_t FIELD_TYPE_FIXED32 = 7ULL << FIELD_TYPE_SHIFT; // uint32, exactly four bytes on t… [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmElement.h | 30 const uint64_t mId, mSize; 32 WebmElement(uint64_t id, uint64_t size); 37 uint64_t totalSize(); 38 uint64_t serializeInto(uint8_t *buf); 39 uint8_t *serialize(uint64_t& size); 40 int write(int fd, uint64_t& size); 50 static sp<WebmElement> SegmentInfo(uint64_t scale = 1000000, double dur = 0); 58 uint64_t uid = 0, 64 uint64_t width, 65 uint64_t height, [all …]
|
D | EbmlUtil.cpp | 38 uint64_t highestOneBit(uint64_t n) { in highestOneBit() 48 uint64_t _powerOf2(uint64_t u) { in _powerOf2() 49 uint64_t powerOf2 = highestOneBit(u); in _powerOf2() 54 int numberOfTrailingZeros(uint64_t u) { in numberOfTrailingZeros() 75 uint64_t encodeUnsigned(uint64_t u) { in encodeUnsigned() 76 uint64_t powerOf2 = _powerOf2(u); in encodeUnsigned() 86 uint64_t encodeUnsigned(uint64_t u, int width) { in encodeUnsigned() 88 uint64_t lengthDescriptor = 1; in encodeUnsigned() 94 int sizeOf(uint64_t u) { in sizeOf() 95 uint64_t powerOf2 = _powerOf2(u); in sizeOf() [all …]
|
D | EbmlUtil.h | 36 uint64_t encodeUnsigned(uint64_t u); 40 uint64_t encodeUnsigned(uint64_t u, int width); 43 int serializeCodedUnsigned(uint64_t u, uint8_t* bary); 46 int sizeOf(uint64_t u);
|
/frameworks/rs/ |
D | rsHidlAdaptation.cpp | 217 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationGetType() 218 uint64_t typeRet = GetIContextHandle(context)->allocationGetType(_allocation); in AllocationGetType() 225 uint64_t _type = (uint64_t)(uintptr_t)type; in TypeGetNativeData() 228 [typedata, typeDataSize] (const hidl_vec<uint64_t> &retTypeData){ in TypeGetNativeData() 238 uint64_t _element = (uint64_t)(uintptr_t)element; in ElementGetNativeData() 250 uint64_t _element = (uint64_t)(uintptr_t)element; in ElementGetSubElements() 251 uint64_t _ids = (uint64_t)(uintptr_t)ids; in ElementGetSubElements() 252 uint64_t _names = (uint64_t)(uintptr_t)names; in ElementGetSubElements() 253 uint64_t _arraySizes = (uint64_t)(uintptr_t)arraySizes; in ElementGetSubElements() 256 …[ids, names, arraySizes, dataSize] (const hidl_vec<uint64_t> &retIds, const hidl_vec<hidl_string> … in ElementGetSubElements() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFSegment.h | 60 uint64_t offset() const { return m_Offset; } in offset() 61 uint64_t vaddr() const { return m_Vaddr; } in vaddr() 62 uint64_t paddr() const { return m_Paddr; } in paddr() 63 uint64_t filesz() const { return m_Filesz; } in filesz() 64 uint64_t memsz() const { return m_Memsz; } in memsz() 66 uint64_t align() const { return std::max(m_Align, m_MaxSectionAlign); } in align() 76 void setOffset(uint64_t pOffset) { m_Offset = pOffset; } in setOffset() 78 void setVaddr(uint64_t pVaddr) { m_Vaddr = pVaddr; } in setVaddr() 80 void setPaddr(uint64_t pPaddr) { m_Paddr = pPaddr; } in setPaddr() 82 void setFilesz(uint64_t pFilesz) { m_Filesz = pFilesz; } in setFilesz() [all …]
|
D | LDSection.h | 41 uint64_t pSize = 0, 42 uint64_t pAddr = 0); 51 uint64_t pSize = 0, 52 uint64_t pAddr = 0); 83 uint64_t size() const { return m_Size; } in size() 87 uint64_t offset() const { return m_Offset; } in offset() 99 uint64_t addr() const { return m_Addr; } in addr() 120 void setSize(uint64_t size) { m_Size = size; } in setSize() 122 void setOffset(uint64_t Offset) { m_Offset = Offset; } in setOffset() 124 void setAddr(uint64_t addr) { m_Addr = addr; } in setAddr() [all …]
|
/frameworks/native/libs/nativewindow/tests/ |
D | AHardwareBufferTest.cpp | 30 static ::testing::AssertionResult BuildHexFailureMessage(uint64_t expected, in BuildHexFailureMessage() 31 uint64_t actual, const char* type) { in BuildHexFailureMessage() 40 uint64_t grallocUsage, uint64_t hardwareBufferUsage) { in TestUsageConversion() 41 uint64_t convertedGrallocUsage = AHardwareBuffer_convertToGrallocUsageBits(hardwareBufferUsage); in TestUsageConversion() 45 … uint64_t convertedHArdwareBufferUsage = AHardwareBuffer_convertFromGrallocUsageBits(grallocUsage); in TestUsageConversion() 55 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_READ_RARELY, in TEST() 57 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_READ_OFTEN, in TEST() 59 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_WRITE_RARELY, in TEST() 61 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_WRITE_OFTEN, in TEST() 64 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::GPU_TEXTURE, in TEST() [all …]
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | SizeTraits.h | 32 typedef uint64_t Address; 33 typedef uint64_t Offset; 34 typedef uint64_t Word; 85 inline void alignAddress(uint64_t& pAddr, uint64_t pAlignConstraint) { in alignAddress() 91 uint64_t Align(uint64_t pAddress); 94 inline uint64_t Align<32>(uint64_t pAddress) { 99 inline uint64_t Align<64>(uint64_t pAddress) { 128 inline uint64_t bswap64(uint64_t pData) { in bswap64() 153 inline uint64_t signExtend(uint64_t pVal) { in signExtend() 154 uint64_t mask = (~((uint64_t)0)) >> (64 - WIDTH); in signExtend() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | Bench.h | 49 bool runPowerManagementTest(uint64_t options); 50 bool runCPUHeatSoak(uint64_t options); 54 float runMemoryBandwidthTest(uint64_t options); 55 float runMemoryLatencyTest(uint64_t options); 57 float runGFlopsTest(uint64_t options); 67 uint64_t getTimeNanos() const; 68 uint64_t getTimeMillis() const; 95 uint64_t mTimeStartNanos; 96 uint64_t mTimeEndNanos; 97 uint64_t mTimeBucketDivisor; [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | ByteUtils.cpp | 32 uint64_t U64_AT(const uint8_t *ptr) { in U64_AT() 33 return ((uint64_t)U32_AT(ptr)) << 32 | U32_AT(ptr + 4); in U64_AT() 44 uint64_t U64LE_AT(const uint8_t *ptr) { in U64LE_AT() 45 return ((uint64_t)U32LE_AT(ptr + 4)) << 32 | U32LE_AT(ptr); in U64LE_AT() 49 uint64_t ntoh64(uint64_t x) { in ntoh64() 50 return ((uint64_t)ntohl(x & 0xffffffff) << 32) | ntohl(x >> 32); in ntoh64() 53 uint64_t hton64(uint64_t x) { in hton64() 54 return ((uint64_t)htonl(x & 0xffffffff) << 32) | htonl(x >> 32); in hton64()
|
/frameworks/compile/mclinker/lib/Support/ |
D | LEB128.cpp | 17 size_t encode<uint64_t>(ByteType*& pBuf, uint64_t pValue) { in encode() 96 uint64_t decode<uint64_t>(const ByteType* pBuf, size_t& pSize) { in decode() 97 uint64_t result = 0; in decode() 127 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in decode() 136 uint64_t decode<uint64_t>(const ByteType*& pBuf) { in decode() 138 uint64_t result; in decode() 171 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in decode() 185 uint64_t result = 0; in decode() 194 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in decode() 199 result |= ((static_cast<uint64_t>(-1)) << shift); in decode() [all …]
|
/frameworks/native/services/surfaceflinger/TimeStats/ |
D | TimeStats.h | 50 virtual void setPostTime(int32_t layerID, uint64_t frameNumber, const std::string& layerName, 52 virtual void setLatchTime(int32_t layerID, uint64_t frameNumber, nsecs_t latchTime) = 0; 53 virtual void setDesiredTime(int32_t layerID, uint64_t frameNumber, nsecs_t desiredTime) = 0; 54 virtual void setAcquireTime(int32_t layerID, uint64_t frameNumber, nsecs_t acquireTime) = 0; 55 virtual void setAcquireFence(int32_t layerID, uint64_t frameNumber, 57 virtual void setPresentTime(int32_t layerID, uint64_t frameNumber, nsecs_t presentTime) = 0; 58 virtual void setPresentFence(int32_t layerID, uint64_t frameNumber, 63 virtual void removeTimeRecord(int32_t layerID, uint64_t frameNumber) = 0; 75 uint64_t frameNumber = 0; 122 void setPostTime(int32_t layerID, uint64_t frameNumber, const std::string& layerName, [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | time_util.h | 28 uint64_t getTimeUs(); 32 static const uint64_t kDefaultLoggingPeriodInFrames; 39 void SetLoggingPeriodInFrames(uint64_t numFrames) { in SetLoggingPeriodInFrames() 44 uint64_t NumCalls() const { return mNumCalls; } in NumCalls() 45 uint64_t TotalUSec() const { return mTotalUSec; } in TotalUSec() 49 uint64_t mLoggingPeriodInFrames; 50 uint64_t mStartUSec; 51 uint64_t mNumCalls; 52 uint64_t mTotalUSec;
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | time_util.h | 28 uint64_t getTimeUs(); 32 static const uint64_t kDefaultLoggingPeriodInFrames; 39 void SetLoggingPeriodInFrames(uint64_t numFrames) { in SetLoggingPeriodInFrames() 44 uint64_t NumCalls() const { return mNumCalls; } in NumCalls() 45 uint64_t TotalUSec() const { return mTotalUSec; } in TotalUSec() 49 uint64_t mLoggingPeriodInFrames; 50 uint64_t mStartUSec; 51 uint64_t mNumCalls; 52 uint64_t mTotalUSec;
|
/frameworks/base/cmds/statsd/benchmark/ |
D | metric_util.h | 97 const android::view::DisplayStateEnum state, uint64_t timestampNs); 101 int level, uint64_t timestampNs); 106 const string& name, uint64_t timestampNs); 111 const string& name, uint64_t timestampNs); 114 std::unique_ptr<LogEvent> CreateMoveToBackgroundEvent(const int uid, uint64_t timestampNs); 117 std::unique_ptr<LogEvent> CreateMoveToForegroundEvent(const int uid, uint64_t timestampNs); 122 uint64_t timestampNs); 127 uint64_t timestampNs); 131 const int uid, uint64_t timestampNs); 136 uint64_t timestampNs); [all …]
|
/frameworks/av/media/codec2/core/include/ |
D | C2BufferBase.h | 46 enum read_t : uint64_t { 61 enum write_t : uint64_t { 73 enum : uint64_t { 82 inline C2MemoryUsage(uint64_t consumer, uint64_t producer) in C2MemoryUsage() 85 inline explicit C2MemoryUsage(uint64_t expected_) in C2MemoryUsage() 88 uint64_t expected; // expected buffer usage
|
/frameworks/base/cmds/statsd/src/ |
D | hash.cpp | 37 inline uint64_t DecodeFixed64(const char* ptr) { in DecodeFixed64() 38 uint64_t lo = DecodeFixed32(ptr); in DecodeFixed64() 39 uint64_t hi = DecodeFixed32(ptr + 4); in DecodeFixed64() 45 static inline uint64_t ByteAs64(char c) { return static_cast<uint64_t>(c) & 0xff; } in ByteAs64() 91 uint64_t Hash64(const char* data, size_t n, uint64_t seed) { in Hash64() 92 const uint64_t m = 0xc6a4a7935bd1e995; in Hash64() 95 uint64_t h = seed ^ (n * m); in Hash64() 98 uint64_t k = DecodeFixed64(data); in Hash64()
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 36 static constexpr uint64_t NSEC_PER_SEC = 1000000000; 37 static constexpr uint64_t NSEC_PER_YEAR = NSEC_PER_SEC * 60 * 60 * 24 * 365; 53 uint64_t policyEntries = 0; in TEST() 63 uint64_t policySum = 0; in TestConcurrentTimesConsistent() 86 static void TestUidTimesConsistent(const std::vector<std::vector<uint64_t>> &timeInState, in TestUidTimesConsistent() 90 uint64_t policySum = 0; in TestUidTimesConsistent() 92 uint64_t tisSum = in TestUidTimesConsistent() 93 std::accumulate(timeInState[i].begin(), timeInState[i].end(), (uint64_t)0); in TestUidTimesConsistent() 94 uint64_t concurrentSum = std::accumulate(concurrentTime.policy[i].begin(), in TestUidTimesConsistent() 95 concurrentTime.policy[i].end(), (uint64_t)0); in TestUidTimesConsistent() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockTimeStats.h | 37 MOCK_METHOD4(setPostTime, void(int32_t, uint64_t, const std::string&, nsecs_t)); 38 MOCK_METHOD3(setLatchTime, void(int32_t, uint64_t, nsecs_t)); 39 MOCK_METHOD3(setDesiredTime, void(int32_t, uint64_t, nsecs_t)); 40 MOCK_METHOD3(setAcquireTime, void(int32_t, uint64_t, nsecs_t)); 41 MOCK_METHOD3(setAcquireFence, void(int32_t, uint64_t, const std::shared_ptr<FenceTime>&)); 42 MOCK_METHOD3(setPresentTime, void(int32_t, uint64_t, nsecs_t)); 43 MOCK_METHOD3(setPresentFence, void(int32_t, uint64_t, const std::shared_ptr<FenceTime>&)); 45 MOCK_METHOD2(removeTimeRecord, void(int32_t, uint64_t));
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_FuseAppLoop.cpp | 49 std::map<uint64_t, std::unique_ptr<LocalBytes>> mBuffers; 55 void OnLookup(uint64_t unique, uint64_t inode) override { in OnLookup() 59 void OnGetAttr(uint64_t unique, uint64_t inode) override { in OnGetAttr() 63 void OnOpen(uint64_t unique, uint64_t inode) override { in OnOpen() 75 void OnFsync(uint64_t unique, uint64_t inode) override { in OnFsync() 79 void OnRelease(uint64_t unique, uint64_t inode) override { in OnRelease() 84 void OnRead(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size) override { in OnRead() 93 void OnWrite(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size, in OnWrite()
|
/frameworks/base/tools/streaming_proto/ |
D | stream_proto_utils.cpp | 9 const uint64_t FIELD_TYPE_SHIFT = 32; 15 const uint64_t FIELD_COUNT_SHIFT = 40; 16 const uint64_t FIELD_COUNT_SINGLE = 1ULL << FIELD_COUNT_SHIFT; 17 const uint64_t FIELD_COUNT_REPEATED = 2ULL << FIELD_COUNT_SHIFT; 18 const uint64_t FIELD_COUNT_PACKED = 5ULL << FIELD_COUNT_SHIFT; 20 uint64_t 24 uint64_t result = (uint32_t)field.number(); in get_field_id() 27 result |= (uint64_t)field.type() << FIELD_TYPE_SHIFT; in get_field_id()
|
/frameworks/compile/mclinker/include/mcld/Script/ |
D | Operand.h | 42 virtual uint64_t value() const = 0; 69 uint64_t value() const { return m_Value; } in value() 71 void setValue(uint64_t pValue) { m_Value = pValue; } in setValue() 84 uint64_t m_Value; 95 explicit IntOperand(uint64_t pValue); 100 uint64_t value() const { return m_Value; } in value() 102 void setValue(uint64_t pValue) { m_Value = pValue; } in setValue() 109 static IntOperand* create(uint64_t pValue); 114 uint64_t m_Value; 133 uint64_t value() const { in value() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 35 const char* description, bool removable, uint64_t maxFileSize) in MtpStorage() 61 uint64_t MtpStorage::getMaxCapacity() { in getMaxCapacity() 66 mMaxCapacity = (uint64_t)stat.f_blocks * (uint64_t)stat.f_bsize; in getMaxCapacity() 71 uint64_t MtpStorage::getFreeSpace() { in getFreeSpace() 75 return (uint64_t)stat.f_bavail * (uint64_t)stat.f_bsize; in getFreeSpace()
|
/frameworks/av/media/extractors/mp4/ |
D | SampleIterator.h | 36 uint64_t getSampleTime() const { return mCurrentSampleTime; } in getSampleTime() 37 uint64_t getSampleDuration() const { return mCurrentSampleDuration; } in getSampleDuration() 66 uint64_t mTTSSampleTime; 68 uint64_t mTTSDuration; 73 uint64_t mCurrentSampleTime; 74 uint64_t mCurrentSampleDuration; 79 status_t findSampleTimeAndDuration(uint32_t sampleIndex, uint64_t *time, uint64_t *duration);
|