Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
DCreateInfo.java407 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument
410 VOID_TO_MAP_ENTRY.equals(desc); in isNeeded()
417 mi.desc = Type.getMethodDescriptor( in replace()
435 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument
439 desc.equals(VOID_TO_CLASS_LOADER); in isNeeded()
450 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument
463 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument
476 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument
483 assert mi.desc.equals("(Ljava/lang/String;Ljava/lang/Throwable;)V") in replace()
484 || mi.desc.equals("(Ljava/lang/String;)V"); in replace()
[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()
107 desc, signature, exceptions); in visitMethod()
111 desc, signature, exceptions); in visitMethod()
121 MethodVisitor mwDelegate = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
124 mLog, null, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
135 desc, signature, exceptions); in visitMethod()
150 desc, signature, exceptions); in visitMethod()
[all …]
DReplaceMethodCallsAdapter.java43 public MethodVisitor visitMethod(int access, String name, String desc, String signature, in visitMethod() argument
45 return new MyMethodVisitor(super.visitMethod(access, name, desc, signature, exceptions)); in visitMethod()
55 public void visitMethodInsn(int opcode, String owner, String name, String desc, in visitMethodInsn() argument
58 if (replacer.isNeeded(owner, name, desc, mOriginalClassName)) { in visitMethodInsn()
59 MethodInformation mi = new MethodInformation(opcode, owner, name, desc); in visitMethodInsn()
64 desc = mi.desc; in visitMethodInsn()
68 super.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
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 …]
DDelegateToNativeAdapter.java45 public MethodVisitor visitMethod(int access, String name, String desc, String signature, in visitMethod() argument
51 mDelegateWriter.visitMethod(access, name + "_Original", desc, signature, exceptions); in visitMethod()
52 generateDelegateMethod(name, desc, signature, exceptions); in visitMethod()
58 super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
62 name, desc, isStaticMethod, false); in visitMethod()
70 return super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
73 private void generateDelegateMethod(String name, String desc, String signature, in generateDelegateMethod() argument
76 mDelegateWriter.visitMethod(Opcodes.ACC_STATIC, name, desc, in generateDelegateMethod()
88 Type[] argTypes = Type.getArgumentTypes(desc); in generateDelegateMethod()
96 name + "_Original", desc, false); in generateDelegateMethod()
[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/base/libs/hwui/
DAutoBackendTextureRelease.cpp36 AHardwareBuffer_Desc desc; in AutoBackendTextureRelease() local
37 AHardwareBuffer_describe(buffer, &desc); in AutoBackendTextureRelease()
38 bool createProtectedImage = 0 != (desc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in AutoBackendTextureRelease()
44 GrAHardwareBufferUtils::GetGLBackendFormat(context, desc.format, false); in AutoBackendTextureRelease()
48 desc.width, in AutoBackendTextureRelease()
49 desc.height, in AutoBackendTextureRelease()
60 desc.format, in AutoBackendTextureRelease()
65 desc.width, in AutoBackendTextureRelease()
66 desc.height, in AutoBackendTextureRelease()
79 static_cast<int>(context->backend()), desc.format); in AutoBackendTextureRelease()
[all …]
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp136 int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer) { in AHardwareBuffer_allocate() argument
137 if (!outBuffer || !desc) return BAD_VALUE; in AHardwareBuffer_allocate()
138 if (!AHardwareBuffer_isValidDescription(desc, /*log=*/true)) return BAD_VALUE; in AHardwareBuffer_allocate()
140 int format = AHardwareBuffer_convertToPixelFormat(desc->format); in AHardwareBuffer_allocate()
141 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate()
143 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
152 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle); in AHardwareBuffer_allocate()
470 int AHardwareBuffer_isSupported(const AHardwareBuffer_Desc* desc) { in AHardwareBuffer_isSupported() argument
471 if (!desc) return 0; in AHardwareBuffer_isSupported()
472 if (!AHardwareBuffer_isValidDescription(desc, /*log=*/false)) return 0; in AHardwareBuffer_isSupported()
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DLastRemovableMediaDevices.cpp25 void LastRemovableMediaDevices::setRemovableMediaDevices(sp<DeviceDescriptor> desc, in setRemovableMediaDevices() argument
28 if (desc == nullptr) { in setRemovableMediaDevices()
32 (getDeviceOutGroup(desc->type()) != GROUP_NONE)) { in setRemovableMediaDevices()
33 setRemovableMediaDevices(desc, AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE); in setRemovableMediaDevices()
34 mMediaDevices.insert(mMediaDevices.begin(), {desc, getDeviceOutGroup(desc->type())}); in setRemovableMediaDevices()
37 if ((iter->desc)->equals(desc)) { in setRemovableMediaDevices()
51 audio_devices_t type = (iter->desc)->type(); in getLastRemovableMediaDevices()
64 if ((group == GROUP_NONE || group == getDeviceOutGroup((iter->desc)->type())) && in getLastRemovableMediaDevice()
65 !excludedDevices.contains(iter->desc)) { in getLastRemovableMediaDevice()
66 return iter->desc; in getLastRemovableMediaDevice()
/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()
131 std::shared_ptr<C2ParamDescriptor> desc, in addParamStructDesc() argument
149 addParamStructDesc(desc, fieldName, offset + _C2ParamInspector::GetOffset(*it), in addParamStructDesc()
181 desc, in addParamStructDesc()
192 std::shared_ptr<C2ParamDescriptor> desc, const C2StructDescriptor &structDesc, in addParamDesc() argument
194 C2String paramName = desc->name(); in addParamDesc()
199 if (desc->index() & C2Param::CoreIndex::IS_REQUEST_FLAG) { in addParamDesc()
[all …]
/frameworks/av/media/libstagefright/renderfright/gl/
DProgram.cpp120 void Program::setUniforms(const Description& desc) { in setUniforms() argument
126 glUniformMatrix4fv(mTextureMatrixLoc, 1, GL_FALSE, desc.texture.getMatrix().asArray()); in setUniforms()
129 const float color[4] = {desc.color.r, desc.color.g, desc.color.b, desc.color.a}; in setUniforms()
133 mat4 inputTransformMatrix = desc.inputTransformMatrix; in setUniforms()
139 mat4 outputTransformMatrix = desc.colorMatrix * desc.outputTransformMatrix; in setUniforms()
143 glUniform1f(mDisplayMaxLuminanceLoc, desc.displayMaxLuminance); in setUniforms()
146 glUniform1f(mMaxMasteringLuminanceLoc, desc.maxMasteringLuminance); in setUniforms()
149 glUniform1f(mMaxContentLuminanceLoc, desc.maxContentLuminance); in setUniforms()
152 glUniform1f(mCornerRadiusLoc, desc.cornerRadius); in setUniforms()
155 glUniform2f(mCropCenterLoc, desc.cropSize.x / 2.0f, desc.cropSize.y / 2.0f); in setUniforms()
[all …]
/frameworks/libs/binary_translation/intrinsics/
Dgen_intrinsics.py260 def _get_interpreter_hook_call_expr(name, intr, desc=None): argument
279 name, _get_desc_specializations(intr, desc).replace(
311 def _get_interpreter_hook_return_stmt(name, intr, desc=None): argument
312 return 'return ' + _get_interpreter_hook_call_expr(name, intr, desc) + ';'
321 for fmt, desc in _VECTOR_SIZES.items():
322 if _check_reg_class_size(reg_class, desc.num_elements / 8):
323 yield INDENT + 'case %s:' % desc.num_elements
324 yield 2 * INDENT + get_return_stmt(name, intr, desc)
361 for fmt, desc in _VECTOR_FORMATS.items():
363 desc.element_size * desc.num_elements) and
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/
DTvUtils.kt59 fun UiDevice.findTvPipMenuElementWithDescription(desc: String): UiObject2? = in <lambda>()
60 findTvPipMenuElement(By.desc(desc)) in <lambda>()
65 fun UiDevice.waitForTvPipMenuElementWithDescription(desc: String): UiObject2? { in <lambda>()
71 val elementSelector = By.desc(desc) in <lambda>()
78 fun UiDevice.waitUntilTvPipMenuElementWithDescriptionIsGone(desc: String): Boolean? { in waitUntilTvPipMenuElementWithDescriptionIsGone()
79 val elementSelector = By.desc(desc) in waitUntilTvPipMenuElementWithDescriptionIsGone()
95 fun UiDevice.clickTvPipMenuElementWithDescription(desc: String) { in UiDevice()
96 focusOnAndClickTvPipMenuElement(By.desc(desc).pkg(SYSTEM_UI_PACKAGE_NAME)) || in UiDevice()
97 error("Could not focus on the Pip menu object with \"$desc\" description") in UiDevice()
/frameworks/native/libs/renderengine/skia/compat/
DGaneshBackendTexture.cpp44 AHardwareBuffer_Desc desc; in GaneshBackendTexture() local
45 AHardwareBuffer_describe(buffer, &desc); in GaneshBackendTexture()
46 const bool createProtectedImage = 0 != (desc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in GaneshBackendTexture()
52 GrAHardwareBufferUtils::GetGLBackendFormat(grContext.get(), desc.format, false); in GaneshBackendTexture()
54 GrAHardwareBufferUtils::MakeGLBackendTexture(grContext.get(), buffer, desc.width, in GaneshBackendTexture()
55 desc.height, &mDeleteProc, in GaneshBackendTexture()
61 desc.format, false); in GaneshBackendTexture()
64 desc.width, desc.height, in GaneshBackendTexture()
72 if (!mBackendTexture.isValid() || !desc.width || !desc.height) { in GaneshBackendTexture()
75 this, desc.width, desc.height, createProtectedImage, isOutputBuffer, in GaneshBackendTexture()
[all …]
DGraphiteBackendTexture.cpp41 AHardwareBuffer_Desc desc; in GraphiteBackendTexture() local
42 AHardwareBuffer_describe(buffer, &desc); in GraphiteBackendTexture()
43 const bool createProtectedImage = 0 != (desc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in GraphiteBackendTexture()
45 const SkISize dimensions = {static_cast<int32_t>(desc.width), in GraphiteBackendTexture()
46 static_cast<int32_t>(desc.height)}; in GraphiteBackendTexture()
47 LOG_ALWAYS_FATAL_IF(static_cast<uint32_t>(dimensions.width()) != desc.width || in GraphiteBackendTexture()
48 static_cast<uint32_t>(dimensions.height()) != desc.height, in GraphiteBackendTexture()
52 desc.width, desc.height, dimensions.width(), dimensions.height()); in GraphiteBackendTexture()
60 isOutputBuffer, desc.format); in GraphiteBackendTexture()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderInfoTemplated.h42 sp<IdlVendorTagDescriptor> desc = new IdlVendorTagDescriptor(); in createDescriptorFromIdl() local
43 desc->mTagCount = tagCount; in createDescriptorFromIdl()
73 desc->mTagToNameMap.add(tag, String8(tagName)); in createDescriptorFromIdl()
81 desc->mTagToTypeMap.add(tag, tagType); in createDescriptorFromIdl()
85 desc->mSections = sections; in createDescriptorFromIdl()
94 desc->mTagToSectionMap.add(tag, static_cast<uint32_t>(index)); in createDescriptorFromIdl()
98 if ((reverseIndex = desc->mReverseMapping.indexOfKey(sectionString)) < 0) { in createDescriptorFromIdl()
100 reverseIndex = desc->mReverseMapping.add(sectionString, nameMapper); in createDescriptorFromIdl()
102 desc->mReverseMapping[reverseIndex]->add(desc->mTagToNameMap.valueFor(tag), tag); in createDescriptorFromIdl()
105 descriptor = std::move(desc); in createDescriptorFromIdl()
/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_device_fuzzer.cpp53 fdDescriptors desc; in writeDescriptorsToFd() local
54 desc.interface.bLength = sizeof(desc.interface); in writeDescriptorsToFd()
55 desc.interface.bDescriptorType = USB_DT_INTERFACE; in writeDescriptorsToFd()
56 desc.interface.bInterfaceNumber = fdp.ConsumeIntegral<uint8_t>(); in writeDescriptorsToFd()
57 desc.interface.bNumEndpoints = kEndpointsCount; in writeDescriptorsToFd()
58 desc.interface.bInterfaceClass = in writeDescriptorsToFd()
60 desc.interface.bInterfaceSubClass = fdp.ConsumeBool() ? 1 : 0xFF; in writeDescriptorsToFd()
61 desc.interface.bInterfaceProtocol = fdp.ConsumeBool() ? 1 : 0; in writeDescriptorsToFd()
62 desc.interface.iInterface = fdp.ConsumeIntegral<uint8_t>(); in writeDescriptorsToFd()
64 desc.ep[idx].bLength = sizeof(desc.ep[idx]); in writeDescriptorsToFd()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioIODescriptorInterface.h43 IoDescriptor& desc, Filter filter, bool& active, const DeviceVector& devices) in findPreferredDevice() argument
45 auto activeClients = desc->clientsList(true /*activeOnly*/); in findPreferredDevice()
54 if (desc->isMmap()) { in findPreferredDevice()
55 auto matchingClients = desc->clientsList( in findPreferredDevice()
63 desc->clientsList(true /*activeOnly*/, filter, true /*preferredDevice*/); in findPreferredDevice()
78 auto desc = ioCollection.valueAt(i); in findPreferredDevice() local
80 sp<DeviceDescriptor> curDevice = findPreferredDevice(desc, filter, active, devices); in findPreferredDevice()
/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/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/av/media/libaudiohal/impl/
DEffectsFactoryHalAidl.cpp74 for (const auto& desc : mHalDescList) { in __anonb7f55f2a0302() local
75 if (desc.common.id.proxy.has_value()) { in __anonb7f55f2a0302()
76 const auto& uuid = desc.common.id.proxy.value(); in __anonb7f55f2a0302()
78 proxyUuidMap.insert({uuid, {desc}}); in __anonb7f55f2a0302()
80 proxyUuidMap[uuid].emplace_back(desc); in __anonb7f55f2a0302()
89 if (Descriptor desc; in __anonb7f55f2a0402() local
92 &desc /* proxy descriptor */) in __anonb7f55f2a0402()
94 list.emplace_back(std::move(desc)); in __anonb7f55f2a0402()
102 [](const Descriptor& desc) { return !desc.common.id.proxy.has_value(); }); in __anonb7f55f2a0502() argument
199 Descriptor desc; in createEffect() local
[all …]
DEffectHalAidl.cpp73 int32_t ioId, const Descriptor& desc, bool isProxyEffect) in EffectHalAidl() argument
81 createAidlConversion(effect, sessionId, ioId, desc); in EffectHalAidl()
97 const Descriptor& desc) { in createAidlConversion() argument
98 const auto& typeUuid = desc.common.id.type; in createAidlConversion()
103 desc, mIsProxyEffect); in createAidlConversion()
107 desc, mIsProxyEffect); in createAidlConversion()
111 desc, mIsProxyEffect); in createAidlConversion()
114 effect, sessionId, ioId, desc, mIsProxyEffect); in createAidlConversion()
117 effect, sessionId, ioId, desc, mIsProxyEffect); in createAidlConversion()
121 desc, mIsProxyEffect); in createAidlConversion()
[all …]
/frameworks/base/core/java/android/accounts/
DChooseAccountTypeActivity.java100 setResultAndFinish(mAuthenticatorInfosToDisplay.get(0).desc.type); in onCreate()
114 setResultAndFinish(mAuthenticatorInfosToDisplay.get(position).desc.type); in onCreate()
131 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in buildTypeToAuthDescriptionMap()
135 Context authContext = createPackageContext(desc.packageName, 0); in buildTypeToAuthDescriptionMap()
136 icon = authContext.getDrawable(desc.iconId); in buildTypeToAuthDescriptionMap()
137 final CharSequence sequence = authContext.getResources().getText(desc.labelId); in buildTypeToAuthDescriptionMap()
144 Log.w(TAG, "No icon name for account type " + desc.type); in buildTypeToAuthDescriptionMap()
149 Log.w(TAG, "No icon resource for account type " + desc.type); in buildTypeToAuthDescriptionMap()
152 AuthInfo authInfo = new AuthInfo(desc, name, icon); in buildTypeToAuthDescriptionMap()
153 mTypeToAuthenticatorInfo.put(desc.type, authInfo); in buildTypeToAuthDescriptionMap()
[all …]
/frameworks/native/libs/nativewindow/tests/
DAHardwareBufferTest.cpp117 AHardwareBuffer_Desc desc{ in TEST() local
127 EXPECT_EQ(0, AHardwareBuffer_allocate(&desc, &buffer)); in TEST()
133 &desc, handle, AHARDWAREBUFFER_CREATE_FROM_HANDLE_METHOD_CLONE, &otherBuffer)); in TEST()
147 const AHardwareBuffer_Desc desc = { in TEST() local
154 int res = AHardwareBuffer_allocate(&desc, &ahb1); in TEST()
181 AHardwareBuffer_Desc desc{ in TEST() local
191 ASSERT_EQ(0, AHardwareBuffer_allocateWithOptions(&desc, nullptr, 0, &buffer)); in TEST()
197 EXPECT_EQ(desc.width, desc2.width); in TEST()
198 EXPECT_EQ(desc.height, desc2.height); in TEST()
209 AHardwareBuffer_Desc desc{ in TEST() local
[all …]

12345678910>>...13