/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 | 54 std::string create_data_path(const char* volume_uuid); 56 std::string create_data_app_path(const char* volume_uuid); 57 std::string create_data_app_package_path(const char* volume_uuid, const char* package_name); 59 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid); 60 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid); 62 std::string create_data_user_ce_package_path(const char* volume_uuid, 64 std::string create_data_user_ce_package_path(const char* volume_uuid, 66 std::string create_data_user_de_package_path(const char* volume_uuid, 69 std::string create_data_media_path(const char* volume_uuid, userid_t userid); 70 std::string create_data_media_obb_path(const char* volume_uuid, const char* package_name); [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 …]
|
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/libs/vr/libpdx/ |
D | variant_tests.cpp | 28 TestType(T&& value) : value_(std::move(value)) {} in TestType() 36 T&& take() { return std::move(value_); } in take() 46 InstrumentType(T&& value) : value_(std::move(value)) { constructor_count_++; } in InstrumentType() 50 InstrumentType(InstrumentType&& other) : value_(std::move(other.value_)) { in InstrumentType() 68 value_ = std::move(other.value_); in operator =() 83 static std::size_t constructor_count() { return constructor_count_; } in constructor_count() 84 static std::size_t destructor_count() { return destructor_count_; } in destructor_count() 85 static std::size_t move_assignment_count() { return move_assignment_count_; } in move_assignment_count() 86 static std::size_t copy_assignment_count() { return copy_assignment_count_; } in copy_assignment_count() 89 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/native/libs/ui/ |
D | DebugUtils.cpp | 22 std::string decodeStandard(android_dataspace dataspace) { in decodeStandard() 26 return std::string("BT709"); in decodeStandard() 29 return std::string("BT601_625"); in decodeStandard() 32 return std::string("BT601_625_UNADJUSTED"); in decodeStandard() 35 return std::string("BT601_525"); in decodeStandard() 38 return std::string("BT601_525_UNADJUSTED"); in decodeStandard() 41 return std::string("BT2020"); in decodeStandard() 44 return std::string("BT2020 (constant luminance)"); in decodeStandard() 47 return std::string("BT470M"); in decodeStandard() 50 return std::string("FILM"); in decodeStandard() [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 TestTemplateType(FileHandleType fd) : fd(std::move(fd)) {} in TestTemplateType() 106 std::string c; [all …]
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestProperties.h | 74 virtual std::string dump() const = 0; 85 const std::vector<T>& completeList, const std::vector<T>& basicList, in Hwc2TestProperty() 86 const std::vector<T>& defaultList, in Hwc2TestProperty() 87 const std::array<bool, 6>& compositionSupport) in Hwc2TestProperty() 92 Hwc2TestProperty(const std::vector<T>& list, in Hwc2TestProperty() 93 const std::array<bool, 6>& compositionSupport) in Hwc2TestProperty() 128 const std::vector<T>& mList; 131 const std::array<bool, 6>& mCompositionSupport; 142 std::string dump() const override; 152 const std::vector<float>& mScalars; [all …]
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
D | multiclass_pa.h | 49 float Score(const std::vector<float>& inputs, 50 const std::vector<float>& parameters) const; 51 float SparseScore(const std::vector<std::pair<int, float> >& inputs, 52 const std::vector<float>& parameters) const; 55 float L2NormSquare(const std::vector<float>& inputs) const; 56 float SparseL2NormSquare(const std::vector<std::pair<int, float> >& inputs) const; 61 virtual float TrainOneExample(const std::vector<float>& inputs, int target); 63 const std::vector<std::pair<int, float> >& inputs, int target); 66 float Train(const std::vector<std::pair<std::vector<float>, int> >& data, 69 const std::vector<std::pair<std::vector<std::pair<int, float> >, int> >& data, [all …]
|
/frameworks/base/tools/aapt2/ |
D | Debug.cpp | 41 std::cout << "(attr) type="; in Visit() 42 attr->PrintMask(&std::cout); in Visit() 47 std::cout << "\n " << symbol.symbol.name.value().entry; in Visit() 49 std::cout << " (" << symbol.symbol.id.value() << ")"; in Visit() 51 std::cout << " = " << symbol.value; in Visit() 57 std::cout << "(style)"; in Visit() 60 std::cout << " parent="; in Visit() 63 std::cout << "*"; in Visit() 65 std::cout << parent_ref.name.value() << " "; in Visit() 69 std::cout << parent_ref.id.value(); in Visit() [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/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/compile/slang/ |
D | slang_rs_reflection.h | 46 std::string mPackageName; 50 std::string mRSPackageName; 54 std::string mOutputBaseDirectory; 58 std::string mOutputDirectory; 61 std::string mRSSourceFileName; 63 std::string mBitCodeFileName; 67 std::string mResourceId; 70 std::string mScriptClassName; 74 std::string mClassName; 77 std::string mItemSizeof; [all …]
|
/frameworks/av/media/libstagefright/codec2/include/ |
D | C2Component.h | 41 virtual void onWorkDone(std::weak_ptr<C2Component> component, 42 std::vector<std::unique_ptr<C2Work>> workItems) = 0; 44 virtual void onTripped(std::weak_ptr<C2Component> component, 45 std::vector<std::shared_ptr<C2SettingResult>> settingResult) = 0; 47 virtual void onError(std::weak_ptr<C2Component> component, 133 const std::vector<C2Param* const> &stackParams, 134 const std::vector<C2Param::Index> &heapParamIndices, 135 std::vector<std::unique_ptr<C2Param>>* const heapParams) const = 0; 170 const std::vector<C2Param* const> ¶ms, 171 std::vector<std::unique_ptr<C2SettingResult>>* const failures) = 0; [all …]
|
D | C2Work.h | 51 …std::unique_ptr<C2FieldSupportedValues> supportedValues; //< if different from normal (e.g. in con… 52 std::list<C2ParamField> conflictingFields; 87 std::vector<std::shared_ptr<C2Buffer>> buffers; 90 std::list<std::unique_ptr<C2Info>> infos; 91 std::list<std::shared_ptr<C2InfoBuffer>> infoBuffers; 99 std::list<std::unique_ptr<C2Param>> tunings; //< tunings to be applied before processing this 101 std::list<C2Param::Type> requestedInfos; 102 …std::vector<std::shared_ptr<C2BlockAllocator>> allocators; //< This vector shall be the same size … 107 std::list<std::unique_ptr<C2SettingResult>> failures; 142 std::list<std::pair<std::unique_ptr<C2PortMimeConfig>, std::unique_ptr<C2Info>>> preChainInfos; [all …]
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | log_helpers.h | 14 inline std::ostream& operator<<(std::ostream& out, 20 inline std::ostream& operator<<(std::ostream& out, 26 inline std::ostream& operator<<(std::ostream& out, 33 inline std::ostream& operator<<(std::ostream& out, 35 out << std::setfill(' ') << std::setprecision(4) << std::fixed 36 << std::showpos; 38 out << std::setw(10) << mat(0, 0) << " " << std::setw(10) << mat(0, 1) << " " 39 << std::setw(10) << mat(0, 2) << " " << std::setw(10) << mat(0, 3); 41 out << std::setw(10) << mat(1, 0) << " " << std::setw(10) << mat(1, 1) << " " 42 << std::setw(10) << mat(1, 2) << " " << std::setw(10) << mat(1, 3); [all …]
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.h | 67 DurationReporter(const std::string& title, bool log_only = false); 72 std::string title_; 106 Progress(const std::string& path = ""); 124 void Dump(int fd, const std::string& prefix) const; 128 const std::string& path = ""); // Used by test cases. 137 const std::string& path_; 145 static std::string VERSION_CURRENT = "1.0"; 151 static std::string VERSION_SPLIT_ANR = "2.0-dev-1"; 156 static std::string VERSION_DEFAULT = "default"; 184 int RunCommand(const std::string& title, const std::vector<std::string>& fullCommand, [all …]
|
/frameworks/native/services/vr/performanced/ |
D | string_trim.h | 13 inline std::string LeftTrim(std::string subject) { in LeftTrim() 15 std::find_if(subject.begin(), subject.end(), in LeftTrim() 16 std::not1(std::ptr_fun<int, int>(std::isspace)))); in LeftTrim() 22 inline std::string RightTrim(std::string subject) { in RightTrim() 23 subject.erase(std::find_if(subject.rbegin(), subject.rend(), in RightTrim() 24 std::not1(std::ptr_fun<int, int>(std::isspace))) in RightTrim() 32 inline std::string Trim(std::string subject) { in Trim() 34 std::find_if(subject.begin(), subject.end(), in Trim() 35 std::not1(std::ptr_fun<int, int>(std::isspace)))); in Trim() 36 subject.erase(std::find_if(subject.rbegin(), subject.rend(), in Trim() [all …]
|
D | cpu_set.cpp | 30 void CpuSetManager::Load(const std::string& cpuset_root) { in Load() 35 std::unique_ptr<CpuSet> CpuSetManager::Create(const std::string& path) { in Create() 43 return Create(std::move(root_cpuset_fd), "/", nullptr); in Create() 46 std::unique_ptr<CpuSet> CpuSetManager::Create(base::unique_fd base_fd, in Create() 47 const std::string& name, in Create() 56 std::unique_ptr<CpuSet> group( in Create() 58 path_map_.insert(std::make_pair(group->path(), group.get())); in Create() 62 std::string directory_name(entry->d_name); in Create() 71 Create(std::move(entry_fd), directory_name.c_str(), group.get()); in Create() 74 group->AddChild(std::move(child)); in Create() [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator_test.cpp | 30 std::unique_ptr<ResourceTable> table = in TEST() 36 std::unique_ptr<IAaptContext> context = in TEST() 44 std::stringstream out; in TEST() 49 std::unique_ptr<ResourceTable> table = in TEST() 62 std::unique_ptr<IAaptContext> context = in TEST() 70 std::stringstream out; in TEST() 73 std::string output = out.str(); in TEST() 75 EXPECT_NE(std::string::npos, in TEST() 78 EXPECT_NE(std::string::npos, in TEST() 81 EXPECT_NE(std::string::npos, in TEST() [all …]
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Main.cpp | 37 std::cout << "SurfaceReplayer options:\n"; in printHelpMenu() 38 std::cout << "Usage: surfacereplayer [OPTIONS...] <TRACE FILE>\n"; in printHelpMenu() 39 std::cout << " File path must be absolute" << std::endl << std::endl; in printHelpMenu() 41 std::cout << " -m Stops the replayer at the start of the trace and switches "; in printHelpMenu() 44 std::cout << "\n -t [Number of Threads] Specifies the number of threads to be used while " in printHelpMenu() 47 std::cout << "\n -s [Timestamp] Specify at what timestamp should the replayer switch " in printHelpMenu() 50 std::cout << " -n Ignore timestamps and run through trace as fast as possible\n"; in printHelpMenu() 52 std::cout << " -l Indefinitely loop the replayer\n"; in printHelpMenu() 54 std::cout << " -h Display help menu\n"; in printHelpMenu() 56 std::cout << std::endl; in printHelpMenu() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | convert.h | 108 static inline bool fromString(const std::string &str, T &result) 115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) { 122 if (str.find("-") != std::string::npos 123 && !std::numeric_limits<T>::is_signed) { 127 std::stringstream ss(str); 132 if (std::numeric_limits<T>::is_integer) { 133 ss >> std::hex >> result; 146 static inline bool toString(const T &value, std::string &str) 153 std::stringstream oss; 164 class Converter<std::string, dstType> [all …]
|
/frameworks/av/include/media/ |
D | convert.h | 108 static inline bool fromString(const std::string &str, T &result) 115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) { 122 if (str.find("-") != std::string::npos 123 && !std::numeric_limits<T>::is_signed) { 127 std::stringstream ss(str); 132 if (std::numeric_limits<T>::is_integer) { 133 ss >> std::hex >> result; 146 static inline bool toString(const T &value, std::string &str) 153 std::stringstream oss; 164 class Converter<std::string, dstType> [all …]
|
/frameworks/native/cmds/lshal/ |
D | ListCommand.cpp | 50 std::string getCmdline(pid_t pid) { in getCmdline() 51 std::ifstream ifs("/proc/" + std::to_string(pid) + "/cmdline"); in getCmdline() 52 std::string cmdline; in getCmdline() 60 const std::string &ListCommand::getCmdline(pid_t pid) { in getCmdline() 71 pids->erase(std::remove_if(pids->begin(), pids->end(), [this](auto pid) { in removeDeadProcesses() 77 pid_t serverPid, std::map<uint64_t, Pids> *objects) const { in getReferencedPids() 79 std::ifstream ifs("/d/binder/proc/" + std::to_string(serverPid)); in getReferencedPids() 84 static const std::regex prefix("^\\s*node \\d+:\\s+u([0-9a-f]+)\\s+c([0-9a-f]+)\\s+"); in getReferencedPids() 86 std::string line; in getReferencedPids() 87 std::smatch match; in getReferencedPids() [all …]
|