/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 …]
|
D | Utilities.h | 25 std::string capitalize(const std::string& source); 28 void trimSpaces(std::string* s); 31 std::string stringReplace(std::string s, std::string match, std::string rep); 34 bool charRemoved(char c, std::string* s); 37 std::string stripHtml(const std::string& html); 40 std::string hashString(const std::string& s); 43 bool testAndSet(const std::string& flag, std::set<std::string>* set); 53 std::string makeAttributeTag(const std::string& userAttribute, 54 … const std::string& additionalAttribute, unsigned int deprecatedApiLevel, 55 const std::string& deprecatedMessage); [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 43 binder::Status createUserData(const std::unique_ptr<std::string>& uuid, int32_t userId, 45 binder::Status destroyUserData(const std::unique_ptr<std::string>& uuid, int32_t userId, 48 binder::Status createAppData(const std::unique_ptr<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); 51 binder::Status restoreconAppData(const std::unique_ptr<std::string>& uuid, 52 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 53 const std::string& seInfo); 54 binder::Status migrateAppData(const std::unique_ptr<std::string>& uuid, 55 const std::string& packageName, int32_t userId, int32_t flags); [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/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/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 | 37 static std::vector<std::string> getDefaultSearchDirs() { in getDefaultSearchDirs() 40 static std::vector<std::string> getDefaultXmlNames() { in getDefaultXmlNames() 49 typedef std::pair<std::string, std::string> Attribute; 50 typedef std::map<std::string, std::string> AttributeMap; 52 typedef std::pair<std::string, AttributeMap> Type; 53 typedef std::map<std::string, AttributeMap> TypeMap; 55 typedef std::set<std::string> StringSet; 67 std::vector<std::string> aliases; ///< Name aliases for this codec 68 std::string rank; ///< Rank of this codec. This is a numeric string. 71 typedef std::pair<std::string, CodecProperties> Codec; [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/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/av/media/codec2/vndk/ |
D | C2Store.cpp | 43 std::shared_ptr<C2ComponentStore> GetPreferredCodec2ComponentStore(); 58 id_t id, std::shared_ptr<C2Allocator> *const allocator) override; 60 virtual std::vector<std::shared_ptr<const C2Allocator::Traits>> listAllocators_nb() in listAllocators_nb() 62 return std::vector<std::shared_ptr<const C2Allocator::Traits>>(); /// \todo in listAllocators_nb() 69 void setComponentStore(std::shared_ptr<C2ComponentStore> store); 75 std::shared_ptr<C2Allocator> fetchIonAllocator(); 78 std::shared_ptr<C2Allocator> fetchGrallocAllocator(); 81 std::shared_ptr<C2Allocator> fetchBufferQueueAllocator(); 84 std::mutex _mComponentStoreSetLock; // protects the entire updating _mComponentStore and its 86 std::mutex _mComponentStoreReadLock; // must protect only read/write of _mComponentStore [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | arenastring.h | 57 inline void Set(const ::std::string* default_value, in Set() 58 const ::std::string& value, ::google::protobuf::Arena* arena) { in Set() 67 inline const ::std::string& Get(const ::std::string* /* default_value */) const { in Get() 71 inline ::std::string* Mutable(const ::std::string* default_value, in Mutable() 83 inline ::std::string* Release(const ::std::string* default_value, in Release() 88 ::std::string* released = NULL; in Release() 91 released = new ::std::string(*ptr_); in Release() 95 ptr_ = const_cast< ::std::string* >(default_value); in Release() 104 inline ::std::string* UnsafeArenaRelease(const ::std::string* default_value, in UnsafeArenaRelease() 109 ::std::string* released = ptr_; in UnsafeArenaRelease() [all …]
|
/frameworks/native/libs/binder/ndk/include_ndk/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/opt/gamesdk/src/swappy/ |
D | Swappy.h | 47 using namespace std::chrono_literals; 57 std::chrono::nanoseconds refreshPeriod, 58 std::chrono::nanoseconds appOffset, 59 std::chrono::nanoseconds sfOffset, 69 std::chrono::nanoseconds refreshPeriod, 70 std::chrono::nanoseconds appOffset, 71 std::chrono::nanoseconds sfOffset); 95 FrameDuration(std::chrono::nanoseconds cpuTime, std::chrono::nanoseconds gpuTime) : in FrameDuration() 97 mCpuTime = std::min(mCpuTime, MAX_DURATION); in FrameDuration() 98 mGpuTime = std::min(mGpuTime, MAX_DURATION); in FrameDuration() [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/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/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/ml/nn/common/include/ |
D | ExecutionBurstController.h | 51 std::vector<FmqRequestDatum> serialize(const Request& request, MeasureTiming measure, 52 const std::vector<int32_t>& slots); 63 std::optional<std::tuple<ErrorStatus, std::vector<OutputShape>, Timing>> deserialize( 64 const std::vector<FmqResultDatum>& data); 92 static std::pair<std::unique_ptr<ResultChannelReceiver>, const FmqResultDescriptor*> create( 105 std::optional<std::tuple<ErrorStatus, std::vector<OutputShape>, Timing>> getBlocking(); 114 std::optional<std::vector<FmqResultDatum>> getPacketBlocking(); 116 ResultChannelReceiver(std::unique_ptr<FmqResultChannel> fmqResultChannel, bool blocking); 119 const std::unique_ptr<FmqResultChannel> mFmqResultChannel; 120 std::atomic<bool> mValid{true}; [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/cmds/statsd/src/metrics/ |
D | metrics_manager_util.h | 50 std::unordered_map<int64_t, int>& logTrackerMap, 51 std::vector<sp<LogMatchingTracker>>& allAtomMatchers, 52 std::set<int>& allTagIds); 65 const std::unordered_map<int64_t, int>& logTrackerMap, 66 std::unordered_map<int64_t, int>& conditionTrackerMap, 67 std::vector<sp<ConditionTracker>>& allConditionTrackers, 68 std::unordered_map<int, std::vector<int>>& trackerToConditionMap, 69 std::unordered_map<int, std::vector<MetricConditionLink>>& eventConditionLinks); 86 const std::unordered_map<int64_t, int>& logTrackerMap, 87 const std::unordered_map<int64_t, int>& conditionTrackerMap, [all …]
|
/frameworks/ml/nn/runtime/test/generated/vts_models/ |
D | cast.model.cpp | 5 const std::vector<Operand> operands = { in createTestModel() 26 const std::vector<Operation> operations = { in createTestModel() 34 const std::vector<uint32_t> inputIndexes = {0}; in createTestModel() 35 const std::vector<uint32_t> outputIndexes = {1}; in createTestModel() 36 std::vector<uint8_t> operandValues = {}; in createTestModel() 37 const std::vector<hidl_memory> pools = {}; in createTestModel() 50 static std::set<int> ignore = {}; in is_ignored() 56 const std::vector<Operand> operands = { in createTestModel_dynamic_output_shape() 77 const std::vector<Operation> operations = { in createTestModel_dynamic_output_shape() 85 const std::vector<uint32_t> inputIndexes = {0}; in createTestModel_dynamic_output_shape() [all …]
|