Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 3951) sorted by relevance

12345678910>>...159

/frameworks/native/cmds/installd/
DInstalldNativeService.h62 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId,
64 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId,
67 binder::Status createAppData(const std::optional<std::string>& uuid,
68 const std::string& packageName, int32_t userId, int32_t flags,
69 int32_t appId, int32_t previousAppId, const std::string& seInfo,
77 const std::vector<android::os::CreateAppDataArgs>& args,
78 std::vector<android::os::CreateAppDataResult>* _aidl_return);
82 binder::Status restoreconAppData(const std::optional<std::string>& uuid,
83 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId,
84 const std::string& seInfo);
[all …]
Dutils.h49 std::string create_data_path(const char* volume_uuid);
51 std::string create_data_app_path(const char* volume_uuid);
53 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid);
54 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid);
56 std::string create_data_user_ce_package_path(const char* volume_uuid,
58 std::string create_data_user_ce_package_path(const char* volume_uuid,
60 std::string create_data_user_de_package_path(const char* volume_uuid,
62 std::string create_data_user_ce_package_path_as_user_link(
65 std::string create_data_misc_sdk_sandbox_path(const char* volume_uuid, bool isCeData,
67 std::string create_data_misc_sdk_sandbox_package_path(const char* volume_uuid, bool isCeData,
[all …]
/frameworks/rs/script_api/
DSpecification.h62 std::string type;
63 std::string name;
71 std::string testOption;
72 std::string documentation;
80 std::string rsType; // The Renderscript type, e.g. "uint3"
81 std::string rsBaseType; // As above but without the number, e.g. "uint"
82 std::string javaBaseType; // The type we need to declare in Java, e.g. "unsigned int"
83 std::string specType; // The type found in the spec, e.g. "f16"
88 std::string mVectorSize;
92 std::string vectorWidth;
[all …]
/frameworks/native/libs/ui/
DDebugUtils.cpp29 std::string decodeStandardOnly(uint32_t dataspaceStandard) { in decodeStandardOnly()
32 return std::string("BT709"); in decodeStandardOnly()
35 return std::string("BT601_625"); in decodeStandardOnly()
38 return std::string("BT601_625_UNADJUSTED"); in decodeStandardOnly()
41 return std::string("BT601_525"); in decodeStandardOnly()
44 return std::string("BT601_525_UNADJUSTED"); in decodeStandardOnly()
47 return std::string("BT2020"); in decodeStandardOnly()
50 return std::string("BT2020 (constant luminance)"); in decodeStandardOnly()
53 return std::string("BT470M"); in decodeStandardOnly()
56 return std::string("FILM"); in decodeStandardOnly()
[all …]
/frameworks/av/media/utils/
DMethodStatistics.cpp25 std::shared_ptr<std::vector<std::string>>
26 getStatisticsClassesForModule(std::string_view moduleName) { in getStatisticsClassesForModule()
27 static const std::map<std::string, std::shared_ptr<std::vector<std::string>>, in getStatisticsClassesForModule()
28 std::less<> /* transparent comparator */> m { in getStatisticsClassesForModule()
31 std::shared_ptr<std::vector<std::string>>( in getStatisticsClassesForModule()
32 new std::vector<std::string>{ in getStatisticsClassesForModule()
41 std::shared_ptr<std::vector<std::string>>( in getStatisticsClassesForModule()
42 new std::vector<std::string>{ in getStatisticsClassesForModule()
54 static void addClassesToMap(const std::shared_ptr<std::vector<std::string>> &classNames, in addClassesToMap()
55 std::map<std::string, std::shared_ptr<MethodStatistics<std::string>>, in addClassesToMap()
[all …]
/frameworks/native/services/vr/bufferhubd/
Dbuffer_hub.cpp36 std::string BufferHubService::DumpState(size_t /*max_length*/) { in DumpState()
37 std::ostringstream stream; in DumpState()
40 std::sort(channels.begin(), channels.end(), in DumpState()
41 [](const std::shared_ptr<BufferHubChannel>& a, in DumpState()
42 const std::shared_ptr<BufferHubChannel>& b) { in DumpState()
47 stream << std::right; in DumpState()
48 stream << std::setw(6) << "Id"; in DumpState()
50 stream << std::setw(9) << "Consumers"; in DumpState()
52 stream << std::setw(14) << "Geometry"; in DumpState()
54 stream << std::setw(6) << "Format"; in DumpState()
[all …]
/frameworks/base/cmds/incident_helper/src/
Dih_util.h29 typedef std::vector<std::string> header_t;
30 typedef std::vector<std::string> record_t;
31 typedef std::string (*trans_func) (const std::string&);
33 const std::string DEFAULT_WHITESPACE = " \t";
34 const std::string DEFAULT_NEWLINE = "\r\n";
35 const std::string TAB_DELIMITER = "\t";
36 const std::string COMMA_DELIMITER = ",";
37 const std::string PIPE_DELIMITER = "|";
38 const std::string PARENTHESES_DELIMITER = "()";
44 std::string trim(const std::string& s, const std::string& charset);
[all …]
/frameworks/base/services/incremental/
Dpath.h29 CStrWrapper(std::string_view sv);
41 std::optional<std::string> mCopy;
44 void append_next_path(std::string& res, std::string_view c);
58 bool operator()(std::string_view l, std::string_view r) const;
66 inline details::CStrWrapper c_str(std::string_view sv) { in c_str()
70 std::string_view relativize(std::string_view parent, std::string_view nested);
71 inline std::string_view relativize(const char* parent, const char* nested) { in relativize()
72 return relativize(std::string_view(parent), std::string_view(nested)); in relativize()
74 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize()
75 return relativize(parent, std::string_view(nested)); in relativize()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.h65 std::vector<std::string> conflictingDevices;
143 const std::string &serviceName,
148 const std::string &serviceName) = 0;
151 const std::string &serviceName) = 0;
160 const std::string &serviceName, in registerForNotifications()
167 const std::string &serviceName) override { in tryGetService()
171 const std::string &serviceName) override { in getService()
183 virtual std::shared_ptr<aidl::android::hardware::camera::provider::ICameraProvider>
184 getService(const std::string& serviceName) = 0;
188 virtual std::shared_ptr<aidl::android::hardware::camera::provider::ICameraProvider>
[all …]
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp33 TestType(T&& value) : value_(std::move(value)) {} in TestType()
41 T&& take() { return std::move(value_); } in take()
53 InstrumentType(T&& value) : value_(std::move(value)) { constructor_count_++; } in InstrumentType()
57 InstrumentType(InstrumentType&& other) : value_(std::move(other.value_)) { in InstrumentType()
77 value_ = std::move(other.value_); in operator =()
92 static std::size_t constructor_count() { return constructor_count_; } in constructor_count()
93 static std::size_t destructor_count() { return destructor_count_; } in destructor_count()
94 static std::size_t move_assignment_count() { return move_assignment_count_; } in move_assignment_count()
95 static std::size_t copy_assignment_count() { return copy_assignment_count_; } in copy_assignment_count()
98 T&& take() { return std::move(value_); } in take()
[all …]
Dencoder_performance_test.cpp18 using std::placeholders::_1;
19 using std::placeholders::_2;
20 using std::placeholders::_3;
21 using std::placeholders::_4;
22 using std::placeholders::_5;
23 using std::placeholders::_6;
30 class CommaNumPunct : public std::numpunct<char> {
33 std::string do_grouping() const override { return "\03"; } in do_grouping()
56 std::advance(ConstCursor(), PointerDistance(new_start, &*ConstCursor())); in ConsumeReadBufferSectionData()
83 return {read_ptr_, std::end(buffer_)}; in GetNextReadBufferSection()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DAssetsProvider.h43 std::unique_ptr<Asset> Open(const std::string& path,
49 virtual bool ForEachFile(const std::string& path,
54 WARN_UNUSED virtual std::optional<std::string_view> GetPath() const = 0;
58 WARN_UNUSED virtual const std::string& GetDebugName() const = 0;
64 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path);
71 static std::unique_ptr<Asset> CreateAssetFromFd(base::unique_fd fd,
78 virtual std::unique_ptr<Asset> OpenInternal(const std::string& path, Asset::AccessMode mode,
84 static std::unique_ptr<ZipAssetsProvider> Create(std::string path, package_property_t flags,
87 static std::unique_ptr<ZipAssetsProvider> Create(base::unique_fd fd,
88 std::string friendly_name,
[all …]
/frameworks/minikin/include/minikin/
DSystemFonts.h34 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection()
38 static void registerFallback(const std::string& familyName, in registerFallback()
39 const std::shared_ptr<FontCollection>& fc) { in registerFallback()
43 static void registerDefault(const std::shared_ptr<FontCollection>& fc) { in registerDefault()
47 using FontMapDeleter = std::function<void()>;
49 static void addFontMap(std::shared_ptr<FontCollection>&& collections) { in addFontMap()
50 return getInstance().addFontMapInternal(std::move(collections)); in addFontMap()
54 static void getFontSet(std::function<void(const std::vector<std::shared_ptr<Font>>&)> func) { in getFontSet()
63 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName);
64 void registerFallbackInternal(const std::string& familyName, in registerFallbackInternal()
[all …]
/frameworks/av/media/codec2/vndk/util/
DC2Debug.cpp68 static std::string attribParamCoreIndex(const C2Param::CoreIndex &i) { in attribParamCoreIndex()
75 static std::string attribParamIndex( in attribParamIndex()
77 std::string v = StringPrintf("%c%c", in attribParamIndex()
98 std::ostream& operator<<(std::ostream& os, const C2Param::CoreIndex &i) { in operator <<()
102 std::ostream& operator<<(std::ostream& os, const C2Param::Type &i) { in operator <<()
107 std::ostream& operator<<(std::ostream& os, const C2Param::Index &i) { in operator <<()
112 static std::string attribFieldId(const _C2FieldId &i) { in attribFieldId()
119 std::ostream& operator<<(std::ostream& os, const _C2FieldId &i) { in operator <<()
124 std::ostream& operator<<(std::ostream& os, const C2FieldDescriptor &i) { in operator <<()
134 std::ostream& operator<<(std::ostream& os, const C2ParamField &i) { in operator <<()
[all …]
/frameworks/av/media/libstagefright/xmlparser/include/media/stagefright/xmlparser/
DMediaCodecsXmlParser.h38 static std::vector<std::string> getDefaultSearchDirs() { in getDefaultSearchDirs()
45 static std::vector<std::string> getDefaultXmlNames();
53 typedef std::pair<std::string, std::string> Attribute;
54 typedef std::map<std::string, std::string> AttributeMap;
56 typedef std::pair<std::string, AttributeMap> Type;
57 typedef std::map<std::string, AttributeMap> TypeMap;
59 typedef std::set<std::string> StringSet;
71 std::vector<std::string> aliases; ///< Name aliases for this codec
72 std::string rank; ///< Rank of this codec. This is a numeric string.
75 typedef std::pair<std::string, CodecProperties> Codec;
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dremote_method_tests.cpp40 std::string Rot13(const std::string& s) { in Rot13()
41 std::string text = s; in Rot13()
42 std::transform(std::begin(text), std::end(text), std::begin(text), in Rot13()
44 if (!std::isalpha(c)) { in Rot13()
47 const char pivot = std::isupper(c) ? 'A' : 'a'; in Rot13()
59 std::string c;
62 TestType(int a, float b, const std::string& c) : a(a), b(b), c(c) {} in TestType()
85 TestFdType(int a, LocalHandle fd) : a(a), fd(std::move(fd)) {} in TestFdType()
97 explicit TestTemplateType(FileHandleType fd) : fd(std::move(fd)) {} in TestTemplateType()
106 std::string c;
[all …]
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.h42 using namespace ::std::chrono;
44 using TestParameters = std::tuple<std::string, std::string>;
45 static std::vector<TestParameters> gTestParameters;
48 extern std::string sResourceDir;
51 extern std::string sComponentNamePrefix;
66 std::vector<C2AccessUnitInfosStruct> largeFrameInfo;
70 static inline std::string PrintInstanceTupleNameToString( in PrintInstanceTupleNameToString()
71 const testing::TestParamInfo<std::tuple<T...>>& info) { in PrintInstanceTupleNameToString()
72 std::stringstream ss; in PrintInstanceTupleNameToString()
73 std::apply([&ss](auto&&... elems) { ((ss << elems << '_'), ...); }, info.param); in PrintInstanceTupleNameToString()
[all …]
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dbinder.cpp105 std::vector<ParcelRead<::android::Parcel>> BINDER_PARCEL_READ_FUNCTIONS {
120 std::vector<uint8_t> bytes = provider.ConsumeBytes<uint8_t>(len); in __anonb0ef96d30202()
128 PARCEL_READ_NO_STATUS(std::vector<android::sp<android::IBinder>>, debugReadAllStrongBinders),
129 PARCEL_READ_NO_STATUS(std::vector<int>, debugReadAllFileDescriptors),
131 std::string interface = provider.ConsumeRandomLengthString(); in __anonb0ef96d30302()
148 std::vector<uint8_t> data(len); in __anonb0ef96d30502()
168 PARCEL_READ_WITH_STATUS(std::string, readUtf8FromUtf16),
169 PARCEL_READ_WITH_STATUS(std::unique_ptr<std::string>, readUtf8FromUtf16),
170 PARCEL_READ_WITH_STATUS(std::optional<std::string>, readUtf8FromUtf16),
181 std::string bytes = str ? HexString(str, sizeof(char) * (outLen + 1)) : "null"; in __anonb0ef96d30802()
[all …]
/frameworks/native/libs/binder/tests/
DbinderRpcWireProtocolTest.cpp43 static const std::vector<std::function<void(Parcel* p)>> kFillFuns {
83 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::string(""))); }, in __anon4b266a362802()
84 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::string("a"))); }, in __anon4b266a362902()
85 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::string("abab"))); }, in __anon4b266a362a02()
86 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::nullopt)); }, in __anon4b266a362b02()
87 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::optional<std::string>(""))); }, in __anon4b266a362c02()
88 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::optional<std::string>("a"))); }, in __anon4b266a362d02()
89 [](Parcel* p) { ASSERT_EQ(OK, p->writeUtf8AsUtf16(std::optional<std::string>("abab"))); }, in __anon4b266a362e02()
90 …[](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::optional<std::vector<int8_t>>(std::nullopt))… in __anon4b266a362f02()
91 …[](Parcel* p) { ASSERT_EQ(OK, p->writeByteVector(std::optional<std::vector<int8_t>>({-1, 0, 17})))… in __anon4b266a363002()
[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;
40 std::optional<concurrent_time_t> getUidConcurrentTimes(uint32_t uid, bool retry = true);
41 std::optional<std::unordered_map<uint32_t, concurrent_time_t>> getUidsConcurrentTimes();
42 std::optional<std::unordered_map<uint32_t, concurrent_time_t>>
[all …]
/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/av/media/codec2/vndk/
DC2Store.cpp54 std::shared_ptr<C2ComponentStore> GetPreferredCodec2ComponentStore();
69 id_t id, std::shared_ptr<C2Allocator> *const allocator) override;
71 virtual std::vector<std::shared_ptr<const C2Allocator::Traits>> listAllocators_nb() in listAllocators_nb()
73 return std::vector<std::shared_ptr<const C2Allocator::Traits>>(); /// \todo in listAllocators_nb()
80 void setComponentStore(std::shared_ptr<C2ComponentStore> store);
86 std::shared_ptr<C2Allocator> fetchBlobAllocator();
89 std::shared_ptr<C2Allocator> fetchIonAllocator();
90 std::shared_ptr<C2Allocator> fetchDmaBufAllocator();
93 std::shared_ptr<C2Allocator> fetchGrallocAllocator();
96 std::shared_ptr<C2Allocator> fetchBufferQueueAllocator();
[all …]
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_parcel_utils.h44 struct is_specialization : std::false_type {};
47 struct is_specialization<Ref<Args...>, Ref> : std::true_type {};
68 static inline constexpr bool is_interface_v = is_specialization_v<T, std::shared_ptr>&&
69 std::is_base_of_v<::ndk::ICInterface, first_template_type_t<T>>;
73 struct is_parcelable : std::false_type {};
77 T, std::void_t<decltype(std::declval<T>().readFromParcel(std::declval<const AParcel*>())),
78 decltype(std::declval<T>().writeToParcel(std::declval<AParcel*>()))>>
79 : std::true_type {};
87 (is_specialization_v<T, std::optional> ||
88 is_specialization_v<T, std::unique_ptr>);
[all …]
/frameworks/av/media/codec2/hal/common/include/codec2/common/
DMultiAccessUnitHelper.h38 const std::shared_ptr<C2ComponentInterface>& interface,
39 std::shared_ptr<C2ReflectorHelper> helper);
50 const std::shared_ptr<C2ComponentInterface> mC2ComponentIntf;
51 std::shared_ptr<C2LargeFrame::output> mLargeFrameParams;
53 std::set<C2Param::Index> mSupportedParamIndexSet;
54 std::vector<C2ParamField> mParamFields;
62 const std::shared_ptr<MultiAccessUnitInterface>& intf,
63 std::shared_ptr<C2BlockPool> &linearPool);
74 std::list<std::unique_ptr<C2Work>> &c2workItems,
75 std::list<std::list<std::unique_ptr<C2Work>>> * const processedWork);
[all …]
/frameworks/base/tools/aapt2/cmd/
DLink.h45 std::string output_path;
46 std::string manifest_path;
47 std::vector<std::string> include_paths;
48 std::vector<std::string> overlay_files;
49 std::vector<std::string> assets_dirs;
54 std::optional<std::string> rename_resources_package;
57 std::optional<std::string> generate_java_class_path;
58 std::optional<std::string> custom_java_package;
59 std::set<std::string> extra_java_packages;
60 std::optional<std::string> generate_text_symbols_path;
[all …]

12345678910>>...159