Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 152) sorted by relevance

1234567

/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DAbstractClassAdapter.java53 String renameTypeDesc(String desc) { in renameTypeDesc() argument
54 if (desc == null) { in renameTypeDesc()
58 return renameType(Type.getType(desc)); in renameTypeDesc()
117 String renameMethodDesc(String desc) { in renameMethodDesc() argument
118 if (desc == null) { in renameMethodDesc()
122 Type[] args = Type.getArgumentTypes(desc); in renameMethodDesc()
131 Type ret = Type.getReturnType(desc); in renameMethodDesc()
190 public void visitOuterClass(String owner, String name, String desc) { in visitOuterClass() argument
191 super.visitOuterClass(renameInternalType(owner), name, renameTypeDesc(desc)); in visitOuterClass()
195 public MethodVisitor visitMethod(int access, String name, String desc, in visitMethod() argument
[all …]
DReplaceMethodCallsAdapter.java65 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in METHOD_REPLACERS.add() argument
67 ARRAYCOPY_DESCRIPTORS.contains(desc); in METHOD_REPLACERS.add()
72 mi.desc = "(Ljava/lang/Object;ILjava/lang/Object;II)V"; in METHOD_REPLACERS.add()
83 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in METHOD_REPLACERS.add() argument
84 return JAVA_LOCALE_CLASS.equals(owner) && "()Ljava/lang/String;".equals(desc) && in METHOD_REPLACERS.add()
92 mi.desc = LOCALE_TO_STRING; in METHOD_REPLACERS.add()
107 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in METHOD_REPLACERS.add() argument
109 ("adjustLanguageCode".equals(name) && desc.equals(STRING_TO_STRING) || in METHOD_REPLACERS.add()
110 "forLanguageTag".equals(name) && desc.equals(STRING_TO_LOCALE) || in METHOD_REPLACERS.add()
111 "getDefault".equals(name) && desc.equals(VOID_TO_LOCALE)); in METHOD_REPLACERS.add()
[all …]
DDelegateClassAdapter.java76 public FieldVisitor visitField(int access, String name, String desc, String signature, in visitField() argument
83 return super.visitField(access, name, desc, signature, value); in visitField()
87 public MethodVisitor visitMethod(int access, String name, String desc, in visitMethod() argument
98 return super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
106 mClassName, name, desc)); in visitMethod()
112 MethodVisitor mwDelegate = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
115 mLog, null, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
126 desc, signature, exceptions); in visitMethod()
141 desc, signature, exceptions); in visitMethod()
143 desc, signature, exceptions); in visitMethod()
[all …]
DDependencyFinder.java366 public boolean considerDesc(String desc) { in considerDesc() argument
367 if (desc != null) { in considerDesc()
369 if (desc.length() > 0 && desc.charAt(0) == '(') { in considerDesc()
371 Type t = Type.getReturnType(desc); in considerDesc()
374 for (Type arg : Type.getArgumentTypes(desc)) { in considerDesc()
379 Type t = Type.getType(desc); in considerDesc()
417 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
419 considerDesc(desc); in visitAnnotation()
441 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
443 considerDesc(desc); in visitAnnotation()
[all …]
DTransformClassAdapter.java91 public MethodVisitor visitMethod(int access, String name, String desc, in visitMethod() argument
95 Type t = Type.getReturnType(desc); in visitMethod()
125 String invokeSignature = methodSignature + desc; in visitMethod()
128 MethodVisitor mw = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
129 return new StubMethodAdapter(mw, name, returnType(desc), invokeSignature, in visitMethod()
133 mLog.debug(" Keep: %s %s", name, desc); in visitMethod()
134 return super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
141 Type returnType(String desc) { in returnType() argument
142 if (desc != null) { in returnType()
144 return Type.getReturnType(desc); in returnType()
DDelegateMethodAdapter.java124 String desc, in DelegateMethodAdapter() argument
133 mDesc = desc; in DelegateMethodAdapter()
248 String desc = Type.getMethodDescriptor( in generateDelegateCode() local
256 desc, in generateDelegateCode()
270 mLog.debug("Delegate: %1$s # %2$s %3$s", delegateClassName, mMethodName, desc); in generateDelegateCode()
302 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
304 return mOrgWriter.visitAnnotation(desc, visible); in visitAnnotation()
321 public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, in visitParameterAnnotation() argument
324 return mOrgWriter.visitParameterAnnotation(parameter, desc, visible); in visitParameterAnnotation()
375 public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { in visitMethodInsn() argument
[all …]
DAsmAnalyzer.java503 public void considerDesc(String desc) { in considerDesc() argument
504 if (desc != null) { in considerDesc()
506 Type t = Type.getType(desc); in considerDesc()
540 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
542 considerDesc(desc); in visitAnnotation()
564 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
566 considerDesc(desc); in visitAnnotation()
583 public FieldVisitor visitField(int access, String name, String desc, in visitField() argument
586 considerDesc(desc); in visitField()
602 public MethodVisitor visitMethod(int access, String name, String desc, in visitMethod() argument
[all …]
DStubMethodAdapter.java219 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
220 return mParentVisitor.visitAnnotation(desc, visible); in visitAnnotation()
230 public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, in visitParameterAnnotation() argument
232 return mParentVisitor.visitParameterAnnotation(parameter, desc, visible); in visitParameterAnnotation()
292 public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { in visitMethodInsn() argument
294 mParentVisitor.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
299 public void visitFieldInsn(int opcode, String owner, String name, String desc) { in visitFieldInsn() argument
301 mParentVisitor.visitFieldInsn(opcode, owner, name, desc); in visitFieldInsn()
341 public void visitLocalVariable(String name, String desc, String signature, in visitLocalVariable() argument
344 mParentVisitor.visitLocalVariable(name, desc, signature, start, end, index); in visitLocalVariable()
[all …]
/frameworks/av/media/libeffects/proxy/
DEffectProxy.cpp55 effect_descriptor_t* desc; in EffectProxyCreate() local
75 desc = new effect_descriptor_t[SUB_FX_COUNT]; in EffectProxyCreate()
79 pContext->desc = new effect_descriptor_t[SUB_FX_COUNT]; in EffectProxyCreate()
86 delete[] desc; in EffectProxyCreate()
89 delete[] pContext->desc; in EffectProxyCreate()
98 desc[0] = *(effect_descriptor_t*)(sube[0])->object; in EffectProxyCreate()
99 desc[1] = *(effect_descriptor_t*)(sube[1])->object; in EffectProxyCreate()
100 aeli[0] = sube[0]->lib->desc; in EffectProxyCreate()
101 aeli[1] = sube[1]->lib->desc; in EffectProxyCreate()
102 if ((desc[0].flags & EFFECT_FLAG_HW_ACC_TUNNEL) && in EffectProxyCreate()
[all …]
/frameworks/av/camera/
DVendorTagDescriptor.cpp393 sp<android::VendorTagDescriptor> desc = new android::VendorTagDescriptor(); in readFromParcel() local
394 if ((res = parcel->readParcelable(desc.get())) != OK) { in readFromParcel()
400 if ((res = addVendorDescriptor(id, desc)) != OK) { in readFromParcel()
412 auto desc = mVendorMap.find(id); in getTagCount() local
413 if (desc != mVendorMap.end()) { in getTagCount()
414 ret = desc->second->getTagCount(); in getTagCount()
424 auto desc = mVendorMap.find(id); in getTagArray() local
425 if (desc != mVendorMap.end()) { in getTagArray()
426 desc->second->getTagArray(tagArray); in getTagArray()
435 auto desc = mVendorMap.find(id); in getSectionName() local
[all …]
/frameworks/av/media/libstagefright/rtsp/
DARTPSource.cpp54 AString desc; in ARTPSource() local
56 sessionDesc->getFormatType(index, &PT, &desc, &params); in ARTPSource()
58 if (!strncmp(desc.c_str(), "H264/", 5)) { in ARTPSource()
61 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in ARTPSource()
63 } else if (!strncmp(desc.c_str(), "H263-1998/", 10) in ARTPSource()
64 || !strncmp(desc.c_str(), "H263-2000/", 10)) { in ARTPSource()
67 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in ARTPSource()
69 } else if (!strncmp(desc.c_str(), "AMR-WB/", 7)) { in ARTPSource()
71 } else if (!strncmp(desc.c_str(), "MP4V-ES/", 8) in ARTPSource()
72 || !strncasecmp(desc.c_str(), "mpeg4-generic/", 14)) { in ARTPSource()
[all …]
DARawAudioAssembler.cpp120 bool ARawAudioAssembler::Supports(const char *desc) { in Supports() argument
121 return !strncmp(desc, "PCMU/", 5) in Supports()
122 || !strncmp(desc, "PCMA/", 5); in Supports()
127 const char *desc, const sp<MetaData> &format) { in MakeFormat() argument
128 if (!strncmp(desc, "PCMU/", 5)) { in MakeFormat()
130 } else if (!strncmp(desc, "PCMA/", 5)) { in MakeFormat()
138 desc, &sampleRate, &numChannels); in MakeFormat()
DASessionDescription.cpp55 AString desc((const char *)data, size); in parse() local
59 ssize_t eolPos = desc.find("\n", i); in parse()
66 if ((size_t)eolPos > i && desc.c_str()[eolPos - 1] == '\r') { in parse()
69 line.setTo(desc, i, eolPos - i - 1); in parse()
71 line.setTo(desc, i, eolPos - i); in parse()
200 AString *desc, AString *params) const { in getFormatType() argument
216 if (findAttribute(index, key, desc)) { in getFormatType()
222 desc->clear(); in getFormatType()
280 const char *desc, int32_t *timescale, int32_t *numChannels) { in ParseFormatDesc() argument
281 const char *slash1 = strchr(desc, '/'); in ParseFormatDesc()
/frameworks/av/media/libeffects/factory/
DEffectsFactoryState.c34 effect_descriptor_t **desc) in findEffect() argument
65 if (desc) { in findEffect()
66 *desc = d; in findEffect()
114 void dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent) { in dumpEffectDescriptor() argument
124 snprintf(s, sizeof(s), "%s%s / %s\n", idt, desc->name, desc->implementor); in dumpEffectDescriptor()
127 uuidToString(&desc->uuid, s, sizeof(s)); in dumpEffectDescriptor()
131 uuidToString(&desc->type, s, sizeof(s)); in dumpEffectDescriptor()
136 desc->apiVersion, idt, desc->flags); in dumpEffectDescriptor()
/frameworks/base/core/java/android/accounts/
DChooseAccountTypeActivity.java96 setResultAndFinish(mAuthenticatorInfosToDisplay.get(0).desc.type); in onCreate()
110 setResultAndFinish(mAuthenticatorInfosToDisplay.get(position).desc.type); in onCreate()
127 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in buildTypeToAuthDescriptionMap()
131 Context authContext = createPackageContext(desc.packageName, 0); in buildTypeToAuthDescriptionMap()
132 icon = authContext.getDrawable(desc.iconId); in buildTypeToAuthDescriptionMap()
133 final CharSequence sequence = authContext.getResources().getText(desc.labelId); in buildTypeToAuthDescriptionMap()
141 Log.w(TAG, "No icon name for account type " + desc.type); in buildTypeToAuthDescriptionMap()
146 Log.w(TAG, "No icon resource for account type " + desc.type); in buildTypeToAuthDescriptionMap()
149 AuthInfo authInfo = new AuthInfo(desc, name, icon); in buildTypeToAuthDescriptionMap()
150 mTypeToAuthenticatorInfo.put(desc.type, authInfo); in buildTypeToAuthDescriptionMap()
[all …]
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp63 llvm::cl::desc("<input bitcode files>"));
67 llvm::cl::desc("Lists of kernels to merge (as source-and-slot "
72 llvm::cl::desc("Invocable functions"));
75 OptOutputFilename("o", llvm::cl::desc("Specify the output filename"),
80 OptBCLibFilename("bclib", llvm::cl::desc("Specify the bclib filename"),
84 OptBCLibRelaxedFilename("bclib_relaxed", llvm::cl::desc("Specify the bclib filename optimized for "
90 OptOutputPath("output_path", llvm::cl::desc("Specify the output path"),
96 llvm::cl::desc("Emit an LLVM-IR version of the generated program"));
100 llvm::cl::desc("Specify the target triple (default: "
106 llvm::cl::desc("Alias for -mtriple"),
[all …]
/frameworks/compile/mclinker/unittests/
DStaticResolverTest.cpp53 ASSERT_TRUE(mcld::ResolveInfo::Define == new_sym->desc()); in TEST_F()
54 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F()
80 ASSERT_TRUE(mcld::ResolveInfo::Undefined == new_sym->desc()); in TEST_F()
81 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F()
107 ASSERT_TRUE(mcld::ResolveInfo::Define == new_sym->desc()); in TEST_F()
108 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F()
134 ASSERT_TRUE(mcld::ResolveInfo::Undefined == new_sym->desc()); in TEST_F()
135 ASSERT_TRUE(mcld::ResolveInfo::Undefined == old_sym->desc()); in TEST_F()
184 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F()
185 ASSERT_TRUE(mcld::ResolveInfo::Define == new_sym->desc()); in TEST_F()
[all …]
DNamePoolTest.cpp67 ResolveInfo::Desc desc = ResolveInfo::Define; in TEST_F() local
74 name, isDyn, type, desc, binding, size, other, NULL, result1); in TEST_F()
80 EXPECT_EQ(desc, result1.info->desc()); in TEST_F()
87 name, isDyn, type, desc, binding, size, other, NULL, result2); in TEST_F()
93 EXPECT_EQ(desc, result1.info->desc()); in TEST_F()
105 ResolveInfo::Desc desc = ResolveInfo::Undefined; in TEST_F() local
111 name, isDyn, type, desc, binding, size, other, NULL, result1); in TEST_F()
117 EXPECT_EQ(desc, result1.info->desc()); in TEST_F()
124 name, isDyn, type, desc, binding, size, other, NULL, result2); in TEST_F()
132 desc, in TEST_F()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java104 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() local
105 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getDrawableForType()
108 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
131 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() local
132 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getLabelForType()
134 label = authContext.getResources().getText(desc.labelId); in getLabelForType()
151 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getPackageForType() local
152 return desc.packageName; in getPackageForType()
165 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelIdForType() local
166 return desc.labelId; in getLabelIdForType()
[all …]
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp43 int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer) { in AHardwareBuffer_allocate() argument
44 if (!outBuffer || !desc) in AHardwareBuffer_allocate()
47 if (!AHardwareBuffer_isValidPixelFormat(desc->format)) { in AHardwareBuffer_allocate()
48 ALOGE("Invalid AHardwareBuffer pixel format %u (%#x))", desc->format, desc->format); in AHardwareBuffer_allocate()
52 int format = AHardwareBuffer_convertToPixelFormat(desc->format); in AHardwareBuffer_allocate()
53 if (desc->rfu0 != 0 || desc->rfu1 != 0) { in AHardwareBuffer_allocate()
58 if (desc->format == AHARDWAREBUFFER_FORMAT_BLOB && desc->height != 1) { in AHardwareBuffer_allocate()
63 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate()
65 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
74 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle); in AHardwareBuffer_allocate()
/frameworks/compile/slang/
Dllvm-rs-as.cpp41 InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-"));
44 OutputFilename("o", cl::desc("Override output filename"),
48 Force("f", cl::desc("Enable binary output on terminals"));
51 DisableOutput("disable-output", cl::desc("Disable output"), cl::init(false));
54 TargetAPI("target-api", cl::desc("Specify RenderScript target API version "
59 DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
63 cl::desc("Do not run verifier on input LLVM (dangerous!)"));
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c86 struct usb_descriptor_header* desc; in usb_device_added() local
103 struct usb_descriptor_header* desc; in usb_device_added() local
113 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added()
114 if (desc->bDescriptorType == USB_DT_INTERFACE) { in usb_device_added()
115 intf = (struct usb_interface_descriptor *)desc; in usb_device_added()
116 } else if (desc->bDescriptorType == USB_DT_ENDPOINT) { in usb_device_added()
118 ep2 = (struct usb_endpoint_descriptor *)desc; in usb_device_added()
120 ep1 = (struct usb_endpoint_descriptor *)desc; in usb_device_added()
/frameworks/compile/libbcc/tools/bcc_compat/
DMain.cpp46 llvm::cl::desc("<input bitcode files>"));
49 OptOutputFilename("o", llvm::cl::desc("Specify the output filename"),
53 OptRuntimePath("rt-path", llvm::cl::desc("Specify the runtime library path"),
58 llvm::cl::desc("Specify the target triple (default: "
64 llvm::cl::desc("Alias for -mtriple"),
71 OptPIC("fPIC", llvm::cl::desc("Generate fully relocatable, position independent"
75 OptOptLevel("O", llvm::cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
80 OptC("c", llvm::cl::desc("Compile and assemble, but do not link."));
89 OptImmObjectOutput("or", llvm::cl::desc("Specify the filename for output the "
95 OptShared("shared", llvm::cl::desc("Create a shared library from input bitcode "
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DEffectDescriptor.cpp54 status_t EffectDescriptorCollection::registerEffect(const effect_descriptor_t *desc, in registerEffect() argument
60 if (mTotalEffectsMemory + desc->memoryUsage > getMaxEffectsMemory()) { in registerEffect()
62 desc->name, desc->memoryUsage); in registerEffect()
65 mTotalEffectsMemory += desc->memoryUsage; in registerEffect()
70 desc->name, io, strategy, session, id); in registerEffect()
71 ALOGV("registerEffect() memory %d, total memory %d", desc->memoryUsage, mTotalEffectsMemory); in registerEffect()
74 memcpy (&effectDesc->mDesc, desc, sizeof(effect_descriptor_t)); in registerEffect()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp187 sp<SwAudioOutputDescriptor> desc = mOutputs.valueFor(outputs[i]); in setDeviceConnectionStateInt() local
191 (((desc->mFlags & AUDIO_OUTPUT_FLAG_DIRECT) != 0) && in setDeviceConnectionStateInt()
192 (desc->mDirectOpenCount == 0))) { in setDeviceConnectionStateInt()
206 sp<SwAudioOutputDescriptor> desc = mOutputs.valueAt(i); in setDeviceConnectionStateInt() local
207 if ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || (desc != mPrimaryOutput)) { in setDeviceConnectionStateInt()
208 audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/); in setDeviceConnectionStateInt()
212 bool force = !desc->isDuplicated() in setDeviceConnectionStateInt()
216 setOutputDevice(desc, newDevice, force, 0); in setDeviceConnectionStateInt()
569 sp<SwAudioOutputDescriptor> desc = mOutputs.valueAt(i); in setPhoneState() local
573 if ((isStrategyActive(desc, STRATEGY_MEDIA, in setPhoneState()
[all …]

1234567