Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 1800) sorted by relevance

12345678910>>...72

/frameworks/rs/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 …]
DUtilities.h25 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 …]
DUtilities.cpp45 string capitalize(const string& source) { in capitalize()
47 string result; in capitalize()
62 void trimSpaces(string* s) { in trimSpaces()
64 if (end == string::npos) { in trimSpaces()
77 string stringReplace(string s, string match, string rep) { in stringReplace()
81 if (p == string::npos) break; in stringReplace()
89 bool charRemoved(char c, string* s) { in charRemoved()
91 if (p != string::npos) { in charRemoved()
98 string stripHtml(const string& html) { in stripHtml()
99 string in = stringReplace(html, "<li>", "- "); in stripHtml()
[all …]
DGenerateTestFiles.cpp29 static void convertToRsType(const string& name, string* dataType, char* vectorSize) { in convertToRsType()
30 string s = name; in convertToRsType()
69 string mRsKernelName;
70 string mJavaArgumentsClassName;
71 string mJavaArgumentsNClassName;
72 string mJavaVerifierComputeMethodName;
73 string mJavaVerifierVerifyMethodName;
74 string mJavaCheckMethodName;
75 string mJavaVerifyMethodName;
96 void writeJavaArgumentClass(bool scalar, set<string>* javaGeneratedArgumentClasses) const;
[all …]
DGenerateStubsWhiteList.cpp62 static string findSubstitute(const string& typeName, unsigned int apiLevel, int intSize) { in findSubstitute()
96 list<string> expandTypedefs(const string type, unsigned int apiLevel, int intSize, string& vectorSi… in expandTypedefs()
99 list<string> tokens{istream_iterator<string>{stream}, istream_iterator<string>{}}; in expandTypedefs()
102 const string substitute = findSubstitute(*i, apiLevel, intSize); in expandTypedefs()
114 string unused; in expandTypedefs()
115 string newVectorSize; in expandTypedefs()
129 list<string> newTokens{istream_iterator<string>{stream}, istream_iterator<string>{}}; in expandTypedefs()
143 static bool eatFront(list<string>* tokens, const char* prefix) { in eatFront()
155 static const char* findManglingOfBuiltInType(list<string>* tokens) { in findManglingOfBuiltInType()
179 static inline string mangleLongName(const string& name) { in mangleLongName()
[all …]
DSpecification.cpp57 static const string kCTypePatterns[] = {"#1", "#2", "#3", "#4"};
58 static const string kRSTypePatterns[] = {"#RST_1", "#RST_2", "#RST_3", "#RST_4"};
64 static int findCType(const string& cType) { in findCType()
76 static vector<string> convertToTypeVector(const string& input) { in convertToTypeVector()
78 vector<string> entries; in convertToTypeVector()
80 string entry; in convertToTypeVector()
90 vector<string> result; in convertToTypeVector()
110 static bool isRSTValid(const vector<string> &typeVector) { in isRSTValid()
118 void getVectorSizeAndBaseType(const string& type, string& vectorSize, string& baseType) { in getVectorSizeAndBaseType()
130 const string trimmed = type.substr(0, last); in getVectorSizeAndBaseType()
[all …]
/frameworks/compile/slang/
Dslang_rs_reflection.h46 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 …]
Dslang_rs_reflect_utils.h45 const std::string *licenseNote;
54 static std::string GetFileNameStem(const char *fileName);
59 static std::string ComputePackagedPath(const char *prefixPath,
67 static std::string JavaClassNameFromRSFileName(const char *rsFileName);
78 static std::string BCFileNameFromRSFileName(const char *rsFileName);
85 static std::string JavaBitcodeClassNameFromRSFileName(const char *rsFileName);
95 std::string JoinPath(const std::string &path1, const std::string &path2);
102 std::string RootNameFromRSFileName(const std::string &rsFileName);
116 bool startFile(const std::string &outPath, const std::string &outFileName,
117 const std::string &sourceFileName,
[all …]
Dslang_rs_reflection_cpp.h31 RSReflectionCpp(const RSContext *Context, const std::string &OutputDirectory,
32 const std::string &RSSourceFileName,
33 const std::string &BitCodeFileName);
40 std::string Type;
41 std::string Name;
42 std::string DefaultValue;
43 Argument(std::string Type, std::string Name, std::string DefaultValue = "")
52 std::string mRSSourceFilePath;
54 std::string mBitCodeFilePath;
56 std::string mOutputDirectory;
[all …]
Dslang_rs_reflect_utils.cpp33 using std::string;
35 string RSSlangReflectUtils::GetFileNameStem(const char *fileName) { in GetFileNameStem()
48 return string(slash, dot - slash); in GetFileNameStem()
51 string RSSlangReflectUtils::ComputePackagedPath(const char *prefixPath, in ComputePackagedPath()
53 string packaged_path(prefixPath); in ComputePackagedPath()
69 static string InternalFileNameConvert(const char *rsFileName, bool toLower) { in InternalFileNameConvert()
95 return string(ret); in InternalFileNameConvert()
98 std::string
103 std::string RootNameFromRSFileName(const std::string &rsFileName) { in RootNameFromRSFileName()
107 std::string
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessibilityContentDescriptions.java14 R.string.accessibility_no_phone,
15 R.string.accessibility_phone_one_bar,
16 R.string.accessibility_phone_two_bars,
17 R.string.accessibility_phone_three_bars,
18 R.string.accessibility_phone_signal_full
22 R.string.accessibility_no_data,
23 R.string.accessibility_data_one_bar,
24 R.string.accessibility_data_two_bars,
25 R.string.accessibility_data_three_bars,
26 R.string.accessibility_data_signal_full
[all …]
/frameworks/native/libs/input/
DKeyLayoutMap.cpp58 ALOGE("Error %d opening key layout map file %s.", status, filename.string()); in load()
73 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load()
201 ALOGD("Parsing %s: '%s'.", mTokenizer->getLocation().string(), in parse()
202 mTokenizer->peekRemainderOfLine().string()); in parse()
222 ALOGE("%s: Expected keyword, got '%s'.", mTokenizer->getLocation().string(), in parse()
223 keywordToken.string()); in parse()
230 mTokenizer->getLocation().string(), in parse()
231 mTokenizer->peekRemainderOfLine().string()); in parse()
251 int32_t code = int32_t(strtol(codeToken.string(), &end, 0)); in parseKey()
253 ALOGE("%s: Expected key %s number, got '%s'.", mTokenizer->getLocation().string(), in parseKey()
[all …]
/frameworks/base/core/java/android/webkit/
DLegacyErrorStrings.java47 return com.android.internal.R.string.httpErrorOk; in getResource()
50 return com.android.internal.R.string.httpError; in getResource()
53 return com.android.internal.R.string.httpErrorLookup; in getResource()
56 return com.android.internal.R.string.httpErrorUnsupportedAuthScheme; in getResource()
59 return com.android.internal.R.string.httpErrorAuth; in getResource()
62 return com.android.internal.R.string.httpErrorProxyAuth; in getResource()
65 return com.android.internal.R.string.httpErrorConnect; in getResource()
68 return com.android.internal.R.string.httpErrorIO; in getResource()
71 return com.android.internal.R.string.httpErrorTimeout; in getResource()
74 return com.android.internal.R.string.httpErrorRedirectLoop; in getResource()
[all …]
/frameworks/base/core/java/android/print/
DPrintAttributes.java470 R.string.mediasize_unknown_portrait, 1, Integer.MAX_VALUE);
481 R.string.mediasize_unknown_landscape, Integer.MAX_VALUE, 1);
487 new MediaSize("ISO_A0", "android", R.string.mediasize_iso_a0, 33110, 46810);
490 new MediaSize("ISO_A1", "android", R.string.mediasize_iso_a1, 23390, 33110);
493 new MediaSize("ISO_A2", "android", R.string.mediasize_iso_a2, 16540, 23390);
496 new MediaSize("ISO_A3", "android", R.string.mediasize_iso_a3, 11690, 16540);
499 new MediaSize("ISO_A4", "android", R.string.mediasize_iso_a4, 8270, 11690);
502 new MediaSize("ISO_A5", "android", R.string.mediasize_iso_a5, 5830, 8270);
505 new MediaSize("ISO_A6", "android", R.string.mediasize_iso_a6, 4130, 5830);
508 new MediaSize("ISO_A7", "android", R.string.mediasize_iso_a7, 2910, 4130);
[all …]
/frameworks/base/tools/aapt/
DPackage.cpp72 FileType fileType = getFileType(outputFile.string()); in writeAPK()
79 if (unlink(outputFile.string()) != 0) { in writeAPK()
80 fprintf(stderr, "ERROR: unable to remove '%s': %s\n", outputFile.string(), in writeAPK()
86 outputFile.string()); in writeAPK()
90 fprintf(stderr, "ERROR: '%s' exists and is not a regular file\n", outputFile.string()); in writeAPK()
96 outputFile.string()); in writeAPK()
101 status = zip->open(outputFile.string(), ZipFile::kOpenReadWrite | ZipFile::kOpenCreate); in writeAPK()
104 outputFile.string()); in writeAPK()
115 outputFile.string()); in writeAPK()
127 outputFile.string()); in writeAPK()
[all …]
DCommand.cpp261 printf("%s='%s'", attrLabel.string(), in printResolvedResourceAttribute()
262 ResTable::normalizeForOutput(result.string()).string()); in printResolvedResourceAttribute()
265 printf("%s='%d'", attrLabel.string(), value.data); in printResolvedResourceAttribute()
267 printf("%s='0x%x'", attrLabel.string(), (int)value.data); in printResolvedResourceAttribute()
370 printf("uses-permission: name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission()
378 ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission()
389 printf("name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermissionSdk23()
398 ResTable::normalizeForOutput(name.string()).string(), in printUsesImpliedPermission()
399 ResTable::normalizeForOutput(reason.string()).string()); in printUsesImpliedPermission()
551 printf("feature-group: label='%s'\n", grp.label.string()); in printFeatureGroupImpl()
[all …]
/frameworks/av/services/audiopolicy/utilities/convert/
Dconvert.h108 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
146 static inline bool toString(const T &value, std::string &str)
164 class Converter<std::string, dstType>
167 static inline bool run(const std::string &str, dstType &result)
174 class Converter<srcType, std::string>
177 static inline bool run(const srcType &str, std::string &result)
234 inline bool convertTo<std::string, int16_t>(const std::string &str, int16_t &result)
238 if (!convertTo<std::string, int64_t>(str, res)) {
[all …]
/frameworks/base/tools/aapt2/
DConfigDescription_test.cpp52 EXPECT_EQ(std::string(""), config.toString().string()); in TEST()
55 EXPECT_EQ(std::string("fr-land"), config.toString().string()); in TEST()
59 EXPECT_EQ(std::string("mcc310-pl-sw720dp-normal-long-port-night-" in TEST()
60 "xhdpi-keyssoft-qwerty-navexposed-nonav-v13"), config.toString().string()); in TEST()
66 EXPECT_EQ(std::string("en-rUS"), config.toString().string()); in TEST()
72 EXPECT_EQ(std::string("sw600dp-v13"), config.toString().string()); in TEST()
75 EXPECT_EQ(std::string("sw600dp-v13"), config.toString().string()); in TEST()
90 EXPECT_EQ(std::string("round-v23"), config.toString().string()); in TEST()
96 EXPECT_EQ(std::string("notround-v23"), config.toString().string()); in TEST()
/frameworks/native/cmds/installd/
Dutils.h70 std::string create_data_path(const char* volume_uuid);
72 std::string create_data_app_path(const char* volume_uuid);
74 std::string create_data_app_package_path(const char* volume_uuid, const char* package_name);
76 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid);
77 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid);
79 std::string create_data_user_ce_package_path(const char* volume_uuid,
81 std::string create_data_user_ce_package_path(const char* volume_uuid,
83 std::string create_data_user_de_package_path(const char* volume_uuid,
86 std::string create_data_media_path(const char* volume_uuid, userid_t userid);
88 std::string create_data_misc_legacy_path(userid_t userid);
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
DParameterManagerWrapper.h45 typedef std::map<std::string, ISelectionCriterionInterface *> CriterionCollection;
46 typedef std::map<std::string, ISelectionCriterionTypeInterface *> CriterionTypeCollection;
151 void addCriterionType(const std::string &typeName, bool isInclusive);
160 void addCriterionTypeValuePair(const std::string &typeName, uint32_t numeric,
161 const std::string &literal);
170 void addCriterion(const std::string &name,
171 const std::string &typeName,
172 const std::string &defaultLiteralValue);
223 void parseChildren(cnode *root, std::string &defaultValue, std::string &type);
235 T *getElement(const std::string &name, std::map<std::string, T *> &elementsMap);
[all …]
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
DInputTypeActivity.java56 R.string.normal_edit_text_label)); in onCreate()
60 R.string.cap_chars_edit_text_label)); in onCreate()
64 R.string.cap_words_edit_text_label)); in onCreate()
68 R.string.multiline_edit_text_label)); in onCreate()
72 R.string.cap_sentences_edit_text_label)); in onCreate()
76 R.string.auto_complete_edit_text_label)); in onCreate()
80 R.string.auto_correct_edit_text_label)); in onCreate()
84 R.string.uri_edit_text_label)); in onCreate()
88 R.string.email_address_edit_text_label)); in onCreate()
92 R.string.email_subject_edit_text_label)); in onCreate()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcuts.java160 KeyEvent.KEYCODE_HOME, context.getString(R.string.keyboard_key_home)); in loadResources()
162 KeyEvent.KEYCODE_BACK, context.getString(R.string.keyboard_key_back)); in loadResources()
164 KeyEvent.KEYCODE_DPAD_UP, context.getString(R.string.keyboard_key_dpad_up)); in loadResources()
166 KeyEvent.KEYCODE_DPAD_DOWN, context.getString(R.string.keyboard_key_dpad_down)); in loadResources()
168 KeyEvent.KEYCODE_DPAD_LEFT, context.getString(R.string.keyboard_key_dpad_left)); in loadResources()
170 KeyEvent.KEYCODE_DPAD_RIGHT, context.getString(R.string.keyboard_key_dpad_right)); in loadResources()
172 KeyEvent.KEYCODE_DPAD_CENTER, context.getString(R.string.keyboard_key_dpad_center)); in loadResources()
175 KeyEvent.KEYCODE_TAB, context.getString(R.string.keyboard_key_tab)); in loadResources()
177 KeyEvent.KEYCODE_SPACE, context.getString(R.string.keyboard_key_space)); in loadResources()
179 KeyEvent.KEYCODE_ENTER, context.getString(R.string.keyboard_key_enter)); in loadResources()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp63 std::string output = out.str(); in TEST()
65 EXPECT_NE(std::string::npos, in TEST()
68 EXPECT_NE(std::string::npos, in TEST()
71 EXPECT_NE(std::string::npos, in TEST()
90 std::string output = out.str(); in TEST()
91 EXPECT_NE(std::string::npos, output.find("package com.android.internal;")); in TEST()
92 EXPECT_NE(std::string::npos, output.find("public static final int one=0x01020000;")); in TEST()
93 EXPECT_EQ(std::string::npos, output.find("two")); in TEST()
94 EXPECT_EQ(std::string::npos, output.find("com_foo$two")); in TEST()
112 std::string output = out.str(); in TEST()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
Daudio_policy_criteria_conf.h36 static const std::string &gPolicyConfTag = "Policy";
37 static const std::string &gDefaultTag = "Default";
38 static const std::string &gTypeTag = "Type";
43 static const std::string &gInclusiveCriterionTypeTag = "InclusiveCriterionType";
44 static const std::string &gExclusiveCriterionTypeTag = "ExclusiveCriterionType";
45 static const std::string &gCriterionTag = "Criterion";
50 static const std::string &gInputDeviceCriterionTag = "AvailableInputDevices";
51 static const std::string &gOutputDeviceCriterionTag = "AvailableOutputDevices";
52 static const std::string &gPhoneStateCriterionTag = "TelephonyMode";
57 static const std::string gForceUseCriterionTag[AUDIO_POLICY_FORCE_USE_CNT] =
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp93 ALOGD("MockDrmPlugin::openSession() -> %s", vectorToString(sessionId).string()); in openSession()
100 ALOGD("MockDrmPlugin::closeSession(%s)", vectorToString(sessionId).string()); in closeSession()
121 … vectorToString(sessionId).string(), vectorToString(initData).string(), mimeType.string(), in getKeyRequest()
122 keyType, stringMapToString(optionalParameters).string()); in getKeyRequest()
146 optionalParameters.keyAt(i).string(), in getKeyRequest()
147 optionalParameters.valueAt(i).string()); in getKeyRequest()
178 atoi(mStringProperties.valueAt(index).string())); in getKeyRequest()
190 vectorToString(sessionId).string(), vectorToString(response).string()); in provideKeyResponse()
219 vectorToString(keySetId).string()); in removeKeys()
236 vectorToString(sessionId).string(), in restoreKeys()
[all …]

12345678910>>...72