/frameworks/compile/mclinker/lib/LD/ |
D | GroupReader.cpp | 50 Module::input_iterator input = --pRoot; in readGroup() local 53 while (input != pEnd) { in readGroup() 56 if ((*input)->type() == Input::Script || in readGroup() 57 (*input)->type() == Input::Archive || in readGroup() 58 (*input)->type() == Input::External) { in readGroup() 59 ++input; in readGroup() 63 if (Input::Object == (*input)->type()) { in readGroup() 64 m_Module.getObjectList().push_back(*input); in readGroup() 68 if (Input::DynObj == (*input)->type()) { in readGroup() 69 m_Module.getLibraryList().push_back(*input); in readGroup() [all …]
|
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/ |
D | trace_creator.py | 20 increment.time_stamp = int(input("Time stamp of action: ")) 60 return int(input("> ")) 85 return int(input("> ")) 91 = bool(input("Is transaction synchronous (True/False): ")) 93 = bool(input("Is transaction animated (True/False): ")) 107 change.id = int(input("ID of layer/display to undergo a change: ")) 159 increment.surface_creation.id = int(input("Enter id: ")) 162 increment.surface_creation.w = input("Enter w: ") 163 increment.surface_creation.h = input("Enter h: ") 166 increment.surface_deletion.id = int(input("Enter id: ")) [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ColorSpace.java | 42 ByteBuffer input, ByteBuffer output, int width, int height) { in convertYuv420pToRgba8888() argument 43 expectInputSize(input, (3 * width * height) / 2); in convertYuv420pToRgba8888() 45 nativeYuv420pToRgba8888(input, output, width, height); in convertYuv420pToRgba8888() 61 ByteBuffer input, ByteBuffer output, int width, int height) { in convertArgb8888ToRgba8888() argument 62 expectInputSize(input, width * height * 4); in convertArgb8888ToRgba8888() 64 nativeArgb8888ToRgba8888(input, output, width, height); in convertArgb8888ToRgba8888() 80 ByteBuffer input, ByteBuffer output, int width, int height) { in convertRgba8888ToHsva8888() argument 81 expectInputSize(input, width * height * 4); in convertRgba8888ToHsva8888() 83 nativeRgba8888ToHsva8888(input, output, width, height); in convertRgba8888ToHsva8888() 99 ByteBuffer input, ByteBuffer output, int width, int height) { in convertRgba8888ToYcbcra8888() argument [all …]
|
/frameworks/native/libs/gui/ |
D | LayerState.cpp | 167 status_t layer_state_t::read(const Parcel& input) in read() argument 169 SAFE_PARCEL(input.readNullableStrongBinder, &surface); in read() 170 SAFE_PARCEL(input.readInt32, &layerId); in read() 171 SAFE_PARCEL(input.readUint64, &what); in read() 172 SAFE_PARCEL(input.readFloat, &x); in read() 173 SAFE_PARCEL(input.readFloat, &y); in read() 174 SAFE_PARCEL(input.readInt32, &z); in read() 175 SAFE_PARCEL(input.readUint32, &w); in read() 176 SAFE_PARCEL(input.readUint32, &h); in read() 177 SAFE_PARCEL(input.readUint32, &layerStack.id); in read() [all …]
|
D | ITransactionCompletedListener.cpp | 68 status_t FrameEventHistoryStats::readFromParcel(const Parcel* input) { in readFromParcel() argument 69 status_t err = input->readUint64(&frameNumber); in readFromParcel() 73 err = input->readBool(&hasFence); in readFromParcel() 78 err = input->read(*gpuCompositionDoneFence); in readFromParcel() 82 err = input->readInt64(&(compositorTiming.deadline)); in readFromParcel() 85 err = input->readInt64(&(compositorTiming.interval)); in readFromParcel() 88 err = input->readInt64(&(compositorTiming.presentLatency)); in readFromParcel() 91 err = input->readInt64(&refreshStartTime); in readFromParcel() 94 err = input->readInt64(&dequeueReadyTime); in readFromParcel() 107 status_t JankData::readFromParcel(const Parcel* input) { in readFromParcel() argument [all …]
|
/frameworks/compile/mclinker/lib/Script/ |
D | InputCmd.cpp | 65 InputToken* input = llvm::cast<InputToken>(*it); in dump() local 66 cur = input->asNeeded(); in dump() 72 if (input->type() == InputToken::NameSpec) in dump() 74 mcld::outs() << input->name() << " "; in dump() 165 InputTree::iterator input = m_Builder.getCurrentNode(); in activate() local 167 input_begin = input; in activate() 170 assert(*input != NULL); in activate() 171 if (!m_Builder.setMemory(**input, in activate() 174 error(diag::err_cannot_open_input) << (*input)->name() in activate() 175 << (*input)->path(); in activate() [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | FileAction.cpp | 23 Input* input = *pBuilder.getCurrentNode(); in activate() local 25 if (input->hasContext()) in activate() 29 if (input->type() == Input::Script || input->type() == Input::Object || in activate() 30 input->type() == Input::DynObj || input->type() == Input::Archive) in activate() 33 return pBuilder.setContext(*input); in activate() 46 Input* input = *pBuilder.getCurrentNode(); in activate() local 48 if (input->hasMemArea()) in activate() 52 if (input->type() == Input::Script || input->type() == Input::Object || in activate() 53 input->type() == Input::DynObj || input->type() == Input::Archive) in activate() 56 return pBuilder.setMemory(*input, m_Mode, m_Permission); in activate()
|
/frameworks/native/libs/gralloc/types/ |
D | Gralloc4.cpp | 195 status_t encodeMetadataType(const MetadataType& input, OutputHidlVec* output); 196 status_t validateMetadataType(InputHidlVec* input, const MetadataType& expectedMetadataType); 207 status_t encode(const T& input, hidl_vec<uint8_t>* output, EncodeHelper<T> encodeHelper) { in encode() argument 210 status_t err = encodeHelper(input, &outputHidlVec); in encode() 220 return encodeHelper(input, &outputHidlVec); in encode() 224 status_t encodeMetadata(const MetadataType& metadataType, const T& input, hidl_vec<uint8_t>* output, in encodeMetadata() argument 233 err = encodeHelper(input, &outputHidlVec); in encodeMetadata() 248 return encodeHelper(input, &outputHidlVec); in encodeMetadata() 252 status_t encodeOptionalMetadata(const MetadataType& metadataType, const std::optional<T>& input, in encodeOptionalMetadata() argument 254 if (!input) { in encodeOptionalMetadata() [all …]
|
/frameworks/native/libs/gralloc/types/fuzzer/ |
D | main.cpp | 31 const std::vector<uint8_t>& input) { in doFuzz() argument 34 vec.setToExternal(const_cast<uint8_t*>(input.data()), input.size(), false /*shouldOwn*/); in doFuzz() 46 size_t fillInMetadataType(const std::vector<uint8_t>& input, MetadataType* outMetadataType) { in fillInMetadataType() argument 47 if (input.size() < sizeof(outMetadataType->value) + 1) { in fillInMetadataType() 52 outMetadataType->value = *(reinterpret_cast<const int64_t*>(input.data())); in fillInMetadataType() 55 uint8_t nameLen = *(input.data() + size); in fillInMetadataType() 58 if (input.size() < size + nameLen) { in fillInMetadataType() 61 std::string name(reinterpret_cast<const char*>(input.data()) + size, nameLen); in fillInMetadataType() 68 const std::vector<uint8_t>& input) { in doFuzzVendorHelper() argument 71 size_t sizeUsed = fillInMetadataType(input, &metadataType); in doFuzzVendorHelper() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 90 public abstract boolean process(byte[] input, int offset, int len, boolean finish); in process() argument 137 public static byte[] decode(byte[] input, int flags) { in decode() argument 138 return decode(input, 0, input.length, flags); in decode() 157 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() argument 162 if (!decoder.process(input, offset, len, true)) { in decode() 265 public boolean process(byte[] input, int offset, int len, boolean finish) { in process() argument 299 (value = ((alphabet[input[p] & 0xff] << 18) | in process() 300 (alphabet[input[p+1] & 0xff] << 12) | in process() 301 (alphabet[input[p+2] & 0xff] << 6) | in process() 302 (alphabet[input[p+3] & 0xff]))) >= 0) { in process() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/ |
D | ParsingPackageUtils.java | 275 ParseInput input = ParseTypeImpl.forDefaultParsing().reset(); in parseDefaultOneTime() local 276 return parseDefault(input, file, parseFlags, splitPermissions, collectCertificates); in parseDefaultOneTime() 285 public static ParseResult<ParsingPackage> parseDefault(ParseInput input, File file, in parseDefault() argument 311 result = parser.parsePackage(input, file, parseFlags, /* frameworkSplits= */ null); in parseDefault() 313 return input.error(result); in parseDefault() 319 ParsingPackageUtils.getSigningDetails(input, pkg, false /*skipVerify*/); in parseDefault() 321 return input.error(ret); in parseDefault() 329 return input.success(pkg); in parseDefault() 365 public ParseResult<ParsingPackage> parsePackage(ParseInput input, File packageFile, int flags, in parsePackage() argument 370 return parseClusterPackage(input, packageFile, frameworkSplits, flags); in parsePackage() [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | StringStream_test.cpp | 33 std::string input; in TEST() local 34 input.resize(kCount, 0x7f); in TEST() 35 input[0] = 0x00; in TEST() 36 input[kCount - 1] = 0xff; in TEST() 37 StringInputStream in(input); in TEST() 53 std::string input = "hello this is a string"; in TEST() local 54 StringInputStream in(input); in TEST() 59 ASSERT_THAT(size, Eq(input.size())); in TEST() 61 EXPECT_THAT(in.ByteCount(), Eq(input.size())); in TEST() 64 EXPECT_THAT(in.ByteCount(), Eq(input.size() - 6u)); in TEST() [all …]
|
/frameworks/proto_logging/stats/enums/stats/tv/ |
D | tif_enums.proto | 64 // TV input type: the TV input service is a tuner which provides channels. 68 // TV input type: a generic hardware TV input type. 71 // TV input type: the TV input service represents a composite port. 74 // TV input type: the TV input service represents a SVIDEO port. 77 // TV input type: the TV input service represents a SCART port. 80 // TV input type: the TV input service represents a component port. 83 // TV input type: the TV input service represents a VGA port. 86 // TV input type: the TV input service represents a DVI port. 89 // TV input type: the TV input service is HDMI. (e.g. HDMI 1) 92 // TV input type: the TV input service represents a display port.
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | HeavyHitterSketchTest.java | 64 private List<Pair<Integer, Float>> getTopHeavyHitters(final int[] input, final int capacity) { in getTopHeavyHitters() argument 68 final int total = (int) (input.length / (1 - ratio)); in getTopHeavyHitters() 70 for (int i = 0; i < input.length; i++) { in getTopHeavyHitters() 71 sketcher.add(input[i]); in getTopHeavyHitters() 72 counter.add(input[i]); in getTopHeavyHitters() 74 int validationSize = total - input.length; in getTopHeavyHitters() 75 assertTrue(validationSize <= input.length); in getTopHeavyHitters() 77 sketcher.add(input[i]); in getTopHeavyHitters() 97 private List<Integer> getCandidates(final int[] input, final int capacity) { 100 final int total = (int) (input.length / (1 - ratio)); [all …]
|
/frameworks/rs/toolkit/ |
D | JniEntryPoints.cpp | 229 ByteArrayGuard input{env, input_array}; in Java_android_renderscript_toolkit_Toolkit_nativeBlur() local 232 toolkit->blur(input.get(), output.get(), size_x, size_y, vectorSize, radius, restrict.get()); in Java_android_renderscript_toolkit_Toolkit_nativeBlur() 240 BitmapGuard input{env, input_bitmap}; in Java_android_renderscript_toolkit_Toolkit_nativeBlurBitmap() local 243 toolkit->blur(input.get(), output.get(), input.width(), input.height(), input.vectorSize(), in Java_android_renderscript_toolkit_Toolkit_nativeBlurBitmap() 253 ByteArrayGuard input{env, input_array}; in Java_android_renderscript_toolkit_Toolkit_nativeColorMatrix() local 258 toolkit->colorMatrix(input.get(), output.get(), input_vector_size, output_vector_size, size_x, in Java_android_renderscript_toolkit_Toolkit_nativeColorMatrix() 267 BitmapGuard input{env, input_bitmap}; in Java_android_renderscript_toolkit_Toolkit_nativeColorMatrixBitmap() local 272 toolkit->colorMatrix(input.get(), output.get(), input.vectorSize(), output.vectorSize(), in Java_android_renderscript_toolkit_Toolkit_nativeColorMatrixBitmap() 273 input.width(), input.height(), matrix.get(), add.get(), restrict.get()); in Java_android_renderscript_toolkit_Toolkit_nativeColorMatrixBitmap() 282 ByteArrayGuard input{env, input_array}; in Java_android_renderscript_toolkit_Toolkit_nativeConvolve() local [all …]
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureVerifier.java | 70 public static ParseResult<SigningDetails> verify(ParseInput input, String apkPath, in verify() argument 72 return verifySignatures(input, apkPath, minSignatureSchemeVersion, true /* verifyFull */); in verify() 81 ParseInput input, String apkPath, int minSignatureSchemeVersion) { in unsafeGetCertsWithoutVerification() argument 82 return verifySignatures(input, apkPath, minSignatureSchemeVersion, false /* verifyFull */); in unsafeGetCertsWithoutVerification() 90 private static ParseResult<SigningDetails> verifySignatures(ParseInput input, String apkPath, in verifySignatures() argument 93 verifySignaturesInternal(input, apkPath, minSignatureSchemeVersion, verifyFull); in verifySignatures() 95 return input.error(result); in verifySignatures() 97 return input.success(result.getResult().signingDetails); in verifySignatures() 106 public static ParseResult<SigningDetailsWithDigests> verifySignaturesInternal(ParseInput input, in verifySignaturesInternal() argument 112 return input.error(INSTALL_PARSE_FAILED_NO_CERTIFICATES, in verifySignaturesInternal() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
D | ParseInputAndResultTest.kt | 59 private lateinit var input: ParseInput variable in android.content.pm.parsing.result.ParseInputAndResultTest 75 input = ParseTypeImpl(mockCallback) in createInput() 81 val result = input.error<Any?>(errorCode) in errorCode() 91 val result = input.error<Any?>(errorMessage) in errorMessage() 102 val result = input.error<Any?>(errorCode, errorMessage) in errorCodeAndMessage() 114 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCodeAndMessageAndException() 126 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCarryResult() 132 val carriedResult = input.error<Int>(result) in errorCarryResult() 142 assertSuccess(value, input.success(value)) in success() 147 assertSuccess(input.enableDeferredError(TEST_PACKAGE, Build.VERSION_CODES.Q)) in deferErrorEnableFirstSdkQ() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_flowgraph.cpp | 62 void local_convert_float_to_int16(const float *input, in local_convert_float_to_int16() argument 66 int32_t n = (int32_t) (*input++ * 32768.0f); in local_convert_float_to_int16() 103 sourceFloat.output.connect(&sinkI16.input); in TEST() 134 void local_convert_float_to_int32(const float *input, in local_convert_float_to_int32() argument 138 *output++ = clamp32FromFloat(*input++); in local_convert_float_to_int32() 177 sourceFloat.output.connect(&sinkI32.input); in TEST() 188 static const float input[] = {1.0f, 2.0f, 3.0f}; in TEST() local 194 sourceFloat.setData(input, 3); in TEST() 196 sourceFloat.output.connect(&monoToStereo.input); in TEST() 197 monoToStereo.output.connect(&sinkFloat.input); in TEST() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/component/ |
D | InstallConstraintsTagParser.java | 51 ParseInput input, ParsingPackage pkg, Resources res, XmlResourceParser parser) in parseInstallConstraints() argument 55 return input.skip("install-constraints cannot be used by this package"); in parseInstallConstraints() 58 ParseResult<Set<String>> prefixes = parseFingerprintPrefixes(input, res, parser); in parseInstallConstraints() 61 return input.success(pkg); in parseInstallConstraints() 63 return input.skip( in parseInstallConstraints() 68 return input.skip(prefixes.getErrorMessage()); in parseInstallConstraints() 72 ParseInput input, Resources res, XmlResourceParser parser) in parseFingerprintPrefixes() argument 81 return input.error("install-constraints must contain at least one constraint"); in parseFingerprintPrefixes() 83 return input.success(prefixes); in parseFingerprintPrefixes() 87 readFingerprintPrefixValue(input, res, parser); in parseFingerprintPrefixes() [all …]
|
D | ComponentParseUtils.java | 58 Component component, ParseInput input) throws XmlPullParserException, IOException { in parseAllMetaData() argument 69 result = ParsedComponentUtils.addMetaData(component, pkg, res, parser, input); in parseAllMetaData() 71 result = ParsingUtils.unknownTag(tag, pkg, parser, input); in parseAllMetaData() 75 return input.error(result); in parseAllMetaData() 79 return input.success(component); in parseAllMetaData() 84 CharSequence procSeq, int flags, String[] separateProcesses, ParseInput input) { in buildProcessName() argument 87 return input.success(defProc != null ? defProc : pkg); in buildProcessName() 93 return input.success(pkg); in buildProcessName() 98 return input.success(defProc); in buildProcessName() 102 "process", input); in buildProcessName() [all …]
|
/frameworks/base/libs/hwui/ |
D | Interpolator.cpp | 32 float AccelerateDecelerateInterpolator::interpolate(float input) { in interpolate() argument 33 return (float)(cosf((input + 1) * M_PI) / 2.0f) + 0.5f; in interpolate() 36 float AccelerateInterpolator::interpolate(float input) { in interpolate() argument 38 return input * input; in interpolate() 40 return pow(input, mDoubleFactor); in interpolate() 79 float CycleInterpolator::interpolate(float input) { in interpolate() argument 80 return sinf(2 * mCycles * M_PI * input); in interpolate() 83 float DecelerateInterpolator::interpolate(float input) { in interpolate() argument 86 result = 1.0f - (1.0f - input) * (1.0f - input); in interpolate() 88 result = 1.0f - pow((1.0f - input), 2 * mFactor); in interpolate() [all …]
|
D | Interpolator.h | 32 virtual float interpolate(float input) = 0; 42 virtual float interpolate(float input) override; 48 virtual float interpolate(float input) override; 58 virtual float interpolate(float input) override; 67 virtual float interpolate(float input) override; 75 virtual float interpolate(float input) override; 81 virtual float interpolate(float input) override; 90 virtual float interpolate(float input) override; 98 virtual float interpolate(float input) override { return input; } in interpolate() argument 104 virtual float interpolate(float input) override; [all …]
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | ApkLiteParseUtils.java | 103 public static ParseResult<PackageLite> parsePackageLite(ParseInput input, in parsePackageLite() argument 106 return parseClusterPackageLite(input, packageFile, /* frameworkSplits= */ null, flags); in parsePackageLite() 108 return parseMonolithicPackageLite(input, packageFile, flags); in parsePackageLite() 115 public static ParseResult<PackageLite> parseMonolithicPackageLite(ParseInput input, in parseMonolithicPackageLite() argument 119 final ParseResult<ApkLite> result = parseApkLite(input, packageFile, flags); in parseMonolithicPackageLite() 121 return input.error(result); in parseMonolithicPackageLite() 126 return input.success( in parseMonolithicPackageLite() 144 public static ParseResult<PackageLite> parseClusterPackageLite(ParseInput input, in parseClusterPackageLite() argument 150 return input.error(PackageManager.INSTALL_PARSE_FAILED_NOT_APK, in parseClusterPackageLite() 159 return input.error(PackageManager.INSTALL_PARSE_FAILED_NOT_APK, in parseClusterPackageLite() [all …]
|
D | FrameworkParsingPackageUtils.java | 108 public static ParseResult validateName(ParseInput input, String name, boolean requireSeparator, in validateName() argument 112 return input.error(errorMessage); in validateName() 114 return input.success(null); in validateName() 226 public static ParseResult<SigningDetails> getSigningDetails(ParseInput input, in getSigningDetails() argument 240 verified = ApkSignatureVerifier.unsafeGetCertsWithoutVerification(input, baseCodePath, in getSigningDetails() 243 verified = ApkSignatureVerifier.verify(input, baseCodePath, minSignatureScheme); in getSigningDetails() 247 return input.error(verified); in getSigningDetails() 258 return input.error(INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES, in getSigningDetails() 262 return input.success(existingSigningDetails); in getSigningDetails() 300 @NonNull String[] platformSdkCodenames, @NonNull ParseInput input) { in computeMinSdkVersion() argument [all …]
|
/frameworks/compile/mclinker/lib/Object/ |
D | ObjectLinker.cpp | 148 Module::input_iterator input, inEnd = m_pModule->input_end(); in normalize() local 149 for (input = m_pModule->input_begin(); input != inEnd; ++input) { in normalize() 151 if (isGroup(input)) { in normalize() 153 input, inEnd, m_pBuilder->getInputBuilder(), m_Config); in normalize() 159 if ((*input)->type() == Input::Script || in normalize() 160 (*input)->type() == Input::Archive || in normalize() 161 (*input)->type() == Input::External) in normalize() 164 if (Input::Object == (*input)->type()) { in normalize() 165 m_pModule->getObjectList().push_back(*input); in normalize() 169 if (Input::DynObj == (*input)->type()) { in normalize() [all …]
|