Home
last modified time | relevance | path

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

12345678910>>...99

/frameworks/base/tools/aapt2/
DResource_test.cpp24 const ResourceType* type = ParseResourceType("anim"); in TEST() local
25 ASSERT_NE(type, nullptr); in TEST()
26 EXPECT_EQ(*type, ResourceType::kAnim); in TEST()
28 type = ParseResourceType("animator"); in TEST()
29 ASSERT_NE(type, nullptr); in TEST()
30 EXPECT_EQ(*type, ResourceType::kAnimator); in TEST()
32 type = ParseResourceType("array"); in TEST()
33 ASSERT_NE(type, nullptr); in TEST()
34 EXPECT_EQ(*type, ResourceType::kArray); in TEST()
36 type = ParseResourceType("attr"); in TEST()
[all …]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsProviderTest.java255 private void testResetModePackageDefaultsCommon(int type) throws Exception { in testResetModePackageDefaultsCommon() argument
257 setSettingViaShell(type, FAKE_SETTING_NAME, null, true); in testResetModePackageDefaultsCommon()
260 setSettingViaShell(type, FAKE_SETTING_NAME, in testResetModePackageDefaultsCommon()
264 resetToDefaultsViaShell(type, "com.android.shell"); in testResetModePackageDefaultsCommon()
265 resetToDefaultsViaShell(type, "root"); in testResetModePackageDefaultsCommon()
268 assertNull(getSetting(type, FAKE_SETTING_NAME)); in testResetModePackageDefaultsCommon()
271 setSettingViaShell(type, FAKE_SETTING_NAME, in testResetModePackageDefaultsCommon()
274 setSettingViaShell(type, FAKE_SETTING_NAME, in testResetModePackageDefaultsCommon()
278 resetToDefaultsViaShell(type, "com.android.shell"); in testResetModePackageDefaultsCommon()
279 resetToDefaultsViaShell(type, "root"); in testResetModePackageDefaultsCommon()
[all …]
DBaseSettingsProviderTest.java79 protected void setStringViaFrontEndApiSetting(int type, String name, String value, int userId) { in setStringViaFrontEndApiSetting() argument
82 switch (type) { in setStringViaFrontEndApiSetting()
96 throw new IllegalArgumentException("Invalid type: " + type); in setStringViaFrontEndApiSetting()
101 protected String getStringViaFrontEndApiSetting(int type, String name, int userId) { in getStringViaFrontEndApiSetting() argument
104 switch (type) { in getStringViaFrontEndApiSetting()
118 throw new IllegalArgumentException("Invalid type: " + type); in getStringViaFrontEndApiSetting()
123 protected Uri insertStringViaProviderApi(int type, String name, String value, in insertStringViaProviderApi() argument
125 Uri uri = getBaseUriForType(type); in insertStringViaProviderApi()
136 protected int deleteStringViaProviderApi(int type, String name) { in deleteStringViaProviderApi() argument
137 Uri uri = getBaseUriForType(type); in deleteStringViaProviderApi()
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DTypeReference.java91 private TypeReference(Type type) { in TypeReference() argument
92 mType = type; in TypeReference()
108 public SpecializedBaseTypeReference(Type type) { in SpecializedBaseTypeReference() argument
109 super(type); in SpecializedBaseTypeReference()
144 public static TypeReference<?> createSpecializedTypeReference(Type type) { in createSpecializedTypeReference() argument
145 return new SpecializedBaseTypeReference(type); in createSpecializedTypeReference()
167 private static final Class<?> getRawType(Type type) { in getRawType() argument
168 if (type == null) { in getRawType()
172 if (type instanceof Class<?>) { in getRawType()
173 return (Class<?>)type; in getRawType()
[all …]
/frameworks/base/core/java/android/os/health/
DUidHealthStats.java34 @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT)
41 @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT)
48 @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT)
55 @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT)
63 @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS)
71 @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS)
74 @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS)
82 @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS)
89 @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS)
96 @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS)
[all …]
/frameworks/av/media/img_utils/src/
DTiffEntry.cpp37 const sp<TiffIfd>* TiffEntry::forceValidType<sp<TiffIfd> >(TagType type, const sp<TiffIfd>* value) { in forceValidType() argument
38 if (type == LONG) { in forceValidType()
42 __FUNCTION__, type); in forceValidType()
47 const uint8_t* TiffEntry::forceValidType<uint8_t>(TagType type, const uint8_t* value) { in forceValidType() argument
48 if (type == BYTE || type == ASCII || type == UNDEFINED) { in forceValidType()
52 __FUNCTION__, type); in forceValidType()
57 const int8_t* TiffEntry::forceValidType<int8_t>(TagType type, const int8_t* value) { in forceValidType() argument
58 if (type == SBYTE || type == ASCII || type == UNDEFINED) { in forceValidType()
62 __FUNCTION__, type); in forceValidType()
67 const uint16_t* TiffEntry::forceValidType<uint16_t>(TagType type, const uint16_t* value) { in forceValidType() argument
[all …]
/frameworks/base/libs/androidfw/tests/
DResourceUtils_test.cpp24 StringPiece package, type, entry; in TEST() local
25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); in TEST()
27 EXPECT_EQ("string", type); in TEST()
30 ASSERT_TRUE(ExtractResourceName("@android:string/foo", &package, &type, &entry)); in TEST()
32 EXPECT_EQ("string", type); in TEST()
35 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); in TEST()
37 EXPECT_EQ("string", type); in TEST()
40 ASSERT_TRUE(ExtractResourceName("@string/foo", &package, &type, &entry)); in TEST()
42 EXPECT_EQ("string", type); in TEST()
45 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST()
[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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_agree.rscript27 #define DECLARE_INPUT_SET(type, abbrev) \
28 volatile type rand_##abbrev##1_0, rand_##abbrev##1_1; \
29 volatile type##2 rand_##abbrev##2_0, rand_##abbrev##2_1; \
30 volatile type##3 rand_##abbrev##3_0, rand_##abbrev##3_1; \
31 volatile type##4 rand_##abbrev##4_0, rand_##abbrev##4_1;
46 #define DECLARE_REFERENCE_SET_VEC_VEC(type, abbrev, func) \
47 volatile type func##_rand_##abbrev##1_##abbrev##1; \
48 volatile type##2 func##_rand_##abbrev##2_##abbrev##2; \
49 volatile type##3 func##_rand_##abbrev##3_##abbrev##3; \
50 volatile type##4 func##_rand_##abbrev##4_##abbrev##4;
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dmath_agree.rscript11 #define DECLARE_INPUT_SET(type, abbrev) \
12 volatile type rand_##abbrev##1_0, rand_##abbrev##1_1; \
13 volatile type##2 rand_##abbrev##2_0, rand_##abbrev##2_1; \
14 volatile type##3 rand_##abbrev##3_0, rand_##abbrev##3_1; \
15 volatile type##4 rand_##abbrev##4_0, rand_##abbrev##4_1;
30 #define DECLARE_REFERENCE_SET_VEC_VEC(type, abbrev, func) \
31 volatile type func##_rand_##abbrev##1_##abbrev##1; \
32 volatile type##2 func##_rand_##abbrev##2_##abbrev##2; \
33 volatile type##3 func##_rand_##abbrev##3_##abbrev##3; \
34 volatile type##4 func##_rand_##abbrev##4_##abbrev##4;
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dmath_agree.rscript29 #define DECLARE_INPUT_SET(type, abbrev) \
30 volatile type rand_##abbrev##1_0, rand_##abbrev##1_1; \
31 volatile type##2 rand_##abbrev##2_0, rand_##abbrev##2_1; \
32 volatile type##3 rand_##abbrev##3_0, rand_##abbrev##3_1; \
33 volatile type##4 rand_##abbrev##4_0, rand_##abbrev##4_1;
48 #define DECLARE_REFERENCE_SET_VEC_VEC(type, abbrev, func) \
49 volatile type func##_rand_##abbrev##1_##abbrev##1; \
50 volatile type##2 func##_rand_##abbrev##2_##abbrev##2; \
51 volatile type##3 func##_rand_##abbrev##3_##abbrev##3; \
52 volatile type##4 func##_rand_##abbrev##4_##abbrev##4;
[all …]
/frameworks/base/core/java/android/content/res/
DTypedArray.java230 final int type = data[index + STYLE_TYPE]; in getText() local
231 if (type == TypedValue.TYPE_NULL) { in getText()
233 } else if (type == TypedValue.TYPE_STRING) { in getText()
243 throw new RuntimeException("getText of bad type: 0x" + Integer.toHexString(type)); in getText()
267 final int type = data[index + STYLE_TYPE]; in getString() local
268 if (type == TypedValue.TYPE_NULL) { in getString()
270 } else if (type == TypedValue.TYPE_STRING) { in getString()
281 throw new RuntimeException("getString of bad type: 0x" + Integer.toHexString(type)); in getString()
306 final int type = data[index + STYLE_TYPE]; in getNonResourceString() local
307 if (type == TypedValue.TYPE_STRING) { in getNonResourceString()
[all …]
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java39 int type; field in MtpPropertyGroup.Property
42 Property(int code, int type, int column) { in Property() argument
44 this.type = type; in Property()
76 int type; in createProperty() local
80 type = MtpConstants.TYPE_UINT32; in createProperty()
83 type = MtpConstants.TYPE_UINT16; in createProperty()
86 type = MtpConstants.TYPE_UINT16; in createProperty()
89 type = MtpConstants.TYPE_UINT64; in createProperty()
92 type = MtpConstants.TYPE_STR; in createProperty()
95 type = MtpConstants.TYPE_STR; in createProperty()
[all …]
/frameworks/base/core/java/android/accounts/
DAuthenticatorDescription.java30 final public String type; field in AuthenticatorDescription
54 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument
56 if (type == null) throw new IllegalArgumentException("type cannot be null"); in AuthenticatorDescription()
58 this.type = type; in AuthenticatorDescription()
67 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument
69 this(type, packageName, labelId, iconId, smallIconId, prefId, false); in AuthenticatorDescription()
77 public static AuthenticatorDescription newKey(String type) { in newKey() argument
78 if (type == null) throw new IllegalArgumentException("type cannot be null"); in newKey()
79 return new AuthenticatorDescription(type); in newKey()
83 private AuthenticatorDescription(String type) { in AuthenticatorDescription() argument
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_accumulator/
Dstderr.txt.expect1 reduce_general_bad_accumulator.rscript:44:34: warning: 'const' qualifier on function type 'Fn' (aka…
2 reduce_general_bad_accumulator.rscript:48:29: warning: 'const' qualifier on function type 'Fn' (aka…
3 …d_accumulator.rscript:13:12) parameter 'accum' (type 'int (*)[]') must not be pointer to incomplet…
4 …d_accumulator.rscript:18:12) parameter 'accum' (type 'int (*)[]') must not be pointer to incomplet…
5 …umulator.rscript:27:12) parameter 'accum' (type 'struct Incomplete *') must not be pointer to inco…
6 …umulator.rscript:32:12) parameter 'accum' (type 'struct Incomplete *') must not be pointer to inco…
7 …_accumulator.rscript:42:12) parameter 'accum' (type 'void (*)(void)') must not be pointer to funct…
8 …al_bad_accumulator.rscript:42:12) parameter 'other' (type 'Fn *') must point to const-qualified ty…
9 …_accumulator.rscript:47:12) parameter 'accum' (type 'void (*)(void)') must not be pointer to funct…
10 …al_bad_accumulator.rscript:47:12) parameter 'other' (type 'Fn *') must point to const-qualified ty…
[all …]
/frameworks/base/drm/java/android/drm/
DDrmInfoEvent.java74 public DrmInfoEvent(int uniqueId, int type, String message) { in DrmInfoEvent() argument
75 super(uniqueId, type, message); in DrmInfoEvent()
76 checkTypeValidity(type); in DrmInfoEvent()
89 public DrmInfoEvent(int uniqueId, int type, String message, in DrmInfoEvent() argument
91 super(uniqueId, type, message, attributes); in DrmInfoEvent()
92 checkTypeValidity(type); in DrmInfoEvent()
100 private void checkTypeValidity(int type) { in checkTypeValidity() argument
101 if (type < TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT || in checkTypeValidity()
102 type > TYPE_RIGHTS_REMOVED) { in checkTypeValidity()
104 if (type != TYPE_ALL_RIGHTS_REMOVED && in checkTypeValidity()
[all …]
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DStructTest.java96 @Field(order = 0, type = Type.U8, padding = 1)
98 @Field(order = 1, type = Type.U16)
100 @Field(order = 2, type = Type.S32)
102 @Field(order = 3, type = Type.U8)
104 @Field(order = 4, type = Type.U8, padding = 6)
108 final short type, final short code) { in HeaderMsgWithConstructor() argument
112 mIcmpType = type; in HeaderMsgWithConstructor()
140 @Field(order = 0, type = Type.U8, padding = 1)
142 @Field(order = 1, type = Type.U16)
144 @Field(order = 2, type = Type.S32)
[all …]
/frameworks/base/core/java/android/app/timezone/
DUtils.java24 static int validateVersion(String type, int version) { in validateVersion() argument
26 throw new IllegalArgumentException("Invalid " + type + " version=" + version); in validateVersion()
31 static String validateRulesVersion(String type, String rulesVersion) { in validateRulesVersion() argument
32 validateNotNull(type, rulesVersion); in validateRulesVersion()
35 throw new IllegalArgumentException(type + " must not be empty"); in validateRulesVersion()
41 static <T> T validateNotNull(String type, T object) { in validateNotNull() argument
43 throw new NullPointerException(type + " == null"); in validateNotNull()
52 static <T> T validateConditionalNull(boolean requireNotNull, String type, T object) { in validateConditionalNull() argument
54 return validateNotNull(type, object); in validateConditionalNull()
56 return validateNull(type, object); in validateConditionalNull()
[all …]
/frameworks/native/services/surfaceflinger/sysprop/api/
DSurfaceFlingerProperties-latest.txt5 type: Long
10 type: Long
15 type: Integer
20 type: DoubleList
25 type: DoubleList
30 type: DoubleList
35 type: DoubleList
40 type: Integer
61 type: Long
66 type: Integer
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleProfiling.java34 public static final int CHUNK_MPRS = ChunkHandler.type("MPRS");
35 public static final int CHUNK_MPRE = ChunkHandler.type("MPRE");
36 public static final int CHUNK_MPSS = ChunkHandler.type("MPSS");
37 public static final int CHUNK_MPSE = ChunkHandler.type("MPSE");
38 public static final int CHUNK_MPRQ = ChunkHandler.type("MPRQ");
39 public static final int CHUNK_SPSS = ChunkHandler.type("SPSS");
40 public static final int CHUNK_SPSE = ChunkHandler.type("SPSE");
79 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
80 int type = request.type; in handleChunk() local
82 if (type == CHUNK_MPRS) { in handleChunk()
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript72 #define TEST_INT_OP_TYPE(op, type) \
73 rsDebug("Testing " #op " for " #type "1", i++); \
74 res_##type##_1 = src1_##type##_1 op src2_##type##_1; \
75 rsDebug("Testing " #op " for " #type "2", i++); \
76 res_##type##_2 = src1_##type##_2 op src2_##type##_2; \
77 rsDebug("Testing " #op " for " #type "3", i++); \
78 res_##type##_3 = src1_##type##_3 op src2_##type##_3; \
79 rsDebug("Testing " #op " for " #type "4", i++); \
80 res_##type##_4 = src1_##type##_4 op src2_##type##_4;
100 #define TEST_XN_FUNC_XN_XN(type, fnc) \
[all …]
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rscript72 #define TEST_INT_OP_TYPE(op, type) \
73 rsDebug("Testing " #op " for " #type "1", i++); \
74 res_##type##_1 = src1_##type##_1 op src2_##type##_1; \
75 rsDebug("Testing " #op " for " #type "2", i++); \
76 res_##type##_2 = src1_##type##_2 op src2_##type##_2; \
77 rsDebug("Testing " #op " for " #type "3", i++); \
78 res_##type##_3 = src1_##type##_3 op src2_##type##_3; \
79 rsDebug("Testing " #op " for " #type "4", i++); \
80 res_##type##_4 = src1_##type##_4 op src2_##type##_4;
100 #define TEST_XN_FUNC_XN_XN(type, fnc) \
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardIndicationRotateTextViewController.java101 public void updateIndication(@IndicationType int type, KeyguardIndication newIndication, in updateIndication() argument
103 if (type == INDICATION_TYPE_NOW_PLAYING in updateIndication()
104 || type == INDICATION_TYPE_REVERSE_CHARGING) { in updateIndication()
108 final boolean hasPreviousIndication = mIndicationMessages.get(type) != null; in updateIndication()
111 mIndicationMessages.remove(type); in updateIndication()
112 mIndicationQueue.removeIf(x -> x == type); in updateIndication()
115 mIndicationQueue.add(type); in updateIndication()
118 mIndicationMessages.put(type, newIndication); in updateIndication()
127 || mCurrIndicationType == type; in updateIndication()
130 showIndication(type); in updateIndication()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbACInterface.java84 public UsbACInterface(int length, byte type, byte subtype, int subclass) { in UsbACInterface() argument
85 super(length, type); in UsbACInterface()
99 ByteStream stream, int length, byte type, byte subtype, int subClass) { in allocAudioControlDescriptor() argument
112 return new Usb20ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor()
114 return new Usb10ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor()
128 return new Usb20ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
130 return new Usb10ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
144 return new Usb20ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
146 return new Usb10ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor()
154 return new UsbACSelectorUnit(length, type, subtype, subClass); in allocAudioControlDescriptor()
[all …]
/frameworks/base/core/proto/android/os/
Dincident.proto70 // message type can be handled case by case, e.g. GZippedFileProto.
81 (section).type = SECTION_COMMAND,
86 (section).type = SECTION_FILE,
93 (section).type = SECTION_FILE,
98 (section).type = SECTION_LOG,
103 (section).type = SECTION_LOG,
108 (section).type = SECTION_LOG,
113 (section).type = SECTION_LOG,
118 (section).type = SECTION_LOG,
123 (section).type = SECTION_LOG,
[all …]

12345678910>>...99