Home
last modified time | relevance | path

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

123

/sdk/emulator/opengl/host/tools/emugen/
DVar.h41 Var(const std::string & name, in Var()
43 const std::string & lenExpression, in Var()
45 const std::string &packExpression, in Var()
46 const std::string &writeExpression) : in Var()
59 void init(const std::string name, const VarType * vartype, in init()
60 std::string lenExpression, in init()
62 std::string packExpression, in init()
63 std::string writeExpression) { in init()
75 const std::string & name() const { return m_name; } in name()
79 const std::string & lenExpression() const { return m_lenExpression; } in lenExpression()
[all …]
DstrUtils.cpp21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de… in getNextToken()
26 if (pos == std::string::npos) return ""; in getNextToken()
29 if (*last == std::string::npos) *last = str.size(); in getNextToken()
30 std::string retval = str.substr(pos, *last - pos); in getNextToken()
36 std::string trim(const string & str) in trim()
38 string result; in trim()
39 string::size_type start = str.find_first_not_of(WHITESPACE, 0); in trim()
40 string::size_type end = str.find_last_not_of(WHITESPACE); in trim()
41 if (start == string::npos || end == string::npos) { in trim()
42 result = string(""); in trim()
DApiGen.h27 typedef std::vector<std::string> StringVec;
30 ApiGen(const std::string & basename) : in ApiGen()
36 int readSpec(const std::string & filename);
37 int readAttributes(const std::string & attribFilename);
68 EntryPoint * findEntryByName(const std::string & name);
69 int genOpcodes(const std::string &filename);
70 int genAttributesTemplate(const std::string &filename);
71 int genProcTypes(const std::string &filename, SideType side);
72 int genFuncTable(const std::string &filename, SideType side);
74 int genContext(const std::string &filename, SideType side);
[all …]
Dmain.cpp25 const std::string SPEC_EXTENSION = std::string(".in");
26 const std::string ATTRIB_EXTENSION = std::string(".attrib");
27 const std::string TYPES_EXTENTION = std::string(".types");
43 std::string encoderDir = ""; in main()
44 std::string decoderDir = ""; in main()
45 std::string wrapperDir = ""; in main()
46 std::string inDir = "."; in main()
53 wrapperDir = std::string(optarg); in main()
63 encoderDir = std::string(optarg); in main()
66 decoderDir = std::string(optarg); in main()
[all …]
DEntryPoint.h33 bool parse(unsigned int lc, const std::string & str);
36 const std::string & name_suffix = std::string(""),
37 const std::string & name_prefix = std::string(""),
38 const std::string & ctx_param = std::string("")) const;
39 const std::string & name() const { return m_name; } in name()
42 Var * var(const std::string & name);
50 int setAttribute(const std::string &line, size_t lc);
54 std::string m_name;
DEntryPoint.cpp41 bool parseTypeField(const std::string & f, std::string *vartype, std::string *varname) in parseTypeField()
54 std::string str = getNextToken(f, pos, &last, WHITESPACE); in parseTypeField()
95 bool EntryPoint::parse(unsigned int lc, const std::string & str) in parse()
98 std::string field; in parse()
101 std::string linestr = trim(str); in parse()
111 std::string retTypeName; in parse()
122 …m_retval.init(std::string(""), theType, std::string(""), Var::POINTER_OUT, std::string(""), std::s… in parse()
132 std::string vartype, varname; in parse()
149 m_vars.push_back(Var(varname, v, std::string(""), Var::POINTER_IN, "", "")); in parse()
157 const std::string & name_suffix, in print()
[all …]
DTypeFactory.cpp32 typedef std::map<std::string, VarType> TypeMap;
52 …g_varMap.insert(std::pair<std::string, VarType>(name, VarType(g_typeId++, name, &g_var##size , pri…
65 int TypeFactory::initFromFile(const std::string &filename) in initFromFile()
80 std::string str = trim(line); in initFromFile()
85 std::string name; in initFromFile()
92 std::string size; in initFromFile()
99 std::string printString; in initFromFile()
107 std::string pointerDef; in initFromFile()
115 if (std::string("true")==pointerDef) in initFromFile()
117 else if (std::string("false")==pointerDef) in initFromFile()
[all …]
DstrUtils.h24 std::string trim(const std::string & str);
25 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de…
26 template <class T> std::string inline toString(const T& t) { in toString()
DVarType.h57 …VarType(size_t id, const std::string & name, const VarConverter * converter, const std::string & p… in VarType()
65 const std::string & name() const { return m_name; } in name()
66 const std::string & printFormat() const { return m_printFomrat; } in printFormat()
72 std::string m_name;
74 std::string m_printFomrat;
DApiGen.cpp33 EntryPoint * ApiGen::findEntryByName(const std::string & name) in findEntryByName()
53 int ApiGen::genProcTypes(const std::string &filename, SideType side) in genProcTypes()
97 int ApiGen::genFuncTable(const std::string &filename, SideType side) in genFuncTable()
129 int ApiGen::genContext(const std::string & filename, SideType side) in genContext()
190 int ApiGen::genEntryPoints(const std::string & filename, SideType side) in genEntryPoints()
268 int ApiGen::genOpcodes(const std::string &filename) in genOpcodes()
288 int ApiGen::genAttributesTemplate(const std::string &filename ) in genAttributesTemplate()
307 int ApiGen::genEncoderHeader(const std::string &filename) in genEncoderHeader()
316 std::string classname = m_basename + "_encoder_context_t"; in genEncoderHeader()
449 int ApiGen::genEncoderImpl(const std::string &filename) in genEncoderImpl()
[all …]
DTypeFactory.h30 const VarType * getVarTypeByName(const std::string &type);
31 int initFromFile(const std::string &filename);
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dnavigation1-expected-navigate4.txt2 Open Declaration in values-en-rGB/strings.xml : [@android:string/ok]
4 Open Declaration in values/strings.xml : [@android:string/ok]
6 Open Declaration in values-ar/strings.xml : [@android:string/ok]
8 Open Declaration in values-bg/strings.xml : [@android:string/ok]
10 Open Declaration in values-ca/strings.xml : [@android:string/ok]
12 Open Declaration in values-cs/strings.xml : [@android:string/ok]
14 Open Declaration in values-da/strings.xml : [@android:string/ok]
16 Open Declaration in values-de/strings.xml : [@android:string/ok]
18 Open Declaration in values-el/strings.xml : [@android:string/ok]
20 Open Declaration in values-es/strings.xml : [@android:string/ok]
[all …]
Dcompletionvalues2-expected-applyCompletion45.diff1 Code completion in completionvalues2.xml for @string/^app_name selecting @string/hello:
2 < <item name="main_layout5" type="string">@string/^app_name</item>
4 > <item name="main_layout5" type="string">@string/hello^</item>
Dnavigation1-expected-navigate1.txt1 Go To Declaration in navigation1.xml for android:text="@string/app^_name":
2 Open Declaration in values/strings.xml : [@string/app_name]
7 [^<string name="app_name">PROJECTNAME</string>]
Dcompletionvalues2-expected-completion71.txt1 Code completion in completionvalues2.xml for <item name="main_layout5" type="string">@string/^app_n…
2 @string/app_name
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/model/
DEditableItemConstants.java32 public static final int CATEGORY_MAIN = R.string.properties;
33 public static final int CATEGORY_STYLE = R.string.style;
34 public static final int CATEGORY_ACTION1 = R.string.action_1;
35 public static final int CATEGORY_ACTION2 = R.string.action_2;
36 public static final int CATEGORY_ACTION3 = R.string.action_3;
38 public static final Integer PRESET_CUSTOM = R.string.preset_custom;
39 public static final Integer PRESET_BASIC = R.string.preset_basic;
40 public static final Integer PRESET_EMAIL = R.string.preset_email;
41 public static final Integer PRESET_PHOTO = R.string.preset_photo;
43 public static final Integer STYLE_NONE = R.string.style_none;
[all …]
DEditableItem.java28 PRESET(R.string.preset, TYPE_DROP_DOWN, CATEGORY_MAIN,
30 SMALL_ICON(R.string.small_icon, TYPE_RESOURCE_ID, CATEGORY_MAIN,
32 CONTENT_TITLE(R.string.content_title, TYPE_TEXT, CATEGORY_MAIN),
33 CONTENT_TEXT(R.string.content_text, TYPE_TEXT, CATEGORY_MAIN),
34 SUB_TEXT(R.string.sub_text, TYPE_TEXT, CATEGORY_MAIN),
35 LARGE_ICON(R.string.large_icon, TYPE_BITMAP, CATEGORY_MAIN),
36 CONTENT_INFO(R.string.content_info, TYPE_TEXT, CATEGORY_MAIN),
37 NUMBER(R.string.number, TYPE_INT, CATEGORY_MAIN),
38 WHEN(R.string.when, TYPE_DATETIME, CATEGORY_MAIN),
39 PROGRESS(R.string.progress, TYPE_BOOLEAN, CATEGORY_MAIN),
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DAndroidDoubleClickStrategy.java59 protected Point getWord(String string, int cursor) { in getWord() argument
60 if (string == null) { in getWord()
65 Point position = super.getWord(string, cursor); in getWord()
71 if (string.startsWith(PREFIX_RESOURCE_REF, position.x) || in getWord()
72 string.startsWith(PREFIX_THEME_REF, position.x)) { in getWord()
73 int nameStart = string.indexOf('/', position.x + 1); in getWord()
82 int lastDot = string.lastIndexOf('.', cursor); in getWord()
84 int next = string.indexOf('.', cursor); in getWord()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DFmExtractLettersMethod.java35 String string = args.get(0).toString(); in exec() local
36 StringBuilder sb = new StringBuilder(string.length()); in exec()
37 for (int i = 0, n = string.length(); i < n; i++) { in exec()
38 char c = string.charAt(i); in exec()
DFmEscapeXmlTextMethod.java37 String string = args.get(0).toString(); in exec() local
38 return new SimpleScalar(XmlUtils.toXmlTextValue(string)); in exec()
DFmEscapeXmlAttributeMethod.java37 String string = args.get(0).toString(); in exec() local
38 return new SimpleScalar(XmlUtils.toXmlAttributeValue(string)); in exec()
DFmEscapeXmlStringMethod.java40 String string = args.get(0).toString(); in exec() local
41 return new SimpleScalar(ValueXmlHelper.escapeResourceString(string)); in exec()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/templates/
Dstring.template1 <string name="STRING_NAME">STRING_CONTENT</string>
/sdk/files/
Dandroid.el19 :type 'string
33 :type 'string
38 :type 'string
/sdk/emulator/opengl/host/libs/Translator/GLES_V2/
DShaderParser.h49 std::string m_src;
50 std::string m_parsedSrc;

123