/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | AbstractClassAdapter.java | 53 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 …]
|
D | CreateInfo.java | 401 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 404 VOID_TO_MAP_ENTRY.equals(desc); in isNeeded() 411 mi.desc = Type.getMethodDescriptor( in replace() 429 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 433 desc.equals(VOID_TO_CLASS_LOADER); in isNeeded() 444 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 457 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 470 public boolean isNeeded(String owner, String name, String desc, String sourceClass) { in isNeeded() argument 477 assert mi.desc.equals("(Ljava/lang/String;Ljava/lang/Throwable;)V") in replace() 478 || mi.desc.equals("(Ljava/lang/String;)V"); in replace() [all …]
|
D | DelegateClassAdapter.java | 76 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 …]
|
D | ReplaceMethodCallsAdapter.java | 43 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()
|
D | DependencyFinder.java | 366 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 …]
|
D | DelegateMethodAdapter.java | 128 String desc, in DelegateMethodAdapter() argument 138 mDesc = desc; in DelegateMethodAdapter() 148 String desc, in DelegateMethodAdapter() argument 152 desc, isStatic, isStaticClass); in DelegateMethodAdapter() 265 String desc = Type.getMethodDescriptor( in generateDelegateCode() local 273 desc, in generateDelegateCode() 287 mLog.debug("Delegate: %1$s # %2$s %3$s", delegateClassName, mMethodName, desc); in generateDelegateCode() 319 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument 321 return mOrgWriter.visitAnnotation(desc, visible); in visitAnnotation() 338 public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, in visitParameterAnnotation() argument [all …]
|
D | DelegateToNativeAdapter.java | 45 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/ |
D | EffectProxy.cpp | 55 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/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 43 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() 372 int AHardwareBuffer_isSupported(const AHardwareBuffer_Desc* desc) { in AHardwareBuffer_isSupported() argument 373 if (!desc) return 0; in AHardwareBuffer_isSupported() 374 if (!AHardwareBuffer_isValidDescription(desc, /*log=*/false)) return 0; in AHardwareBuffer_isSupported() [all …]
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | LastRemovableMediaDevices.cpp | 25 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/ |
D | ReflectedParamUpdater.cpp | 119 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/native/libs/renderengine/gl/ |
D | Program.cpp | 129 void Program::setUniforms(const Description& desc) { in setUniforms() argument 135 glUniformMatrix4fv(mTextureMatrixLoc, 1, GL_FALSE, desc.texture.getMatrix().asArray()); in setUniforms() 138 const float color[4] = {desc.color.r, desc.color.g, desc.color.b, desc.color.a}; in setUniforms() 142 glUniformMatrix4fv(mDisplayColorMatrixLoc, 1, GL_FALSE, desc.displayColorMatrix.asArray()); in setUniforms() 145 mat4 inputTransformMatrix = desc.inputTransformMatrix; in setUniforms() 151 mat4 outputTransformMatrix = desc.colorMatrix * desc.outputTransformMatrix; in setUniforms() 155 glUniform1f(mDisplayMaxLuminanceLoc, desc.displayMaxLuminance); in setUniforms() 158 glUniform1f(mMaxMasteringLuminanceLoc, desc.maxMasteringLuminance); in setUniforms() 161 glUniform1f(mMaxContentLuminanceLoc, desc.maxContentLuminance); in setUniforms() 164 glUniform1f(mCornerRadiusLoc, desc.cornerRadius); in setUniforms() [all …]
|
/frameworks/av/media/libstagefright/renderfright/gl/ |
D | Program.cpp | 120 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/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvUtils.kt | 60 fun UiDevice.findTvPipMenuElementWithDescription(desc: String): UiObject2? = in <lambda>() 61 findTvPipMenuElement(By.desc(desc)) in <lambda>() 66 fun UiDevice.waitForTvPipMenuElementWithDescription(desc: String): UiObject2? { in <lambda>() 72 val elementSelector = By.desc(desc) in <lambda>() 80 fun UiDevice.waitUntilTvPipMenuElementWithDescriptionIsGone(desc: String): Boolean? { in waitUntilTvPipMenuElementWithDescriptionIsGone() 81 val elementSelector = By.desc(desc) in waitUntilTvPipMenuElementWithDescriptionIsGone() 97 fun UiDevice.clickTvPipMenuElementWithDescription(desc: String) { in UiDevice() 98 focusOnAndClickTvPipMenuElement(By.desc(desc) in UiDevice() 100 error("Could not focus on the Pip menu object with \"$desc\" description") in UiDevice()
|
/frameworks/base/libs/hwui/ |
D | AutoBackendTextureRelease.cpp | 30 AHardwareBuffer_Desc desc; in AutoBackendTextureRelease() local 31 AHardwareBuffer_describe(buffer, &desc); in AutoBackendTextureRelease() 32 bool createProtectedImage = 0 != (desc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in AutoBackendTextureRelease() 34 GrAHardwareBufferUtils::GetBackendFormat(context, buffer, desc.format, false); in AutoBackendTextureRelease() 36 context, buffer, desc.width, desc.height, &mDeleteProc, &mUpdateProc, &mImageCtx, in AutoBackendTextureRelease() 74 AHardwareBuffer_Desc desc; in makeImage() local 75 AHardwareBuffer_describe(buffer, &desc); in makeImage() 76 SkColorType colorType = GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(desc.format); in makeImage()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraProviderInfoTemplated.h | 42 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/native/libs/renderengine/skia/ |
D | AutoBackendTexture.cpp | 35 AHardwareBuffer_Desc desc; in AutoBackendTexture() local 36 AHardwareBuffer_describe(buffer, &desc); in AutoBackendTexture() 37 bool createProtectedImage = 0 != (desc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); in AutoBackendTexture() 39 GrAHardwareBufferUtils::GetBackendFormat(context, buffer, desc.format, false); in AutoBackendTexture() 41 GrAHardwareBufferUtils::MakeBackendTexture(context, buffer, desc.width, desc.height, in AutoBackendTexture() 45 mColorType = GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(desc.format); in AutoBackendTexture() 49 this, desc.width, desc.height, createProtectedImage, isOutputBuffer, desc.format); in AutoBackendTexture()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioIODescriptorInterface.h | 43 IoDescriptor& desc, Filter filter, bool& active, const DeviceVector& devices) in findPreferredDevice() argument 45 auto activeClients = desc->clientsList(true /*activeOnly*/); in findPreferredDevice() 53 if (desc->isMmap()) { in findPreferredDevice() 56 desc->clientsList(false /*activeOnly*/)[0]->preferredDeviceId()); in findPreferredDevice() 59 desc->clientsList(true /*activeOnly*/, filter, true /*preferredDevice*/); in findPreferredDevice() 74 auto desc = ioCollection.valueAt(i); in findPreferredDevice() local 76 sp<DeviceDescriptor> curDevice = findPreferredDevice(desc, filter, active, devices); in findPreferredDevice()
|
/frameworks/av/camera/ |
D | VendorTagDescriptor.cpp | 397 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/libeffects/factory/ |
D | EffectsFactoryState.c | 34 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/ |
D | ChooseAccountTypeActivity.java | 100 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/av/media/libstagefright/rtsp/ |
D | ARawAudioAssembler.cpp | 120 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()
|
/frameworks/compile/libbcc/tools/bcc/ |
D | Main.cpp | 63 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/ |
D | StaticResolverTest.cpp | 53 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 …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 106 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() local 107 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getDrawableForType() 110 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType() 133 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() local 134 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getLabelForType() 136 label = authContext.getResources().getText(desc.labelId); in getLabelForType() 153 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getPackageForType() local 154 return desc.packageName; in getPackageForType() 167 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelIdForType() local 168 return desc.labelId; in getLabelIdForType() [all …]
|