Home
last modified time | relevance | path

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

123456789

/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()
84 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in METHOD_REPLACERS.add() argument
86 ("adjustLanguageCode".equals(name) && desc.equals(STRING_TO_STRING) || in METHOD_REPLACERS.add()
87 "getDefault".equals(name) && desc.equals(VOID_TO_LOCALE)); in METHOD_REPLACERS.add()
99 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in METHOD_REPLACERS.add() argument
106 assert mi.desc.equals("(Ljava/lang/String;Ljava/lang/Throwable;)V") in METHOD_REPLACERS.add()
107 || mi.desc.equals("(Ljava/lang/String;)V"); in METHOD_REPLACERS.add()
116 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in METHOD_REPLACERS.add() argument
[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 …]
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 …]
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp43 int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer) { in AHardwareBuffer_allocate() argument
44 if (!outBuffer || !desc) return BAD_VALUE; in AHardwareBuffer_allocate()
45 if (!AHardwareBuffer_isValidDescription(desc, /*log=*/true)) return BAD_VALUE; in AHardwareBuffer_allocate()
47 int format = AHardwareBuffer_convertToPixelFormat(desc->format); in AHardwareBuffer_allocate()
48 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate()
50 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
59 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle); in AHardwareBuffer_allocate()
368 int AHardwareBuffer_isSupported(const AHardwareBuffer_Desc* desc) { in AHardwareBuffer_isSupported() argument
369 if (!desc) return 0; in AHardwareBuffer_isSupported()
370 if (!AHardwareBuffer_isValidDescription(desc, /*log=*/false)) return 0; in AHardwareBuffer_isSupported()
[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/media/codec2/sfplugin/
DReflectedParamUpdater.cpp119 for (const std::shared_ptr<C2ParamDescriptor> &desc : paramDescs) { in addParamDesc() local
121 desc->index().coreIndex()); in addParamDesc()
123 ALOGD("Could not describe %s", desc->name().c_str()); in addParamDesc()
126 addParamDesc(desc, *structDesc, reflector, true /* markVendor */); in addParamDesc()
130 for (const std::shared_ptr<C2ParamDescriptor> &desc : paramDescs) { in addParamDesc() local
131 if (!desc->index().isVendor()) { in addParamDesc()
135 desc->index().coreIndex()); in addParamDesc()
137 addParamDesc(desc, *structDesc, reflector, false /* markVendor */); in addParamDesc()
143 std::shared_ptr<C2ParamDescriptor> desc, in addParamStructDesc() argument
161 addParamStructDesc(desc, fieldName, offset + _C2ParamInspector::GetOffset(*it), in addParamStructDesc()
[all …]
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/src/test/java/com/google/tuningfork/validation/
DValidationUtilTest.java145 Descriptor desc = in devFidelityParamsValid() local
151 ValidationUtil.validateDevFidelityParams(content, desc, errors); in devFidelityParamsValid()
157 Descriptor desc = in devFidelityParamsInvalid() local
166 ValidationUtil.validateDevFidelityParams(content, desc, errors); in devFidelityParamsInvalid()
173 Descriptor desc = in fidelityParamsComplex() local
178 assertThat(desc).isNotNull(); in fidelityParamsComplex()
179 ValidationUtil.validateFidelityParams(desc, errors); in fidelityParamsComplex()
186 Descriptor desc = in fidelityParamsNotScalar() local
191 assertThat(desc).isNotNull(); in fidelityParamsNotScalar()
192 ValidationUtil.validateFidelityParams(desc, errors); in fidelityParamsNotScalar()
[all …]
/frameworks/native/libs/renderengine/gl/
DProgram.cpp116 void Program::setUniforms(const Description& desc) { in setUniforms() argument
122 glUniformMatrix4fv(mTextureMatrixLoc, 1, GL_FALSE, desc.texture.getMatrix().asArray()); in setUniforms()
125 const float color[4] = {desc.color.r, desc.color.g, desc.color.b, desc.color.a}; in setUniforms()
129 mat4 inputTransformMatrix = desc.inputTransformMatrix; in setUniforms()
135 mat4 outputTransformMatrix = desc.colorMatrix * desc.outputTransformMatrix; in setUniforms()
139 glUniform1f(mDisplayMaxLuminanceLoc, desc.displayMaxLuminance); in setUniforms()
142 glUniform1f(mCornerRadiusLoc, desc.cornerRadius); in setUniforms()
145 glUniform2f(mCropCenterLoc, desc.cropSize.x / 2.0f, desc.cropSize.y / 2.0f); in setUniforms()
148 glUniformMatrix4fv(mProjectionMatrixLoc, 1, GL_FALSE, desc.projectionMatrix.asArray()); in setUniforms()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/js/
Djs_generator.cc414 const Descriptor* desc) { in GetMessageFileName() argument
415 return options.output_dir + "/" + ToFileName(desc->name()) + ".js"; in GetMessageFileName()
421 const EnumDescriptor* desc) { in GetEnumFileName() argument
422 return options.output_dir + "/" + ToFileName(desc->name()) + ".js"; in GetEnumFileName()
426 string GetMessageId(const Descriptor* desc) { in GetMessageId() argument
440 bool IsResponse(const Descriptor* desc) { return false; } in IsResponse() argument
1001 string JSReturnClause(const FieldDescriptor* desc) { in JSReturnClause() argument
1006 const FieldDescriptor* desc) { in JSReturnDoc() argument
1010 bool HasRepeatedFields(const Descriptor* desc) { in HasRepeatedFields() argument
1011 for (int i = 0; i < desc->field_count(); i++) { in HasRepeatedFields()
[all …]
Djs_generator.h128 const Descriptor* desc,
155 const Descriptor* desc,
170 const Descriptor* desc,
207 const Descriptor* desc) const;
210 const Descriptor* desc) const;
213 const Descriptor* desc) const;
216 const Descriptor* desc) const;
222 const Descriptor* desc) const;
228 const Descriptor* desc) const;
234 const Descriptor* desc) const;
[all …]
/frameworks/opt/gamesdk/samples/tuningfork/tfvalidate/
Dapk_validator.cpp163 int ApkValidator::ValidateAnnotation(const pb::Descriptor* desc, in ValidateAnnotation() argument
167 DebugDesc(desc); in ValidateAnnotation()
168 if (desc->oneof_decl_count() > 0 || desc->nested_type_count() > 0 in ValidateAnnotation()
169 || desc->extension_count() > 0 || desc->extension_range_count() > 0) in ValidateAnnotation()
171 auto n = desc->field_count(); in ValidateAnnotation()
173 auto field = desc->field(i); in ValidateAnnotation()
201 int ApkValidator::ValidateFidelityParams(const pb::Descriptor* desc) { in ValidateFidelityParams() argument
202 DebugDesc(desc); in ValidateFidelityParams()
203 if (desc->oneof_decl_count() > 0 || desc->nested_type_count() > 0 in ValidateFidelityParams()
204 || desc->extension_count() > 0 || desc->extension_range_count() > 0) in ValidateFidelityParams()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/
Dmessage.c178 static const upb_handlers* msgdef_pb_serialize_handlers(Descriptor* desc) { in msgdef_pb_serialize_handlers() argument
179 if (desc->pb_serialize_handlers == NULL) { in msgdef_pb_serialize_handlers()
180 desc->pb_serialize_handlers = in msgdef_pb_serialize_handlers()
181 upb_pb_encoder_newhandlers(desc->msgdef, &desc->pb_serialize_handlers); in msgdef_pb_serialize_handlers()
183 return desc->pb_serialize_handlers; in msgdef_pb_serialize_handlers()
187 Descriptor* desc = (Descriptor*)zend_object_store_get_object( in PHP_METHOD() local
194 const upb_handlers* serialize_handlers = msgdef_pb_serialize_handlers(desc); in PHP_METHOD()
202 putmsg(getThis(), desc, upb_pb_encoder_input(encoder), 0); in PHP_METHOD()
220 Descriptor* desc = zend_object_store_get_object(php_descriptor TSRMLS_CC); in message_create() local
222 uint8_t, sizeof(MessageHeader) + desc->layout->size); in message_create()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Dencode_decode.c316 Descriptor* desc) { in new_map_handlerdata() argument
508 Descriptor* desc) { in add_handlers_for_mapfield() argument
510 map_handlerdata_t* hd = new_map_handlerdata(offset, map_msgdef, desc); in add_handlers_for_mapfield()
522 Descriptor* desc) { in add_handlers_for_mapentry() argument
525 map_handlerdata_t* hd = new_map_handlerdata(0, msgdef, desc); in add_handlers_for_mapentry()
590 Descriptor* desc = ruby_to_Descriptor(get_def_obj((void*)msgdef)); in add_handlers_for_message() local
596 add_handlers_for_mapentry(msgdef, h, desc); in add_handlers_for_message()
604 if (desc->layout == NULL) { in add_handlers_for_message()
605 desc->layout = create_layout(desc->msgdef); in add_handlers_for_message()
608 for (upb_msg_field_begin(&i, desc->msgdef); in add_handlers_for_message()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DIconLoader.java106 ActivityManager.TaskDescription desc, boolean returnDefault) { in createNewIconForTask() argument
108 Bitmap tdIcon = desc.getInMemoryIcon(); in createNewIconForTask()
110 return createDrawableFromBitmap(tdIcon, userId, desc); in createNewIconForTask()
112 if (desc.getIconResource() != 0) { in createNewIconForTask()
118 return createBadgedDrawable(res.getDrawable(desc.getIconResource(), null), userId, in createNewIconForTask()
119 desc); in createNewIconForTask()
126 desc.getIconFilename(), userId); in createNewIconForTask()
128 return createDrawableFromBitmap(tdIcon, userId, desc); in createNewIconForTask()
134 Drawable icon = getBadgedActivityIcon(activityInfo, userId, desc); in createNewIconForTask()
147 ActivityManager.TaskDescription desc) { in createDrawableFromBitmap() argument
[all …]
/frameworks/av/camera/
DVendorTagDescriptor.cpp397 sp<android::VendorTagDescriptor> desc = new android::VendorTagDescriptor(); in readFromParcel() local
398 if ((res = parcel->readParcelable(desc.get())) != OK) { in readFromParcel()
404 if ((res = addVendorDescriptor(id, desc)) != OK) { in readFromParcel()
421 auto desc = mVendorMap.find(id); in getTagCount() local
422 if (desc != mVendorMap.end()) { in getTagCount()
423 ret = desc->second->getTagCount(); in getTagCount()
433 auto desc = mVendorMap.find(id); in getTagArray() local
434 if (desc != mVendorMap.end()) { in getTagArray()
435 desc->second->getTagArray(tagArray); in getTagArray()
444 auto desc = mVendorMap.find(id); in getSectionName() local
[all …]
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/
DVtsHalBufferHubV1_0TargetTest.cpp94 AHardwareBuffer_Desc desc; in isValidTraits() local
95 memcpy(&desc, &bufferTraits.bufferDesc, sizeof(AHardwareBuffer_Desc)); in isValidTraits()
108 return desc.format == kDesc.format && desc.height == kDesc.height && in isValidTraits()
109 desc.layers == kDesc.layers && desc.usage == kDesc.usage && desc.width == kDesc.width && in isValidTraits()
117 HardwareBufferDescription desc; in TEST_F() local
118 memcpy(&desc, &kDesc, sizeof(HardwareBufferDescription)); in TEST_F()
129 ASSERT_TRUE(mBufferHub->allocateBuffer(desc, kUserMetadataSize, callback).isOk()); in TEST_F()
140 HardwareBufferDescription desc; in TEST_F() local
141 memcpy(&desc, &kDesc, sizeof(HardwareBufferDescription)); in TEST_F()
152 ASSERT_TRUE(mBufferHub->allocateBuffer(desc, kUserMetadataSize, callback).isOk()); in TEST_F()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor_pool.py134 def AddDescriptor(self, desc): argument
144 if not isinstance(desc, descriptor.Descriptor):
147 self._descriptors[desc.full_name] = desc
148 self.AddFileDescriptor(desc.file)
393 desc = self._GetTypeFromScope(
395 file_descriptor.message_types_by_name[desc_proto.name] = desc
448 descriptor.OneofDescriptor(desc.name, '.'.join((desc_name, desc.name)),
449 index, None, [], desc.options)
450 for index, desc in enumerate(desc_proto.oneof_decl)]
456 desc = descriptor.Descriptor(
[all …]
Dsymbol_database.py80 desc = message.DESCRIPTOR
81 self._classes[desc.full_name] = message
82 self.pool.AddDescriptor(desc)
144 def _GetAllMessageNames(desc): argument
146 yield desc.full_name
147 for msg_desc in desc.nested_types:
/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/av/media/libstagefright/rtsp/
DARTPSource.cpp57 AString desc; in ARTPSource() local
59 sessionDesc->getFormatType(index, &PT, &desc, &params); in ARTPSource()
61 if (!strncmp(desc.c_str(), "H264/", 5)) { in ARTPSource()
64 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in ARTPSource()
66 } else if (!strncmp(desc.c_str(), "H263-1998/", 10) in ARTPSource()
67 || !strncmp(desc.c_str(), "H263-2000/", 10)) { in ARTPSource()
70 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in ARTPSource()
72 } else if (!strncmp(desc.c_str(), "AMR-WB/", 7)) { in ARTPSource()
74 } else if (!strncmp(desc.c_str(), "MP4V-ES/", 8) in ARTPSource()
75 || !strncasecmp(desc.c_str(), "mpeg4-generic/", 14)) { in ARTPSource()
[all …]
/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/base/services/core/jni/
Dcom_android_server_security_VerityUtils.cpp191 fsverity_descriptor* desc = reinterpret_cast<fsverity_descriptor*>(raii.getRaw()); in constructFsverityDescriptor() local
193 memcpy(desc->magic, FS_VERITY_MAGIC, sizeof(desc->magic)); in constructFsverityDescriptor()
194 desc->major_version = 1; in constructFsverityDescriptor()
195 desc->minor_version = 0; in constructFsverityDescriptor()
196 desc->log_data_blocksize = 12; in constructFsverityDescriptor()
197 desc->log_tree_blocksize = 12; in constructFsverityDescriptor()
198 desc->data_algorithm = FS_VERITY_ALG_SHA256; in constructFsverityDescriptor()
199 desc->tree_algorithm = FS_VERITY_ALG_SHA256; in constructFsverityDescriptor()
200 desc->flags = 0; in constructFsverityDescriptor()
201 desc->orig_file_size = fileSize; in constructFsverityDescriptor()
[all …]
/frameworks/opt/gamesdk/samples/tuningfork/prototest/src/
Ddynamicproto.cc73 void extensionsOf(const FileDescriptor* desc, const std::string& full_name, in extensionsOf() argument
76 if(desc) { in extensionsOf()
77 int n = desc->extension_count(); in extensionsOf()
79 auto e = desc->extension(i); in extensionsOf()
83 n = desc->dependency_count(); in extensionsOf()
85 extensionsOf(desc->dependency(i), full_name, result); in extensionsOf()
117 auto desc = fdesc->FindMessageTypeByName(name); in newMessage() local
118 if(desc) { in newMessage()
119 auto p = factory.GetPrototype(desc); in newMessage()

123456789