Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/frameworks/base/core/java/android/content/res/
DTypedArray.java92 final int type = data[index+AssetManager.STYLE_TYPE]; in getText() local
93 if (type == TypedValue.TYPE_NULL) { in getText()
95 } else if (type == TypedValue.TYPE_STRING) { in getText()
105 + Integer.toHexString(type)); in getText()
120 final int type = data[index+AssetManager.STYLE_TYPE]; in getString() local
121 if (type == TypedValue.TYPE_NULL) { in getString()
123 } else if (type == TypedValue.TYPE_STRING) { in getString()
134 + Integer.toHexString(type)); in getString()
155 final int type = data[index+AssetManager.STYLE_TYPE]; in getNonResourceString() local
156 if (type == TypedValue.TYPE_STRING) { in getNonResourceString()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DTonesAutoTest.java37 int type; in tonesDtmfTest() local
42 for (type = ToneGenerator.TONE_DTMF_0; type <= ToneGenerator.TONE_DTMF_D; type++) { in tonesDtmfTest()
43 if (toneGen.startTone(type)) { in tonesDtmfTest()
61 int type; in tonesSupervisoryTest() local
66 for (type = ToneGenerator.TONE_SUP_DIAL; in tonesSupervisoryTest()
67 type <= ToneGenerator.TONE_SUP_RINGTONE; type++) { in tonesSupervisoryTest()
68 if (toneGen.startTone(type)) { in tonesSupervisoryTest()
78 for (type = ToneGenerator.TONE_SUP_INTERCEPT; in tonesSupervisoryTest()
79 type <= ToneGenerator.TONE_SUP_PIP; type++) { in tonesSupervisoryTest()
80 if (toneGen.startTone(type)) { in tonesSupervisoryTest()
[all …]
/frameworks/base/core/java/android/accounts/
DAuthenticatorDescription.java27 final public String type; field in AuthenticatorDescription
55 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument
57 if (type == null) throw new IllegalArgumentException("type cannot be null"); in AuthenticatorDescription()
59 this.type = type; in AuthenticatorDescription()
68 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument
70 this(type, packageName, labelId, iconId, smallIconId, prefId, false); in AuthenticatorDescription()
78 public static AuthenticatorDescription newKey(String type) { in newKey() argument
79 if (type == null) throw new IllegalArgumentException("type cannot be null"); in newKey()
80 return new AuthenticatorDescription(type); in newKey()
83 private AuthenticatorDescription(String type) { in AuthenticatorDescription() argument
[all …]
DAccount.java30 public final String type; field in Account
36 return name.equals(other.name) && type.equals(other.type); in equals()
42 result = 31 * result + type.hashCode(); in hashCode()
46 public Account(String name, String type) { in Account() argument
50 if (TextUtils.isEmpty(type)) { in Account()
51 throw new IllegalArgumentException("the type must not be empty: " + type); in Account()
54 this.type = type; in Account()
59 this.type = in.readString(); in Account()
68 dest.writeString(type); in writeToParcel()
82 return "Account {name=" + name + ", type=" + type + "}"; in toString()
/frameworks/base/media/libstagefright/
DMetaData.cpp74 uint32_t type; in findCString() local
77 if (!findData(key, &type, &data, &size) || type != TYPE_C_STRING) { in findCString()
87 uint32_t type; in findInt32() local
90 if (!findData(key, &type, &data, &size) || type != TYPE_INT32) { in findInt32()
102 uint32_t type; in findInt64() local
105 if (!findData(key, &type, &data, &size) || type != TYPE_INT64) { in findInt64()
117 uint32_t type; in findFloat() local
120 if (!findData(key, &type, &data, &size) || type != TYPE_FLOAT) { in findFloat()
132 uint32_t type; in findPointer() local
135 if (!findData(key, &type, &data, &size) || type != TYPE_POINTER) { in findPointer()
[all …]
/frameworks/base/opengl/libs/GLES_CM/
Dgl.cpp42 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
44 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
46 GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
48 GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
50 GL_API void GL_APIENTRY glPointSizePointerOESBounds(GLenum type,
52 GL_API void GL_APIENTRY glMatrixIndexPointerOESBounds(GLint size, GLenum type,
54 GL_API void GL_APIENTRY glWeightPointerOESBounds(GLint size, GLenum type,
58 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, in glColorPointerBounds() argument
60 glColorPointer(size, type, stride, ptr); in glColorPointerBounds()
62 void glNormalPointerBounds(GLenum type, GLsizei stride, in glNormalPointerBounds() argument
[all …]
/frameworks/base/tools/aidl/
Daidl.cpp39 printf(" %s %s(", m->type.type.data, m->name.data); in test_document()
42 printf("%s %s",p->type.type.data,p->name.data); in test_document()
292 Type* type; local
295 type = new ParcelableType(p->package ? p->package : "",
300 type = new InterfaceType(c->package ? c->package : "",
309 Type* old = NAMES.Find(type->QualifiedName());
311 NAMES.Add(type);
336 filename, type->DeclLine(),
337 type->QualifiedName().c_str());
340 else if (type->Kind() != old->Kind()) {
[all …]
Daidl_language_y.y168 type IDENTIFIER '(' arg_list ')' ';' {
172 method->type = $1.type;
180 method->comments_token = &method->type.type;
183 | ONEWAY type IDENTIFIER '(' arg_list ')' ';' {
189 method->type = $2.type;
222 direction type IDENTIFIER {
226 arg->type = $2.type;
233 type:
235 $$.type.type = $1.buffer;
236 init_buffer_type(&$$.type.array_token, yylineno);
[all …]
Dgenerate_java.cpp14 Variable* Get(Type* type);
29 VariableFactory::Get(Type* type) in Get() argument
34 Variable* v = new Variable(type, name); in Get()
49 StubClass(Type* type, Type* interfaceType);
61 StubClass::StubClass(Type* type, Type* interfaceType) in StubClass() argument
67 this->type = type; in StubClass()
189 ProxyClass(Type* type, InterfaceType* interfaceType);
196 ProxyClass::ProxyClass(Type* type, InterfaceType* interfaceType) in ProxyClass() argument
201 this->type = type; in ProxyClass()
338 decl->returnType = NAMES.Search(method->type.type.data); in generate_method()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleHeap.java34 public static final int CHUNK_HPIF = type("HPIF");
35 public static final int CHUNK_HPSG = type("HPSG");
36 public static final int CHUNK_HPDU = type("HPDU");
37 public static final int CHUNK_HPDS = type("HPDS");
38 public static final int CHUNK_NHSG = type("NHSG");
39 public static final int CHUNK_HPGC = type("HPGC");
40 public static final int CHUNK_REAE = type("REAE");
41 public static final int CHUNK_REAQ = type("REAQ");
42 public static final int CHUNK_REAL = type("REAL");
82 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
[all …]
DDdmHandleProfiling.java33 public static final int CHUNK_MPRS = type("MPRS");
34 public static final int CHUNK_MPRE = type("MPRE");
35 public static final int CHUNK_MPSS = type("MPSS");
36 public static final int CHUNK_MPSE = type("MPSE");
37 public static final int CHUNK_MPRQ = type("MPRQ");
73 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
74 int type = request.type; in handleChunk() local
76 if (type == CHUNK_MPRS) { in handleChunk()
78 } else if (type == CHUNK_MPRE) { in handleChunk()
80 } else if (type == CHUNK_MPSS) { in handleChunk()
[all …]
DDdmHandleThread.java32 public static final int CHUNK_THEN = type("THEN");
33 public static final int CHUNK_THCR = type("THCR");
34 public static final int CHUNK_THDE = type("THDE");
35 public static final int CHUNK_THST = type("THST");
36 public static final int CHUNK_STKL = type("STKL");
70 Log.v("ddm-thread", "Handling " + name(request.type) + " chunk"); in handleChunk()
71 int type = request.type; in handleChunk() local
73 if (type == CHUNK_THEN) { in handleChunk()
75 } else if (type == CHUNK_THST) { in handleChunk()
77 } else if (type == CHUNK_STKL) { in handleChunk()
[all …]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DRenameClassAdapter.java87 String renameType(Type type) { in renameType() argument
88 if (type == null) { in renameType()
92 if (type.getSort() == Type.OBJECT) { in renameType()
93 String in = type.getInternalName(); in renameType()
95 } else if (type.getSort() == Type.ARRAY) { in renameType()
97 for (int n = type.getDimensions(); n > 0; n--) { in renameType()
100 sb.append(renameType(type.getElementType())); in renameType()
103 return type.getDescriptor(); in renameType()
112 Type renameTypeAsType(Type type) { in renameTypeAsType() argument
113 if (type == null) { in renameTypeAsType()
[all …]
/frameworks/base/voip/java/android/net/rtp/
DAudioCodec.java42 public final int type; field in AudioCodec
85 private AudioCodec(int type, String rtpmap, String fmtp) { in AudioCodec() argument
86 this.type = type; in AudioCodec()
108 public static AudioCodec getCodec(int type, String rtpmap, String fmtp) { in getCodec() argument
109 if (type < 0 || type > 127) { in getCodec()
125 } else if (type < 96) { in getCodec()
127 if (type == codec.type) { in getCodec()
145 return new AudioCodec(type, rtpmap, fmtp); in getCodec()
DAudioStream.java118 if (codec.type == mDtmfType) { in setCodec()
148 public void setDtmfType(int type) { in setDtmfType() argument
152 if (type != -1) { in setDtmfType()
153 if (type < 96 || type > 127) { in setDtmfType()
156 if (type == mCodec.type) { in setDtmfType()
160 mDtmfType = type; in setDtmfType()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DHanziToPinyinTest.java46 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken()
51 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken()
52 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken()
58 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken()
62 assertEquals(tokens.get(0).type, Token.UNKNOWN); in testGetToken()
66 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken()
67 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken()
68 assertEquals(tokens.get(2).type, Token.LATIN); in testGetToken()
69 assertEquals(tokens.get(3).type, Token.LATIN); in testGetToken()
70 assertEquals(tokens.get(4).type, Token.LATIN); in testGetToken()
[all …]
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp139 static void throwUnknowTypeException(JNIEnv * env, jint type) in throwUnknowTypeException() argument
142 snprintf(buf, sizeof(buf), "UNKNOWN type %d", type); in throwUnknowTypeException()
159 uint8_t type = field.type; in getLong_native() local
160 if (type == FIELD_TYPE_INTEGER) { in getLong_native()
166 } else if (type == FIELD_TYPE_STRING) { in getLong_native()
179 } else if (type == FIELD_TYPE_FLOAT) { in getLong_native()
185 } else if (type == FIELD_TYPE_NULL) { in getLong_native()
187 } else if (type == FIELD_TYPE_BLOB) { in getLong_native()
191 throwUnknowTypeException(env, type); in getLong_native()
209 uint8_t type = field.type; in getBlob_native() local
[all …]
/frameworks/base/core/java/android/pim/vcard/
DVCardEntry.java82 public final int type; field in VCardEntry.PhoneData
88 public PhoneData(int type, String data, String label, boolean isPrimary) { in PhoneData() argument
89 this.type = type; in PhoneData()
101 return (type == phoneData.type && data.equals(phoneData.data) && in equals()
108 type, data, label, isPrimary); in toString()
113 public final int type; field in VCardEntry.EmailData
118 public EmailData(int type, String data, String label, boolean isPrimary) { in EmailData() argument
119 this.type = type; in EmailData()
131 return (type == emailData.type && data.equals(emailData.data) && in equals()
138 type, data, label, isPrimary); in toString()
[all …]
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java199 int type, in glColorPointerBounds() argument
207 int type, in glColorPointer() argument
213 type, in glColorPointer()
219 ((type == GL_FLOAT) || in glColorPointer()
220 (type == GL_UNSIGNED_BYTE) || in glColorPointer()
221 (type == GL_FIXED)) && in glColorPointer()
352 int type, in glDrawElements() argument
772 int type, in glNormalPointerBounds() argument
779 int type, in glNormalPointer() argument
784 type, in glNormalPointer()
[all …]
/frameworks/base/voip/java/android/net/sip/
DSimpleSessionDescription.java117 public Media newMedia(String type, int port, int portCount, in newMedia() argument
119 Media media = new Media(type, port, portCount, protocol); in newMedia()
193 public int getBandwidth(String type) { in getBandwidth() argument
194 return mFields.getBandwidth(type); in getBandwidth()
201 public void setBandwidth(String type, int value) { in setBandwidth() argument
202 mFields.setBandwidth(type, value); in setBandwidth()
243 private Media(String type, int port, int portCount, String protocol) { in Media() argument
245 mType = type; in Media()
333 public String getRtpmap(int type) { in getRtpmap() argument
334 return super.get("a=rtpmap:" + type, ' '); in getRtpmap()
[all …]
/frameworks/base/core/java/android/os/
DPatternMatcher.java51 public PatternMatcher(String pattern, int type) { in PatternMatcher() argument
53 mType = type; in PatternMatcher()
69 String type = "? "; in toString() local
72 type = "LITERAL: "; in toString()
75 type = "PREFIX: "; in toString()
78 type = "GLOB: "; in toString()
81 return "PatternMatcher{" + type + mPattern + "}"; in toString()
109 static boolean matchPattern(String pattern, String match, int type) { in matchPattern() argument
111 if (type == PATTERN_LITERAL) { in matchPattern()
113 } if (type == PATTERN_PREFIX) { in matchPattern()
[all …]
/frameworks/base/libs/rs/
Dspec.l76 currType->type = 1;
82 currType->type = 1;
88 currType->type = 1;
94 currType->type = 1;
100 currType->type = 2;
106 currType->type = 2;
112 currType->type = 2;
118 currType->type = 2;
124 currType->type = 3;
130 currType->type = 3;
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLES10.java386 int type, in glColorPointerBounds() argument
394 int type, in glColorPointer() argument
400 type, in glColorPointer()
406 ((type == GL_FLOAT) || in glColorPointer()
407 (type == GL_UNSIGNED_BYTE) || in glColorPointer()
408 (type == GL_FIXED)) && in glColorPointer()
539 int type, in glDrawElements() argument
964 int type, in glNormalPointerBounds() argument
971 int type, in glNormalPointer() argument
976 type, in glNormalPointer()
[all …]
/frameworks/base/voip/jni/rtp/
DAudioCodec.cpp41 AudioCodecType *type = gAudioCodecTypes; in newAudioCodec() local
42 while (type->name != NULL) { in newAudioCodec()
43 if (strcasecmp(codecName, type->name) == 0) { in newAudioCodec()
44 AudioCodec *codec = type->create(); in newAudioCodec()
45 codec->name = type->name; in newAudioCodec()
48 ++type; in newAudioCodec()
DAmrCodec.cpp103 Frame_Type_3GPP type; in encode() local
106 samples, bytes + 1, &type, AMR_TX_WMF); in encode()
108 if (type != mMode || length != (8 + gFrameBits[mMode] + 7) >> 3) { in encode()
134 Frame_Type_3GPP type; in decode() local
144 type = (Frame_Type_3GPP)(bytes[1] >> 3); in decode()
145 if (length != (16 + gFrameBits[type] + 7) >> 3) { in decode()
154 type = (Frame_Type_3GPP)((bytes[0] << 1 | bytes[1] >> 7) & 0x07); in decode()
155 if (length != (10 + gFrameBits[type] + 7) >> 3) { in decode()
165 length = (gFrameBits[type] + 7) >> 3; in decode()
169 if (AMRDecode(mDecoder, type, bytes, samples, MIME_IETF) != length) { in decode()
[all …]

12345678910>>...24