Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 1915) sorted by relevance

12345678910>>...77

/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/include/
DDrmPlugin.h45 ::ndk::ScopedAStatus closeSession(const std::vector<uint8_t>& in_sessionId) override;
46 ::ndk::ScopedAStatus decrypt(const std::vector<uint8_t>& in_sessionId,
47 const std::vector<uint8_t>& in_keyId,
48 const std::vector<uint8_t>& in_input,
49 const std::vector<uint8_t>& in_iv,
50 std::vector<uint8_t>* _aidl_return) override;
51 ::ndk::ScopedAStatus encrypt(const std::vector<uint8_t>& in_sessionId,
52 const std::vector<uint8_t>& in_keyId,
53 const std::vector<uint8_t>& in_input,
54 const std::vector<uint8_t>& in_iv,
[all …]
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp66 static std::vector<uint8_t> buildCmapFormat4Table(const std::vector<uint16_t>& ranges) { in buildCmapFormat4Table()
75 std::vector<uint8_t> out(finalLength); in buildCmapFormat4Table()
118 static std::vector<uint8_t> buildCmapFormat12Table(const std::vector<uint32_t>& ranges) { in buildCmapFormat12Table()
125 std::vector<uint8_t> out(finalLength); in buildCmapFormat12Table()
151 std::vector<uint32_t> defaultUVSRanges;
152 std::vector<uint32_t> nonDefaultUVS;
154 std::vector<uint8_t> getDefaultUVSAsBinary() const { in getDefaultUVSAsBinary()
156 return std::vector<uint8_t>(); in getDefaultUVSAsBinary()
162 std::vector<uint8_t> out(length); in getDefaultUVSAsBinary()
175 std::vector<uint8_t> getNonDefaultUVSAsBinary() const { in getNonDefaultUVSAsBinary()
[all …]
/frameworks/native/libs/ftl/
Dsmall_vector_test.cpp33 ftl::SmallVector<char, 3> vector; in TEST() local
34 EXPECT_TRUE(vector.empty()); in TEST()
35 EXPECT_FALSE(vector.dynamic()); in TEST()
37 vector = {'a', 'b', 'c'}; in TEST()
38 EXPECT_EQ(vector.size(), 3u); in TEST()
39 EXPECT_FALSE(vector.dynamic()); in TEST()
41 vector.push_back('d'); in TEST()
42 EXPECT_TRUE(vector.dynamic()); in TEST()
44 vector.unstable_erase(vector.begin()); in TEST()
45 EXPECT_EQ(vector, (ftl::SmallVector{'d', 'b', 'c'})); in TEST()
[all …]
Dstatic_vector_test.cpp33 ftl::StaticVector<char, 3> vector; in TEST() local
34 EXPECT_TRUE(vector.empty()); in TEST()
36 vector = {'a', 'b'}; in TEST()
37 EXPECT_EQ(vector.size(), 2u); in TEST()
39 vector.push_back('c'); in TEST()
40 EXPECT_TRUE(vector.full()); in TEST()
42 EXPECT_FALSE(vector.push_back('d')); in TEST()
43 EXPECT_EQ(vector.size(), 3u); in TEST()
45 vector.unstable_erase(vector.begin()); in TEST()
46 EXPECT_EQ(vector, (ftl::StaticVector{'c', 'b'})); in TEST()
[all …]
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.h27 std::optional<std::vector<std::vector<uint64_t>>> getTotalCpuFreqTimes();
28 std::optional<std::vector<std::vector<uint64_t>>> getUidCpuFreqTimes(uint32_t uid);
29 std::optional<std::unordered_map<uint32_t, std::vector<std::vector<uint64_t>>>>
31 std::optional<std::unordered_map<uint32_t, std::vector<std::vector<uint64_t>>>>
33 std::optional<std::vector<std::vector<uint32_t>>> getCpuFreqs();
36 std::vector<uint64_t> active;
37 std::vector<std::vector<uint64_t>> policy;
48 std::optional<std::unordered_map<uint16_t, std::vector<std::vector<uint64_t>>>>
49 getAggregatedTaskCpuFreqTimes(pid_t pid, const std::vector<uint16_t> &aggregationKeys);
/frameworks/native/libs/battery/
DLongArrayMultiStateCounterTest.cpp27 LongArrayMultiStateCounter testCounter(2, std::vector<uint64_t>(4)); in TEST_F()
28 testCounter.updateValue(std::vector<uint64_t>({0, 0, 0, 0}), 1000); in TEST_F()
31 testCounter.updateValue(std::vector<uint64_t>({100, 200, 300, 400}), 3000); in TEST_F()
34 EXPECT_EQ(std::vector<uint64_t>({50, 100, 150, 200}), testCounter.getCount(0)); in TEST_F()
35 EXPECT_EQ(std::vector<uint64_t>({50, 100, 150, 200}), testCounter.getCount(1)); in TEST_F()
39 LongArrayMultiStateCounter testCounter(2, std::vector<uint64_t>(4)); in TEST_F()
40 testCounter.updateValue(std::vector<uint64_t>({0, 0, 0, 0}), 1000); in TEST_F()
43 testCounter.updateValue(std::vector<uint64_t>({100, 200, 300, 400}), 3000); in TEST_F()
45 testCounter.updateValue(std::vector<uint64_t>({200, 300, 400, 500}), 8000); in TEST_F()
53 EXPECT_EQ(std::vector<uint64_t>({130, 180, 230, 280}), testCounter.getCount(0)); in TEST_F()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_LongArrayMultiStateCounter.cpp32 new battery::LongArrayMultiStateCounter(stateCount, std::vector<uint64_t>(arrayLength)); in native_init()
62 std::vector<uint64_t> *vector = in native_updateValues() local
63 reinterpret_cast<std::vector<uint64_t> *>(longArrayContainerNativePtr); in native_updateValues()
65 counter->updateValue(*vector, timestamp); in native_updateValues()
71 std::vector<uint64_t> *vector = in native_addCounts() local
72 reinterpret_cast<std::vector<uint64_t> *>(longArrayContainerNativePtr); in native_addCounts()
73 counter->addValue(*vector); in native_addCounts()
85 std::vector<uint64_t> *vector = in native_getCounts() local
86 reinterpret_cast<std::vector<uint64_t> *>(longArrayContainerNativePtr); in native_getCounts()
88 *vector = counter->getCount(state); in native_getCounts()
[all …]
Dcom_android_internal_os_KernelSingleUidTimeReader.cpp27 static jlongArray copyVecsToArray(JNIEnv *env, std::vector<std::vector<uint64_t>> &vec) { in copyVecsToArray()
53 std::optional<std::vector<std::vector<uint64_t>>> timeInFreqDataNanos, in addCpuTimeInFreqDelta()
64 std::vector<uint64_t> flattened; in addCpuTimeInFreqDelta()
80 const std::vector<uint64_t> &delta = counter->updateValue(flattened, timestampMs); in addCpuTimeInFreqDelta()
82 std::vector<uint64_t> *vector = in addCpuTimeInFreqDelta() local
83 reinterpret_cast<std::vector<uint64_t> *>(deltaOutContainerNativePtr); in addCpuTimeInFreqDelta()
84 *vector = delta; in addCpuTimeInFreqDelta()
101 std::optional<std::vector<std::vector<uint64_t>>>(), in addDeltaForTest()
105 std::vector<std::vector<uint64_t>> timeInFreqData; in addDeltaForTest()
108 std::vector<uint64_t> cluster; in addDeltaForTest()
Dcom_android_internal_os_KernelSingleProcessCpuThreadReader.cpp63 virtual std::optional<std::unordered_map<uint16_t, std::vector<std::vector<uint64_t>>>>
64 getAggregatedTaskCpuFreqTimes(pid_t, const std::vector<uint16_t> &);
72 std::optional<std::vector<std::vector<uint32_t>>> cpuFreqs = android::bpf::getCpuFreqs(); in getCpuFrequencyCount()
94 std::optional<std::unordered_map<uint16_t, std::vector<std::vector<uint64_t>>>>
95 getAggregatedTaskCpuFreqTimes(pid_t pid, const std::vector<uint16_t> &aggregationKeys) { in getAggregatedTaskCpuFreqTimes()
118 std::optional<std::unordered_map<uint16_t, std::vector<std::vector<uint64_t>>>>
119 getAggregatedTaskCpuFreqTimes(pid_t tgid, const std::vector<uint16_t> &aggregationKeys);
162 const std::vector<std::vector<uint64_t>> &data) { in flattenTimeInStateData()
213 std::optional<std::unordered_map<uint16_t, std::vector<std::vector<uint64_t>>>> data = in readProcessCpuUsage()
290 std::optional<std::unordered_map<uint16_t, std::vector<std::vector<uint64_t>>>>
[all …]
/frameworks/native/libs/binder/tests/
DbinderRpcWireProtocolTest.cpp43 static const std::vector<std::function<void(Parcel* p)>> kFillFuns {
90 …[](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::optional<std::vector<int8_t>>(std::nullopt))… in __anona9800ae22f02()
91 …[](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::optional<std::vector<int8_t>>({-1, 0, 17})))… in __anona9800ae23002()
92 [](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::vector<int8_t>({}))); }, in __anona9800ae23102()
93 [](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::vector<int8_t>({-1, 0, 17}))); }, in __anona9800ae23202()
94 …[](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::optional<std::vector<uint8_t>>(std::nullopt)… in __anona9800ae23302()
95 …[](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::optional<std::vector<uint8_t>>({0, 1, 17})))… in __anona9800ae23402()
96 [](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::vector<uint8_t>({}))); }, in __anona9800ae23502()
97 [](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::vector<uint8_t>({0, 1, 17}))); }, in __anona9800ae23602()
98 …[](Parcel* p) { ASSERT_EQ(OK, p->writeInt32Vector(std::optional<std::vector<int32_t>>(std::nullopt… in __anona9800ae23702()
[all …]
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dbinder.cpp99 std::vector<ParcelRead<::android::Parcel>> BINDER_PARCEL_READ_FUNCTIONS {
112 PARCEL_READ_NO_STATUS(std::vector<android::sp<android::IBinder>>, debugReadAllStrongBinders),
113 PARCEL_READ_NO_STATUS(std::vector<int>, debugReadAllFileDescriptors),
130 std::vector<uint8_t> data(len); in __anon3dab1bff0402()
178 PARCEL_READ_WITH_STATUS(std::vector<ByteEnum>, readEnumVector),
179 PARCEL_READ_WITH_STATUS(std::unique_ptr<std::vector<ByteEnum>>, readEnumVector),
180 PARCEL_READ_WITH_STATUS(std::optional<std::vector<ByteEnum>>, readEnumVector),
181 PARCEL_READ_WITH_STATUS(std::vector<IntEnum>, readEnumVector),
182 PARCEL_READ_WITH_STATUS(std::unique_ptr<std::vector<IntEnum>>, readEnumVector),
183 PARCEL_READ_WITH_STATUS(std::optional<std::vector<IntEnum>>, readEnumVector),
[all …]
Dbinder_ndk.cpp81 std::vector<ParcelRead<NdkParcelAdapter>> BINDER_NDK_PARCEL_READ_FUNCTIONS{
131 PARCEL_READ(std::vector<std::string>, ndk::AParcel_readVector),
132 … PARCEL_READ(std::optional<std::vector<std::optional<std::string>>>, ndk::AParcel_readVector),
133 PARCEL_READ(std::vector<SomeParcelable>, ndk::AParcel_readVector),
134 … PARCEL_READ(std::optional<std::vector<std::optional<SomeParcelable>>>, ndk::AParcel_readVector),
135 PARCEL_READ(std::vector<ndk::SpAIBinder>, ndk::AParcel_readVector),
136 PARCEL_READ(std::optional<std::vector<ndk::SpAIBinder>>, ndk::AParcel_readVector),
137 PARCEL_READ(std::vector<ndk::ScopedFileDescriptor>, ndk::AParcel_readVector),
138 PARCEL_READ(std::optional<std::vector<ndk::ScopedFileDescriptor>>, ndk::AParcel_readVector),
139 PARCEL_READ(std::vector<std::shared_ptr<ISomeInterface>>, ndk::AParcel_readVector),
[all …]
/frameworks/base/omapi/aidl/vts/functional/AccessControlApp/
DVtsHalOmapiSeAccessControlTestCases.cpp58 bool verifyBerTlvData(std::vector<uint8_t> tlv) { in verifyBerTlvData()
83 std::vector<std::vector<uint8_t>> authorizedAids) { in testSelectableAid()
91 std::vector<uint8_t> selectResponse = {}; in testSelectableAid()
124 std::vector<std::vector<uint8_t>> unAuthorizedAids) { in testUnauthorisedAid()
158 std::vector<uint8_t> aid, in testTransmitAPDU()
159 std::vector<std::vector<uint8_t>> apdus) { in testTransmitAPDU()
169 std::vector<uint8_t> selectResponse = {}; in testTransmitAPDU()
170 std::vector<uint8_t> transmitResponse = {}; in testTransmitAPDU()
203 std::vector<uint8_t> aid, in testUnauthorisedAPDU()
204 std::vector<std::vector<uint8_t>> apdus) { in testUnauthorisedAPDU()
[all …]
/frameworks/rs/script_api/
Drs_vector_math.spec48 test: vector
59 test: vector
75 test: vector
86 test: vector
100 test: vector
111 test: vector
130 test: vector
140 summary: Approximate length of a vector
142 Computes the approximate length of a vector.
148 test: vector
[all …]
DSpecification.h163 std::vector<std::string> mDescription; // The comments to be included in the header
176 const std::vector<std::string>& getDescription() const { return mDescription; } in getDescription()
190 std::vector<ConstantSpecification*> mSpecifications; // Owned
196 const std::vector<ConstantSpecification*> getSpecifications() const { return mSpecifications; } in getSpecifications()
206 std::vector<TypeSpecification*> mSpecifications; // Owned
212 const std::vector<TypeSpecification*> getSpecifications() const { return mSpecifications; } in getSpecifications()
226 std::vector<ParameterEntry*> mParameters;
229 std::vector<FunctionSpecification*> mSpecifications; // Owned
236 const std::vector<ParameterEntry*>& getParameters() const { return mParameters; } in getParameters()
238 const std::vector<FunctionSpecification*> getSpecifications() const { return mSpecifications; } in getSpecifications()
[all …]
/frameworks/compile/slang/tests/F_vector_cast/
Dstderr.txt.expect1 …: error: cannot convert between vector values of different size ('float2' (vector of 2 'float' val…
2 …1: error: cannot convert between vector values of different size ('int3' (vector of 3 'int' values…
3 vector_cast.rscript:7:9: error: invalid vector cast
4 vector_cast.rscript:14:9: error: invalid vector cast
5 vector_cast.rscript:21:9: error: invalid vector cast
6 vector_cast.rscript:31:13: error: invalid vector cast
/frameworks/av/media/mtp/
DMtpTypes.h53 typedef std::vector<MtpStorage *> MtpStorageList;
54 typedef std::vector<MtpDevice*> MtpDeviceList;
55 typedef std::vector<MtpProperty*> MtpPropertyList;
57 typedef std::vector<uint8_t> UInt8List;
58 typedef std::vector<uint16_t> UInt16List;
59 typedef std::vector<uint32_t> UInt32List;
60 typedef std::vector<uint64_t> UInt64List;
61 typedef std::vector<int8_t> Int8List;
62 typedef std::vector<int16_t> Int16List;
63 typedef std::vector<int32_t> Int32List;
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/
DDrmPlugin.cpp51 std::vector<uint8_t> uint32ToVector(uint32_t value) { in uint32ToVector()
56 return std::vector<uint8_t>(buffer, buffer + sizeof(buffer)); in uint32ToVector()
93 std::vector<uint8_t> valueVector; in initProperties()
109 void DrmPlugin::installSecureStop(const std::vector<uint8_t>& sessionId) { in installSecureStop()
116 mSecureStops.insert(std::pair<std::vector<uint8_t>, ClearkeySecureStop>(clearkeySecureStop.id, in installSecureStop()
120 ::ndk::ScopedAStatus DrmPlugin::closeSession(const std::vector<uint8_t>& in_sessionId) { in closeSession()
139 ::ndk::ScopedAStatus DrmPlugin::decrypt(const std::vector<uint8_t>& in_sessionId, in decrypt()
140 const std::vector<uint8_t>& in_keyId, in decrypt()
141 const std::vector<uint8_t>& in_input, in decrypt()
142 const std::vector<uint8_t>& in_iv, in decrypt()
[all …]
/frameworks/native/libs/gui/
DBatchBufferOps.cpp33 const std::vector<int32_t>& slots, in requestBuffers()
34 std::vector<RequestBufferOutput>* outputs) { in requestBuffers()
46 const std::vector<DequeueBufferInput>& inputs, in dequeueBuffers()
47 std::vector<DequeueBufferOutput>* outputs) { in dequeueBuffers()
66 const std::vector<int32_t>& slots, in detachBuffers()
67 std::vector<status_t>* results) { in detachBuffers()
77 const std::vector<sp<GraphicBuffer>>& buffers, in attachBuffers()
78 std::vector<AttachBufferOutput>* outputs) { in attachBuffers()
89 const std::vector<QueueBufferInput>& inputs, in queueBuffers()
90 std::vector<QueueBufferOutput>* outputs) { in queueBuffers()
[all …]
/frameworks/av/media/codec2/core/include/
DC2Component.h156 const std::vector<C2Param*> &stackParams,
157 const std::vector<C2Param::Index> &heapParamIndices,
159 std::vector<std::unique_ptr<C2Param>>* const heapParams) const = 0;
217 const std::vector<C2Param*> &params,
219 std::vector<std::unique_ptr<C2SettingResult>>* const failures) = 0;
293 std::vector<std::shared_ptr<C2ParamDescriptor>> * const params) const = 0;
328 std::vector<C2FieldSupportedValuesQuery> &fields, c2_blocking_t mayBlock) const = 0;
341 std::vector<std::shared_ptr<C2SettingResult>> settingResult) = 0;
418 std::vector<C2String> aliases; ///< name aliases for backward compatibility
463 virtual c2_status_t announce_nb(const std::vector<C2WorkOutline> &items) = 0;
[all …]
/frameworks/native/include/binder/
DParcel.h99 std::vector<sp<IBinder>> debugReadAllStrongBinders() const;
102 std::vector<int> debugReadAllFileDescriptors() const;
182 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
183 …status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) __attribute__…
184 status_t writeByteVector(const std::vector<int8_t>& val);
185 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
186 …status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) __attribute_…
187 status_t writeByteVector(const std::vector<uint8_t>& val);
188 status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
189 …status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val) __attribute…
[all …]
/frameworks/native/libs/binder/include/binder/
DParcel.h99 std::vector<sp<IBinder>> debugReadAllStrongBinders() const;
102 std::vector<int> debugReadAllFileDescriptors() const;
182 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
183 …status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) __attribute__…
184 status_t writeByteVector(const std::vector<int8_t>& val);
185 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
186 …status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) __attribute_…
187 status_t writeByteVector(const std::vector<uint8_t>& val);
188 status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
189 …status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val) __attribute…
[all …]
/frameworks/base/omapi/aidl/vts/functional/omapi/
DVtsHalOmapiSeServiceV1_TargetTest.cpp55 std::vector<uint8_t> aid, std::vector<uint8_t>& selectResponse) { in testSelectableAid()
88 std::vector<uint8_t> aid) { in testNonSelectableAid()
117 bool verifyBerTlvData(std::vector<uint8_t> tlv) { in verifyBerTlvData()
143 std::vector<uint8_t> apdu, std::vector<uint8_t>& transmitResponse) { in internalTransmitApdu()
147 std::vector<uint8_t> selectResponse = {}; in internalTransmitApdu()
205 std::vector<std::string> readers = {}; in SetUp()
253 std::vector<uint8_t> SELECTABLE_AID = {0xA0, 0x00, 0x00, 0x04, 0x76, 0x41, 0x6E, 0x64,
255 std::vector<uint8_t> LONG_SELECT_RESPONSE_AID = {0xA0, 0x00, 0x00, 0x04, 0x76, 0x41,
258 std::vector<uint8_t> NON_SELECTABLE_AID = {0xA0, 0x00, 0x00, 0x04, 0x76, 0x41, 0x6E, 0x64,
261 std::vector<std::vector<uint8_t>> ILLEGAL_COMMANDS_TRANSMIT = {
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DTypeConvert.h33 template<typename T> const hidl_vec<T> toHidlVec(const std::vector<T> &vec) { in toHidlVec()
39 template<typename T> hidl_vec<T> toHidlVec(std::vector<T> &vec) { in toHidlVec()
45 template<typename T> const std::vector<T> toVector(const hidl_vec<T> &hVec) { in toVector()
46 std::vector<T> vec; in toVector()
48 return *const_cast<const std::vector<T> *>(&vec); in toVector()
51 template<typename T> std::vector<T> toVector(hidl_vec<T> &hVec) { in toVector()
52 std::vector<T> vec; in toVector()
57 template<typename T, size_t SIZE> const std::vector<T> toVector( in toVector()
59 std::vector<T> vec; in toVector()
64 template<typename T, size_t SIZE> std::vector<T> toVector( in toVector()
[all …]
/frameworks/minikin/include/minikin/
DLayoutCore.h51 const std::vector<uint8_t>& fontIndices() const { return mFontIndices; } in fontIndices()
52 const std::vector<uint32_t>& glyphIds() const { return mGlyphIds; } in glyphIds()
53 const std::vector<Point>& points() const { return mPoints; } in points()
54 const std::vector<float>& advances() const { return mAdvances; } in advances()
57 const std::vector<FakedFont>& fonts() const { return mFonts; } in fonts()
74 std::vector<uint8_t> mFontIndices; // per glyph
75 std::vector<uint32_t> mGlyphIds; // per glyph
76 std::vector<Point> mPoints; // per glyph
78 std::vector<float> mAdvances; // per code units
83 std::vector<FakedFont> mFonts;

12345678910>>...77