/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 const std::optional<std::vector<std::optional<std::string>>>& uuids, 49 const std::optional<std::vector<std::optional<std::string>>>& packageNames, 50 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, 51 const std::vector<std::string>& seInfos, const std::vector<int32_t>& targetSdkVersions, 53 binder::Status createAppData(const std::optional<std::string>& uuid, 54 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 55 const std::string& seInfo, int32_t targetSdkVersion, int64_t* _aidl_return); 56 binder::Status restoreconAppData(const std::optional<std::string>& uuid, [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); 50 std::string create_data_app_package_path(const char* volume_uuid, const char* package_name); 52 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid); 53 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid); 55 std::string create_data_user_ce_package_path(const char* volume_uuid, 57 std::string create_data_user_ce_package_path(const char* volume_uuid, 59 std::string create_data_user_de_package_path(const char* volume_uuid, 61 std::string create_data_user_ce_package_path_as_user_link( 64 std::string create_data_misc_ce_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 | 28 std::string decodeStandard(android_dataspace dataspace) { in decodeStandard() 32 return std::string("BT709"); in decodeStandard() 35 return std::string("BT601_625"); in decodeStandard() 38 return std::string("BT601_625_UNADJUSTED"); in decodeStandard() 41 return std::string("BT601_525"); in decodeStandard() 44 return std::string("BT601_525_UNADJUSTED"); in decodeStandard() 47 return std::string("BT2020"); in decodeStandard() 50 return std::string("BT2020 (constant luminance)"); in decodeStandard() 53 return std::string("BT470M"); in decodeStandard() 56 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/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/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/native/include/binder/ |
D | Parcel.h | 123 status_t writeString16(const std::optional<String16>& str); 124 status_t writeString16(const std::unique_ptr<String16>& str); 134 status_t writeUtf8AsUtf16(const std::string& str); 135 status_t writeUtf8AsUtf16(const std::optional<std::string>& str); 136 status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str); 138 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val); 139 status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val); 140 status_t writeByteVector(const std::vector<int8_t>& val); 141 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val); 142 status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val); [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Parcel.h | 123 status_t writeString16(const std::optional<String16>& str); 124 status_t writeString16(const std::unique_ptr<String16>& str); 134 status_t writeUtf8AsUtf16(const std::string& str); 135 status_t writeUtf8AsUtf16(const std::optional<std::string>& str); 136 status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str); 138 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val); 139 status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val); 140 status_t writeByteVector(const std::vector<int8_t>& val); 141 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val); 142 status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val); [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/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/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/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/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestProperties.h | 75 virtual std::string dump() const = 0; 86 const std::vector<T>& completeList, const std::vector<T>& basicList, in Hwc2TestProperty() 87 const std::vector<T>& defaultList, in Hwc2TestProperty() 88 const std::array<bool, 6>& compositionSupport) in Hwc2TestProperty() 93 Hwc2TestProperty(const std::vector<T>& list, in Hwc2TestProperty() 94 const std::array<bool, 6>& compositionSupport) in Hwc2TestProperty() 129 const std::vector<T>& mList; 132 const std::array<bool, 6>& mCompositionSupport; 143 std::string dump() const override; 153 const std::vector<float>& mScalars; [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Store.cpp | 47 std::shared_ptr<C2ComponentStore> GetPreferredCodec2ComponentStore(); 62 id_t id, std::shared_ptr<C2Allocator> *const allocator) override; 64 virtual std::vector<std::shared_ptr<const C2Allocator::Traits>> listAllocators_nb() in listAllocators_nb() 66 return std::vector<std::shared_ptr<const C2Allocator::Traits>>(); /// \todo in listAllocators_nb() 73 void setComponentStore(std::shared_ptr<C2ComponentStore> store); 79 std::shared_ptr<C2Allocator> fetchIonAllocator(); 82 std::shared_ptr<C2Allocator> fetchGrallocAllocator(); 85 std::shared_ptr<C2Allocator> fetchBufferQueueAllocator(); 88 std::mutex _mComponentStoreSetLock; // protects the entire updating _mComponentStore and its 90 std::mutex _mComponentStoreReadLock; // must protect only read/write of _mComponentStore [all …]
|
/frameworks/native/libs/binder/ndk/include_cpp/android/ |
D | binder_parcel_utils.h | 45 std::vector<T>* vec = static_cast<std::vector<T>*>(vectorData); in AParcel_stdVectorAllocator() 59 std::optional<std::vector<T>>* vec = static_cast<std::optional<std::vector<T>>*>(vectorData); in AParcel_nullableStdVectorAllocator() 62 *vec = std::nullopt; in AParcel_nullableStdVectorAllocator() 66 *vec = std::optional<std::vector<T>>(std::vector<T>{}); in AParcel_nullableStdVectorAllocator() 90 std::vector<T>* vec = static_cast<std::vector<T>*>(vectorData); in AParcel_stdVectorExternalAllocator() 110 std::optional<std::vector<T>>* vec = static_cast<std::optional<std::vector<T>>*>(vectorData); in AParcel_nullableStdVectorExternalAllocator() 113 *vec = std::nullopt; in AParcel_nullableStdVectorExternalAllocator() 117 *vec = std::optional<std::vector<T>>(std::vector<T>{}); in AParcel_nullableStdVectorExternalAllocator() 131 const std::vector<T>* vec = static_cast<const std::vector<T>*>(vectorData); in AParcel_stdVectorGetter() 141 std::vector<T>* vec = static_cast<std::vector<T>*>(vectorData); in AParcel_stdVectorSetter() [all …]
|
/frameworks/ml/nn/runtime/ |
D | ExecutionPlan.h | 89 typedef std::pair<uint32_t, uint32_t> SourceOperandIndex; 105 std::vector<const ModelBuilder*> mModels; 111 typedef std::vector<std::pair<uint32_t, uint32_t>> RemapVectorType; 112 typedef std::set<std::pair<uint32_t, uint32_t>> StepModelOutputSetType; 117 std::shared_ptr<Device> device); 130 const std::vector<uint32_t>& getInputIndexStepModelToMainModel() const { in getInputIndexStepModelToMainModel() 133 const std::vector<uint32_t>& getOutputIndexStepModelToMainModel() const { in getOutputIndexStepModelToMainModel() 136 const std::vector<uint32_t>& getOutputsAsStepModelInputsIndexToMainModel() const { in getOutputsAsStepModelInputsIndexToMainModel() 151 std::shared_ptr<Device> getDevice() const { return mDevice; } in getDevice() 154 std::shared_ptr<PreparedModel> getPreparedStepModel() const { return mPreparedStepModel; } in getPreparedStepModel() [all …]
|
/frameworks/native/cmds/idlcli/ |
D | utils.h | 37 inline std::istream &operator>>(std::istream &stream, T &out) { 40 auto min = +std::numeric_limits<T>::min(); 41 auto max = +std::numeric_limits<T>::max(); 48 stream.setstate(std::ios_base::failbit); 58 inline std::istream &operator>>(std::istream &stream, int8_t &out) { 63 inline std::istream &operator>>(std::istream &stream, uint8_t &out) { 70 inline std::istream &operator>>(std::istream &stream, T &out) { 74 std::underlying_type_t<T> in; 81 if (tmp < *validRange.begin() || tmp > *std::prev(validRange.end())) { 83 stream.setstate(std::ios_base::failbit); [all …]
|
/frameworks/av/media/codec2/components/base/include/ |
D | SimpleC2Interface.h | 35 SimpleC2Interface(const char *name, c2_node_id_t id, const std::shared_ptr<T> &impl) in SimpleC2Interface() 47 const std::vector<C2Param*> &stackParams, in query_vb() 48 const std::vector<C2Param::Index> &heapParamIndices, in query_vb() 50 std::vector<std::unique_ptr<C2Param>>* const heapParams) const override { in query_vb() 54 const std::vector<C2Param*> ¶ms, in config_vb() 56 std::vector<std::unique_ptr<C2SettingResult>>* const failures) override { in config_vb() 62 std::vector<std::shared_ptr<C2ParamDescriptor>> * const params) const override { in querySupportedParams_nb() 66 std::vector<C2FieldSupportedValuesQuery> &fields, in querySupportedValues_vb() 74 const std::shared_ptr<T> mImpl; 88 const std::shared_ptr<C2ReflectorHelper> &helper, [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/compile/slang/ |
D | slang_rs_reflection.h | 54 std::string mPackageName; 58 std::string mRSPackageName; 62 std::string mOutputBaseDirectory; 66 std::string mOutputDirectory; 69 std::string mRSSourceFileName; 71 std::string mBitCodeFileName; 75 std::string mResourceId; 78 std::string mScriptClassName; 81 std::string mClassName; 84 std::string mItemSizeof; [all …]
|
/frameworks/base/libs/hwui/thread/ |
D | WorkQueue.h | 51 WorkItem(nsecs_t runAt, std::function<void()>&& work) in WorkItem() 52 : runAt(runAt), work(std::move(work)) {} in WorkItem() 55 std::function<void()> work; 59 WorkQueue(std::function<void()>&& wakeFunc, std::mutex& lock) in WorkQueue() 64 std::vector<WorkItem> toProcess; in process() 66 std::unique_lock _lock{mLock}; in process() 68 toProcess = std::move(mWorkQueue); in process() 69 auto moveBack = find_if(std::begin(toProcess), std::end(toProcess), in process() 71 if (moveBack != std::end(toProcess)) { in process() 72 mWorkQueue.reserve(std::distance(moveBack, std::end(toProcess)) + 5); in process() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.h | 49 std::unordered_map<int64_t, int>& logTrackerMap, 50 std::vector<sp<LogMatchingTracker>>& allAtomMatchers, 51 std::set<int>& allTagIds); 64 const std::unordered_map<int64_t, int>& logTrackerMap, 65 std::unordered_map<int64_t, int>& conditionTrackerMap, 66 std::vector<sp<ConditionTracker>>& allConditionTrackers, 67 std::unordered_map<int, std::vector<int>>& trackerToConditionMap, 68 std::unordered_map<int, std::vector<MetricConditionLink>>& eventConditionLinks); 85 const std::unordered_map<int64_t, int>& logTrackerMap, 86 const std::unordered_map<int64_t, int>& conditionTrackerMap, [all …]
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraProviderManager.h | 76 const std::string &serviceName, 80 const std::string &serviceName) = 0; 89 const std::string &serviceName, in registerForNotifications() 96 const std::string &serviceName) override { in getService() 140 std::vector<std::string> getCameraDeviceIds() const; 148 std::vector<std::string> getAPI1CompatibleCameraDeviceIds() const; 153 bool isValidDevice(const std::string &id, uint16_t majorVersion) const; 159 bool hasFlashUnit(const std::string &id) const; 164 status_t getResourceCost(const std::string &id, 170 status_t getCameraInfo(const std::string &id, [all …]
|