/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 43 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId, 45 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId, 48 binder::Status createAppData(const std::optional<std::string>& uuid, 49 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 50 const std::string& seInfo, int32_t targetSdkVersion, int64_t* _aidl_return); 56 const std::vector<android::os::CreateAppDataArgs>& args, 57 std::vector<android::os::CreateAppDataResult>* _aidl_return); 59 binder::Status restoreconAppData(const std::optional<std::string>& uuid, 60 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 61 const std::string& seInfo); [all …]
|
D | utils.h | 47 std::string create_data_path(const char* volume_uuid); 49 std::string create_data_app_path(const char* volume_uuid); 51 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid); 52 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid); 54 std::string create_data_user_ce_package_path(const char* volume_uuid, 56 std::string create_data_user_ce_package_path(const char* volume_uuid, 58 std::string create_data_user_de_package_path(const char* volume_uuid, 60 std::string create_data_user_ce_package_path_as_user_link( 63 std::string create_data_misc_ce_rollback_base_path(const char* volume_uuid, userid_t user); 64 std::string create_data_misc_de_rollback_base_path(const char* volume_uuid, userid_t user); [all …]
|
/frameworks/rs/script_api/ |
D | Specification.h | 62 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/ |
D | DebugUtils.cpp | 30 std::string decodeStandard(android_dataspace dataspace) { in decodeStandard() 34 return std::string("BT709"); in decodeStandard() 37 return std::string("BT601_625"); in decodeStandard() 40 return std::string("BT601_625_UNADJUSTED"); in decodeStandard() 43 return std::string("BT601_525"); in decodeStandard() 46 return std::string("BT601_525_UNADJUSTED"); in decodeStandard() 49 return std::string("BT2020"); in decodeStandard() 52 return std::string("BT2020 (constant luminance)"); in decodeStandard() 55 return std::string("BT470M"); in decodeStandard() 58 return std::string("FILM"); in decodeStandard() [all …]
|
/frameworks/native/services/vr/bufferhubd/ |
D | buffer_hub.cpp | 36 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/minikin/include/minikin/ |
D | SystemFonts.h | 33 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection() 37 static void registerFallback(const std::string& familyName, in registerFallback() 38 const std::shared_ptr<FontCollection>& fc) { in registerFallback() 42 static void registerDefault(const std::shared_ptr<FontCollection>& fc) { in registerDefault() 46 using FontMapDeleter = std::function<void()>; 48 static void addFontMap(std::shared_ptr<FontCollection>&& collections) { in addFontMap() 49 return getInstance().addFontMapInternal(std::move(collections)); in addFontMap() 54 std::function<void(const std::vector<std::shared_ptr<FontCollection>>&)> func) { in getFontMap() 58 static void getFontSet(std::function<void(const std::vector<std::shared_ptr<Font>>&)> func) { in getFontSet() 67 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName); [all …]
|
/frameworks/base/cmds/incident_helper/src/ |
D | ih_util.h | 29 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/ |
D | path.h | 29 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/base/libs/androidfw/include/androidfw/ |
D | AssetsProvider.h | 42 std::unique_ptr<Asset> Open(const std::string& path, 48 virtual bool ForEachFile(const std::string& path, 49 const std::function<void(const StringPiece&, FileType)>& f) const = 0; 53 WARN_UNUSED virtual std::optional<std::string_view> GetPath() const = 0; 57 WARN_UNUSED virtual const std::string& GetDebugName() const = 0; 63 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); 70 static std::unique_ptr<Asset> CreateAssetFromFd(base::unique_fd fd, 77 virtual std::unique_ptr<Asset> OpenInternal(const std::string& path, Asset::AccessMode mode, 83 static std::unique_ptr<ZipAssetsProvider> Create(std::string path, 86 static std::unique_ptr<ZipAssetsProvider> Create(base::unique_fd fd, [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | variant_tests.cpp | 33 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 …]
|
D | encoder_performance_test.cpp | 18 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/av/media/codec2/vndk/util/ |
D | C2Debug.cpp | 68 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/native/libs/vr/libpdx_uds/ |
D | remote_method_tests.cpp | 40 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/libstagefright/xmlparser/include/media/stagefright/xmlparser/ |
D | MediaCodecsXmlParser.h | 38 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/av/media/codec2/hidl/1.0/vts/functional/common/ |
D | media_c2_hidl_test_common.h | 41 using namespace ::std::chrono; 43 using TestParameters = std::tuple<std::string, std::string>; 44 static std::vector<TestParameters> gTestParameters; 47 extern std::string sResourceDir; 50 extern std::string sComponentNamePrefix; 59 static inline std::string PrintInstanceTupleNameToString( in PrintInstanceTupleNameToString() 60 const testing::TestParamInfo<std::tuple<T...>>& info) { in PrintInstanceTupleNameToString() 61 std::stringstream ss; in PrintInstanceTupleNameToString() 62 std::apply([&ss](auto&&... elems) { ((ss << elems << '_'), ...); }, info.param); in PrintInstanceTupleNameToString() 64 std::string param_string = ss.str(); in PrintInstanceTupleNameToString() [all …]
|
/frameworks/native/include/binder/ |
D | Parcel.h | 150 status_t writeString16(const std::optional<String16>& str); 151 …status_t writeString16(const std::unique_ptr<String16>& str) __attribute__((deprecated(… 161 status_t writeUtf8AsUtf16(const std::string& str); 162 status_t writeUtf8AsUtf16(const std::optional<std::string>& str); 163 …status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str) __attribute__((depre… 165 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val); 166 …status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) __attribute__… 167 status_t writeByteVector(const std::vector<int8_t>& val); 168 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val); 169 …status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) __attribute_… [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Parcel.h | 150 status_t writeString16(const std::optional<String16>& str); 151 …status_t writeString16(const std::unique_ptr<String16>& str) __attribute__((deprecated(… 161 status_t writeUtf8AsUtf16(const std::string& str); 162 status_t writeUtf8AsUtf16(const std::optional<std::string>& str); 163 …status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str) __attribute__((depre… 165 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val); 166 …status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) __attribute__… 167 status_t writeByteVector(const std::vector<int8_t>& val); 168 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val); 169 …status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) __attribute_… [all …]
|
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.h | 27 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/services/mediametrics/ |
D | AudioTypes.cpp | 23 const std::unordered_map<std::string, int32_t>& getAudioCallerNameMap() { in getAudioCallerNameMap() 26 static std::unordered_map<std::string, int32_t> map{ in getAudioCallerNameMap() 46 const std::unordered_map<std::string, int64_t>& getAudioDeviceInMap() { in getAudioDeviceInMap() 48 static std::unordered_map<std::string, int64_t> map{ in getAudioDeviceInMap() 91 const std::unordered_map<std::string, int64_t>& getAudioDeviceOutMap() { in getAudioDeviceOutMap() 93 static std::unordered_map<std::string, int64_t> map{ in getAudioDeviceOutMap() 133 const std::unordered_map<std::string, int32_t>& getAudioThreadTypeMap() { in getAudioThreadTypeMap() 136 static std::unordered_map<std::string, int32_t> map{ in getAudioThreadTypeMap() 150 const std::unordered_map<std::string, int32_t>& getAudioTrackTraitsMap() { in getAudioTrackTraitsMap() 152 static std::unordered_map<std::string, int32_t> map{ in getAudioTrackTraitsMap() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 29 ApkAssets::ApkAssets(std::unique_ptr<Asset> resources_asset, in ApkAssets() 30 std::unique_ptr<LoadedArsc> loaded_arsc, in ApkAssets() 31 std::unique_ptr<AssetsProvider> assets, in ApkAssets() 33 std::unique_ptr<Asset> idmap_asset, in ApkAssets() 34 std::unique_ptr<LoadedIdmap> loaded_idmap) in ApkAssets() 35 : resources_asset_(std::move(resources_asset)), in ApkAssets() 36 loaded_arsc_(std::move(loaded_arsc)), in ApkAssets() 37 assets_provider_(std::move(assets)), in ApkAssets() 39 idmap_asset_(std::move(idmap_asset)), in ApkAssets() 40 loaded_idmap_(std::move(loaded_idmap)) {} in ApkAssets() [all …]
|
/frameworks/native/libs/vr/libpdx_default_transport/ |
D | pdx_benchmarks.cpp | 61 std::string GetServicePath(const std::string& path, int instance_id) { in GetServicePath() 62 return path + std::to_string(instance_id); in GetServicePath() 65 void SetThreadName(const std::string& name) { in SetThreadName() 90 const std::string stats_path = in Update() 91 "/proc/" + std::to_string(task_id_) + "/schedstat"; in Update() 93 std::string line; in Update() 95 std::vector<std::string> stats = base::SplitString( in Update() 102 uint64_t current_cpu_time_ns = std::stoull(stats[0]); in Update() 103 uint64_t current_wait_ns = std::stoull(stats[1]); in Update() 104 uint64_t current_timeslices = std::stoull(stats[2]); in Update() [all …]
|
/frameworks/native/include/ftl/ |
D | static_vector.h | 75 template <typename T, std::size_t N> 90 template <typename I, typename Traits = std::iterator_traits<I>> 92 std::conjunction<std::is_base_of<std::input_iterator_tag, typename Traits::iterator_category>, 93 std::negation<std::is_constructible<T, I>>>; 120 template <typename U, std::size_t M, typename = std::enable_if_t<M <= N>> 125 template <typename U, std::size_t M> 127 : StaticVector(kIteratorRange, std::begin(array), std::end(array)) {} in StaticVector() 133 template <typename Iterator, typename = std::enable_if_t<is_input_iterator<Iterator>{}>> 135 using V = typename std::iterator_traits<Iterator>::value_type; in StaticVector() 136 static_assert(std::is_constructible_v<value_type, V>, "Incompatible iterator range"); in StaticVector() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Store.cpp | 50 std::shared_ptr<C2ComponentStore> GetPreferredCodec2ComponentStore(); 65 id_t id, std::shared_ptr<C2Allocator> *const allocator) override; 67 virtual std::vector<std::shared_ptr<const C2Allocator::Traits>> listAllocators_nb() in listAllocators_nb() 69 return std::vector<std::shared_ptr<const C2Allocator::Traits>>(); /// \todo in listAllocators_nb() 76 void setComponentStore(std::shared_ptr<C2ComponentStore> store); 82 std::shared_ptr<C2Allocator> fetchBlobAllocator(); 85 std::shared_ptr<C2Allocator> fetchIonAllocator(); 86 std::shared_ptr<C2Allocator> fetchDmaBufAllocator(); 89 std::shared_ptr<C2Allocator> fetchGrallocAllocator(); 92 std::shared_ptr<C2Allocator> fetchBufferQueueAllocator(); [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | CommandLineOptions.h | 36 static std::unique_ptr<std::vector<std::string>> ConvertArgvToVector(int argc, const char** argv); 38 explicit CommandLineOptions(const std::string& name) : name_(name) { in CommandLineOptions() 41 CommandLineOptions& OptionalFlag(const std::string& name, const std::string& description, 43 CommandLineOptions& MandatoryOption(const std::string& name, const std::string& description, 44 std::string* value); 45 CommandLineOptions& MandatoryOption(const std::string& name, const std::string& description, 46 std::vector<std::string>* value); 47 CommandLineOptions& OptionalOption(const std::string& name, const std::string& description, 48 std::string* value); 49 CommandLineOptions& OptionalOption(const std::string& name, const std::string& description, [all …]
|
/frameworks/native/libs/graphicsenv/include/graphicsenv/ |
D | GraphicsEnv.h | 58 void setDriverPathAndSphalLibraries(const std::string path, const std::string sphalLibraries); 61 std::string getDriverPath() const; 69 void setGpuStats(const std::string& driverPackageName, const std::string& driverVersionName, 71 const std::string& appPackageName, const int32_t vulkanVersion); 91 bool shouldUseAngle(std::string appName); 99 void setAngleInfo(const std::string path, const std::string appName, std::string devOptIn, 100 const std::vector<std::string> eglFeatures, const int rulesFd, 105 std::string& getAngleAppName(); 107 const std::vector<std::string>& getAngleEglFeatures(); 113 void setLayerPaths(NativeLoaderNamespace* appNamespace, const std::string layerPaths); [all …]
|