/frameworks/base/tools/aapt2/ |
D | Resource_test.cpp | 24 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/core/java/android/hardware/camera2/utils/ |
D | TypeReference.java | 87 private TypeReference(Type type) { in TypeReference() argument 88 mType = type; in TypeReference() 104 public SpecializedBaseTypeReference(Type type) { in SpecializedBaseTypeReference() argument 105 super(type); in SpecializedBaseTypeReference() 139 public static TypeReference<?> createSpecializedTypeReference(Type type) { in createSpecializedTypeReference() argument 140 return new SpecializedBaseTypeReference(type); in createSpecializedTypeReference() 162 private static final Class<?> getRawType(Type type) { in getRawType() argument 163 if (type == null) { in getRawType() 167 if (type instanceof Class<?>) { in getRawType() 168 return (Class<?>)type; in getRawType() [all …]
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsProviderTest.java | 253 private void testResetModePackageDefaultsCommon(int type) throws Exception { in testResetModePackageDefaultsCommon() argument 255 setSettingViaShell(type, FAKE_SETTING_NAME, null, true); in testResetModePackageDefaultsCommon() 258 setSettingViaShell(type, FAKE_SETTING_NAME, in testResetModePackageDefaultsCommon() 262 resetToDefaultsViaShell(type, "shell"); in testResetModePackageDefaultsCommon() 263 resetToDefaultsViaShell(type, "root"); in testResetModePackageDefaultsCommon() 266 assertNull(getSetting(type, FAKE_SETTING_NAME)); in testResetModePackageDefaultsCommon() 269 setSettingViaShell(type, FAKE_SETTING_NAME, in testResetModePackageDefaultsCommon() 272 setSettingViaShell(type, FAKE_SETTING_NAME, in testResetModePackageDefaultsCommon() 276 resetToDefaultsViaShell(type, "shell"); in testResetModePackageDefaultsCommon() 277 resetToDefaultsViaShell(type, "root"); in testResetModePackageDefaultsCommon() [all …]
|
D | BaseSettingsProviderTest.java | 60 protected void setStringViaFrontEndApiSetting(int type, String name, String value, int userId) { in setStringViaFrontEndApiSetting() argument 63 switch (type) { in setStringViaFrontEndApiSetting() 77 throw new IllegalArgumentException("Invalid type: " + type); in setStringViaFrontEndApiSetting() 82 protected String getStringViaFrontEndApiSetting(int type, String name, int userId) { in getStringViaFrontEndApiSetting() argument 85 switch (type) { in getStringViaFrontEndApiSetting() 99 throw new IllegalArgumentException("Invalid type: " + type); in getStringViaFrontEndApiSetting() 104 protected Uri insertStringViaProviderApi(int type, String name, String value, in insertStringViaProviderApi() argument 106 Uri uri = getBaseUriForType(type); in insertStringViaProviderApi() 117 protected int deleteStringViaProviderApi(int type, String name) { in deleteStringViaProviderApi() argument 118 Uri uri = getBaseUriForType(type); in deleteStringViaProviderApi() [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | UidHealthStats.java | 34 @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/ |
D | TiffEntry.cpp | 37 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | TonesAutoTest.java | 37 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/native/vulkan/api/templates/ |
D | vk_xml.tmpl | 41 <!-- SECTION: Vulkan type definitions --> 43 <type name="vk_platform" category="include">#include "vk_platform.h"</type> 45 <type category="define">#define <name>VK_MAKE_VERSION</name>(major, minor, patch) \ 46 «((major << 22) | (minor << 12) | patch)</type>» 48 <type category="define">// Vulkan API version supported by this file«« 49 …I_VERSION</name> <type>VK_MAKE_VERSION</type>({{Global "VERSION_MAJOR"}}, {{Global "VERSION_MINOR"… 51 »»<type category="define">«« 57 »»»</type> 59 <type category="define">««« 60 #define <name>VK_DEFINE_HANDLE</name>(obj) typedef struct obj##_T* obj;</type> [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 171 final int type = data[index+AssetManager.STYLE_TYPE]; in getText() local 172 if (type == TypedValue.TYPE_NULL) { in getText() 174 } else if (type == TypedValue.TYPE_STRING) { in getText() 184 throw new RuntimeException("getText of bad type: 0x" + Integer.toHexString(type)); in getText() 208 final int type = data[index+AssetManager.STYLE_TYPE]; in getString() local 209 if (type == TypedValue.TYPE_NULL) { in getString() 211 } else if (type == TypedValue.TYPE_STRING) { in getString() 222 throw new RuntimeException("getString of bad type: 0x" + Integer.toHexString(type)); in getString() 247 final int type = data[index+AssetManager.STYLE_TYPE]; in getNonResourceString() local 248 if (type == TypedValue.TYPE_STRING) { in getNonResourceString() [all …]
|
/frameworks/base/core/java/android/accounts/ |
D | AuthenticatorDescription.java | 27 final public String type; field in AuthenticatorDescription 51 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument 53 if (type == null) throw new IllegalArgumentException("type cannot be null"); in AuthenticatorDescription() 55 this.type = type; in AuthenticatorDescription() 64 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument 66 this(type, packageName, labelId, iconId, smallIconId, prefId, false); in AuthenticatorDescription() 74 public static AuthenticatorDescription newKey(String type) { in newKey() argument 75 if (type == null) throw new IllegalArgumentException("type cannot be null"); in newKey() 76 return new AuthenticatorDescription(type); in newKey() 79 private AuthenticatorDescription(String type) { in AuthenticatorDescription() argument [all …]
|
/frameworks/compile/slang/tests/F_reduce_general_bad_accumulator/ |
D | stderr.txt.expect | 1 reduce_general_bad_accumulator.rs:44:34: warning: 'const' qualifier on function type 'Fn' (aka 'voi… 2 reduce_general_bad_accumulator.rs:48:29: warning: 'const' qualifier on function type 'Fn' (aka 'voi… 3 …al_bad_accumulator.rs:13:12) parameter 'accum' (type 'int (*)[]') must not be pointer to incomplet… 4 …al_bad_accumulator.rs:18:12) parameter 'accum' (type 'int (*)[]') must not be pointer to incomplet… 5 …d_accumulator.rs:27:12) parameter 'accum' (type 'struct Incomplete *') must not be pointer to inco… 6 …d_accumulator.rs:32:12) parameter 'accum' (type 'struct Incomplete *') must not be pointer to inco… 7 …l_bad_accumulator.rs:42:12) parameter 'accum' (type 'void (*)(void)') must not be pointer to funct… 8 …general_bad_accumulator.rs:42:12) parameter 'other' (type 'Fn *') must point to const-qualified ty… 9 …l_bad_accumulator.rs:47:12) parameter 'accum' (type 'void (*)(void)') must not be pointer to funct… 10 …general_bad_accumulator.rs:47:12) parameter 'other' (type 'Fn *') must point to const-qualified ty… [all …]
|
/frameworks/base/drm/java/android/drm/ |
D | DrmInfoEvent.java | 72 public DrmInfoEvent(int uniqueId, int type, String message) { in DrmInfoEvent() argument 73 super(uniqueId, type, message); in DrmInfoEvent() 74 checkTypeValidity(type); in DrmInfoEvent() 87 public DrmInfoEvent(int uniqueId, int type, String message, in DrmInfoEvent() argument 89 super(uniqueId, type, message, attributes); in DrmInfoEvent() 90 checkTypeValidity(type); in DrmInfoEvent() 98 private void checkTypeValidity(int type) { in checkTypeValidity() argument 99 if (type < TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT || in checkTypeValidity() 100 type > TYPE_RIGHTS_REMOVED) { in checkTypeValidity() 102 if (type != TYPE_ALL_RIGHTS_REMOVED && in checkTypeValidity() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbACInterface.java | 84 public UsbACInterface(int length, byte type, byte subtype, byte subclass) { in UsbACInterface() argument 85 super(length, type); in UsbACInterface() 99 ByteStream stream, int length, byte type, byte subtype, byte subClass) { in allocAudioControlDescriptor() argument 106 return new Usb20ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor() 108 return new Usb10ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor() 116 return new Usb20ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 118 return new Usb10ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 126 return new Usb20ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 128 return new Usb10ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 133 return new UsbACSelectorUnit(length, type, subtype, subClass); in allocAudioControlDescriptor() [all …]
|
/frameworks/rs/rsov/compiler/spirit/ |
D | generate.py | 62 for type, var, quantifier, comment in generate_member_list(operands): 70 str += '%s *%s=nullptr' % (type, param) 72 vecTy = "std::vector<%s>" % type 75 str += '%s %s' % (type, param) 87 for type, var, quantifier, comment in generate_member_list(operands): 105 for type, var, quantifier, comment in generate_member_list(operands): 195 type = operand['kind'] 196 if type == 'IdResultType' or type == 'IdResult': 197 varName = "m%s" % type[2:] 203 members.append((type, varName, quantifier, comment)) [all …]
|
/frameworks/ml/nn/runtime/test/generated/vts_models/ |
D | lstm.model.cpp | 6 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 15 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 24 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 33 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 42 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 51 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 60 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 69 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 78 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 87 .type = OperandType::TENSOR_FLOAT32, in createTestModel() [all …]
|
D | lstm3.model.cpp | 6 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 15 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 24 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 33 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 42 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 51 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 60 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 69 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 78 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 87 .type = OperandType::TENSOR_FLOAT32, in createTestModel() [all …]
|
D | lstm2.model.cpp | 6 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 15 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 24 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 33 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 42 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 51 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 60 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 69 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 78 .type = OperandType::TENSOR_FLOAT32, in createTestModel() 87 .type = OperandType::TENSOR_FLOAT32, in createTestModel() [all …]
|
/frameworks/base/core/java/android/app/timezone/ |
D | Utils.java | 24 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/base/core/java/android/ddm/ |
D | DdmHandleProfiling.java | 31 public static final int CHUNK_MPRS = type("MPRS"); 32 public static final int CHUNK_MPRE = type("MPRE"); 33 public static final int CHUNK_MPSS = type("MPSS"); 34 public static final int CHUNK_MPSE = type("MPSE"); 35 public static final int CHUNK_MPRQ = type("MPRQ"); 36 public static final int CHUNK_SPSS = type("SPSS"); 37 public static final int CHUNK_SPSE = type("SPSE"); 76 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk() 77 int type = request.type; in handleChunk() local 79 if (type == CHUNK_MPRS) { in handleChunk() [all …]
|
D | DdmHandleHeap.java | 33 public static final int CHUNK_HPIF = type("HPIF"); 34 public static final int CHUNK_HPSG = type("HPSG"); 35 public static final int CHUNK_HPDU = type("HPDU"); 36 public static final int CHUNK_HPDS = type("HPDS"); 37 public static final int CHUNK_NHSG = type("NHSG"); 38 public static final int CHUNK_HPGC = type("HPGC"); 39 public static final int CHUNK_REAE = type("REAE"); 40 public static final int CHUNK_REAQ = type("REAQ"); 41 public static final int CHUNK_REAL = type("REAL"); 81 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner.cpp | 36 ResourceTableType* type, ResourceEntry* entry) { in AssignId() argument 38 if (!type->id || type->id.value() == id.type_id()) { in AssignId() 39 type->id = id.type_id(); in AssignId() 48 const ResourceId existing_id(pkg->id.value(), type->id ? type->id.value() : 0, in AssignId() 61 for (auto& type : package->types) { in Consume() local 62 for (auto& entry : type->entries) { in Consume() 63 const ResourceName name(package->name, type->type, entry->name); in Consume() 72 package.get(), type.get(), entry.get()); in Consume() 79 if (package->id && type->id && entry->id) { in Consume() 81 ResourceId resource_id(package->id.value(), type->id.value(), in Consume() [all …]
|
/frameworks/support/lifecycle/compiler/src/main/kotlin/android/arch/lifecycle/ |
D | transformation.kt | 28 import javax.lang.model.type.NoType in <lambda>() 29 import javax.lang.model.type.TypeMirror in <lambda>() 36 stack += observer.type.interfaces.reversed() in <lambda>() 37 stack += observer.type.superclass in <lambda>() 44 val type = MoreTypes.asTypeElement(typeMirror) in <lambda>() constant 45 val currentObserver = world[type] in <lambda>() 49 stack += type.interfaces.reversed() in <lambda>() 50 stack += type.superclass in <lambda>() 57 type: TypeElement, in mergeAndVerifyMethods() 65 processingEnv.elementUtils.overrides(method, parentMethod.method, type) in mergeAndVerifyMethods() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResourceUtils_test.cpp | 24 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("string/foo", &package, &type, &entry)); in TEST() 32 EXPECT_EQ("string", type); in TEST() 35 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST() 37 EXPECT_EQ("", type); in TEST() 40 ASSERT_TRUE(ExtractResourceName("android:foo", &package, &type, &entry)); in TEST() 42 EXPECT_EQ("", type); in TEST() 45 EXPECT_FALSE(ExtractResourceName(":string/foo", &package, &type, &entry)); in TEST() [all …]
|
/frameworks/av/media/libstagefright/wifi-display/ |
D | VideoFormats.cpp | 146 void VideoFormats::setNativeResolution(ResolutionType type, size_t index) { in setNativeResolution() argument 147 CHECK_LT(type, kNumResolutionTypes); in setNativeResolution() 148 CHECK(GetConfiguration(type, index, NULL, NULL, NULL, NULL)); in setNativeResolution() 150 mNativeType = type; in setNativeResolution() 153 setResolutionEnabled(type, index); in setNativeResolution() 157 ResolutionType *type, size_t *index) const { in getNativeResolution() argument 158 *type = mNativeType; in getNativeResolution() 182 ResolutionType type, size_t index, in enableResolutionUpto() argument 186 if (!GetConfiguration(type, index, &width, &height, in enableResolutionUpto() 205 ResolutionType type, size_t index, bool enabled) { in setResolutionEnabled() argument [all …]
|
/frameworks/ml/nn/common/ |
D | Utils.cpp | 160 const char* getOperationName(OperationType type) { in getOperationName() argument 161 uint32_t n = static_cast<uint32_t>(type); in getOperationName() 203 uint32_t sizeOfData(OperandType type, const std::vector<uint32_t>& dimensions) { in sizeOfData() argument 204 int n = static_cast<int>(type); in sizeOfData() 222 const std::string& type = "ashmem"; in allocateSharedMemory() local 223 sp<IAllocator> allocator = IAllocator::getService(type); in allocateSharedMemory() 226 LOG(ERROR) << "unable to allocate " << size << " bytes of " << type; in allocateSharedMemory() 259 int validateOperandType(const ANeuralNetworksOperandType& type, const char* tag, in validateOperandType() argument 262 for (uint32_t i = 0; i < type.dimensionCount; i++) { in validateOperandType() 263 if (type.dimensions[i] == 0) { in validateOperandType() [all …]
|