/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbMidiPacketConverterTest.java | 53 byte[] input = new byte[] {0x19 /* Cable 1 Note-On */, (byte) 0x91, 0x33, 0x66}; in testDecoderSinglePacket() 56 usbMidiPacketConverter.decodeMidiPackets(input, input.length); in testDecoderSinglePacket() 67 byte[] input = new byte[] { in testDecoderMultiplePackets() 75 usbMidiPacketConverter.decodeMidiPackets(input, input.length); in testDecoderMultiplePackets() 90 byte[] input = new byte[] { in testDecoderSysExEndFirstByte() 97 usbMidiPacketConverter.decodeMidiPackets(input, input.length); in testDecoderSysExEndFirstByte() 108 byte[] input = new byte[] { in testDecoderSysExEndSecondByte() 114 usbMidiPacketConverter.decodeMidiPackets(input, input.length); in testDecoderSysExEndSecondByte() 122 byte[] input = new byte[] { in testDecoderSysExEndThirdByte() 129 usbMidiPacketConverter.decodeMidiPackets(input, input.length); in testDecoderSysExEndThirdByte() [all …]
|
/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/libs/binder/tests/ |
D | IBinderRecordReplayTest.aidl | 19 void setByte(byte input); in setByte() argument 22 void setChar(char input); in setChar() argument 25 void setBoolean(boolean input); in setBoolean() argument 28 void setInt(int input); in setInt() argument 31 void setFloat(float input); in setFloat() argument 34 void setLong(long input); in setLong() argument 37 void setDouble(double input); in setDouble() argument 40 void setString(String input); in setString() argument 46 void setByteArray(in byte[] input); in setByteArray() argument 49 void setCharArray(in char[] input); in setCharArray() argument [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/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/gui/ |
D | LayerState.cpp | 199 status_t layer_state_t::read(const Parcel& input) in read() argument 201 SAFE_PARCEL(input.readNullableStrongBinder, &surface); in read() 202 SAFE_PARCEL(input.readInt32, &layerId); in read() 203 SAFE_PARCEL(input.readUint64, &what); in read() 204 SAFE_PARCEL(input.readFloat, &x); in read() 205 SAFE_PARCEL(input.readFloat, &y); in read() 206 SAFE_PARCEL(input.readInt32, &z); in read() 207 SAFE_PARCEL(input.readUint32, &layerStack.id); in read() 209 SAFE_PARCEL(input.readUint32, &flags); in read() 211 SAFE_PARCEL(input.readUint32, &mask); in read() [all …]
|
D | ITransactionCompletedListener.cpp | 87 status_t FrameEventHistoryStats::readFromParcel(const Parcel* input) { in readFromParcel() argument 88 status_t err = input->readUint64(&frameNumber); in readFromParcel() 92 err = input->readUint64(&previousFrameNumber); in readFromParcel() 97 err = input->readBool(&hasFence); in readFromParcel() 102 err = input->read(*gpuCompositionDoneFence); in readFromParcel() 106 err = input->readInt64(&(compositorTiming.deadline)); in readFromParcel() 109 err = input->readInt64(&(compositorTiming.interval)); in readFromParcel() 112 err = input->readInt64(&(compositorTiming.presentLatency)); in readFromParcel() 115 err = input->readInt64(&refreshStartTime); in readFromParcel() 118 err = input->readInt64(&dequeueReadyTime); in readFromParcel() [all …]
|
/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 | 91 public abstract boolean process(byte[] input, int offset, int len, boolean finish); in process() argument 138 public static byte[] decode(byte[] input, int flags) { in decode() argument 139 return decode(input, 0, input.length, flags); in decode() 158 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() argument 163 if (!decoder.process(input, offset, len, true)) { in decode() 266 public boolean process(byte[] input, int offset, int len, boolean finish) { in process() argument 300 (value = ((alphabet[input[p] & 0xff] << 18) | in process() 301 (alphabet[input[p+1] & 0xff] << 12) | in process() 302 (alphabet[input[p+2] & 0xff] << 6) | in process() 303 (alphabet[input[p+3] & 0xff]))) >= 0) { in process() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/ |
D | PinInputViewModel.kt | 39 @get:VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) val input: List<EntryToken> constant in com.android.systemui.bouncer.ui.viewmodel.PinInputViewModel 42 require(input.firstOrNull() is ClearAll) { "input does not begin with a ClearAll token" } in <lambda>() 43 require(input.zipWithNext().all { it.first < it.second }) { in <lambda>() 66 return PinInputViewModel(input, Digit(digit)) in append() 76 return PinInputViewModel(input.take(input.size - 1)) in deleteLast() 86 return PinInputViewModel(input, ClearAll()) in clearAll() 91 return input.last() is ClearAll in isEmpty() 96 return getDigits(mostRecentClearAll()).map { it.input } in getPin() 106 val startIndex = input.indexOf(clearAllMarker) + 1 in getDigits() 107 if (startIndex == 0 || startIndex == input.size) return emptyList() in getDigits() [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/av/media/libstagefright/timedtext/test/fuzzer/ |
D | timedtext_fuzzer.cpp | 53 DEFINE_PROTO_FUZZER(const TimedText& input) { in DEFINE_PROTO_FUZZER() argument 54 switch (input.handle()) { in DEFINE_PROTO_FUZZER() 56 size_t gppGlobalByteSize = input.global().ByteSizeLong(); in DEFINE_PROTO_FUZZER() 61 input.global().SerializeToArray(global3GPPDescription.data() + kChunkBytes, in DEFINE_PROTO_FUZZER() 67 input.timems(), parcel); in DEFINE_PROTO_FUZZER() 73 size_t gppLocalByteSize = input.local().ByteSizeLong(); in DEFINE_PROTO_FUZZER() 77 std::string text = input.local().localtext().text(); in DEFINE_PROTO_FUZZER() 80 input.local().localtext().SerializeToArray(local3GPPDescription.data() + kTextBytes, in DEFINE_PROTO_FUZZER() 82 size_t gppLocalFormatSize = input.local().format().ByteSizeLong(); in DEFINE_PROTO_FUZZER() 85 switch (input.local().format().formatStyle_case()) { in DEFINE_PROTO_FUZZER() [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/java/com/android/internal/pm/pkg/parsing/ |
D | ParsingPackageUtils.java | 265 public static ParseResult<ParsedPackage> parseDefault(ParseInput input, File file, in parseDefault() argument 272 var parseResult = parser.parsePackage(input, file, parseFlags); in parseDefault() 274 return input.error(parseResult); in parseDefault() 281 ParsingPackageUtils.getSigningDetails(input, pkg, false /*skipVerify*/); in parseDefault() 283 return input.error(ret); in parseDefault() 288 return input.success(pkg); in parseDefault() 322 public ParseResult<ParsingPackage> parsePackage(ParseInput input, File packageFile, int flags) { in parsePackage() argument 324 return parseClusterPackage(input, packageFile, flags); in parsePackage() 326 return parseMonolithicPackage(input, packageFile, flags); in parsePackage() 339 private ParseResult<ParsingPackage> parseClusterPackage(ParseInput input, File packageDir, in parseClusterPackage() argument [all …]
|
/frameworks/native/libs/input/ |
D | input_flags.aconfig | 1 package: "com.android.input.flags" 6 namespace: "input" 13 namespace: "input" 20 namespace: "input" 27 namespace: "input" 28 …description: "Set to true to enable input event tracing, including always-on tracing on non-user b… 34 namespace: "input" 35 …description: "Set to true to enable multi-device input: touch and stylus can be active at the same… 48 namespace: "input" 55 namespace: "input" [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/com/android/internal/pm/pkg/component/ |
D | ComponentParseUtils.java | 56 Component component, ParseInput input) throws XmlPullParserException, IOException { in parseAllMetaData() argument 70 result = ParsedComponentUtils.addMetaData(component, pkg, res, parser, input); in parseAllMetaData() 72 result = ParsingUtils.unknownTag(tag, pkg, parser, input); in parseAllMetaData() 76 return input.error(result); in parseAllMetaData() 80 return input.success(component); in parseAllMetaData() 85 CharSequence procSeq, int flags, String[] separateProcesses, ParseInput input) { in buildProcessName() argument 88 return input.success(defProc != null ? defProc : pkg); in buildProcessName() 94 return input.success(pkg); in buildProcessName() 99 return input.success(defProc); in buildProcessName() 103 "process", input); in buildProcessName() [all …]
|
D | InstallConstraintsTagParser.java | 51 ParseInput input, ParsingPackage pkg, Resources res, XmlResourceParser parser, in parseInstallConstraints() argument 54 return input.skip("install-constraints cannot be used by this package"); in parseInstallConstraints() 57 ParseResult<Set<String>> prefixes = parseFingerprintPrefixes(input, res, parser); in parseInstallConstraints() 60 return input.success(pkg); in parseInstallConstraints() 62 return input.skip( in parseInstallConstraints() 67 return input.skip(prefixes.getErrorMessage()); in parseInstallConstraints() 71 ParseInput input, Resources res, XmlResourceParser parser) in parseFingerprintPrefixes() argument 80 return input.error("install-constraints must contain at least one constraint"); in parseFingerprintPrefixes() 82 return input.success(prefixes); in parseFingerprintPrefixes() 89 readFingerprintPrefixValue(input, res, parser); in parseFingerprintPrefixes() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | HeavyHitterSketchTest.java | 72 private List<Pair<Integer, Float>> getTopHeavyHitters(final int[] input, final int capacity) { in getTopHeavyHitters() argument 76 final int total = (int) (input.length / (1 - ratio)); in getTopHeavyHitters() 78 for (int i = 0; i < input.length; i++) { in getTopHeavyHitters() 79 sketcher.add(input[i]); in getTopHeavyHitters() 80 counter.add(input[i]); in getTopHeavyHitters() 82 int validationSize = total - input.length; in getTopHeavyHitters() 83 assertTrue(validationSize <= input.length); in getTopHeavyHitters() 85 sketcher.add(input[i]); in getTopHeavyHitters() 105 private List<Integer> getCandidates(final int[] input, final int capacity) { 108 final int total = (int) (input.length / (1 - ratio)); [all …]
|
D | QuickSelectTest.java | 113 private void test(List<Integer> input, int k, Integer expected) throws Exception { in test() argument 114 test(input, 0, input == null ? 0 : input.size(), k, expected); in test() 117 private void test(List<Integer> input, int start, int length, int k, Integer expected) in test() argument 120 final Integer result = QuickSelect.select(input, start, length, k, Integer::compare); in test() 129 private void test(int[] input, int k, Integer expected) throws Exception { in test() argument 130 test(input, 0, input == null ? 0 : input.length, k, expected); in test() 133 private void test(int[] input, int start, int length, int k, Integer expected) in test() argument 136 final int result = QuickSelect.select(input, start, length, k); in test() 145 private void test(long[] input, int k, Long expected) throws Exception { in test() argument 146 test(input, 0, input == null ? 0 : input.length, k, expected); in test() [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/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 …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_flowgraph.cpp | 84 void local_convert_float_to_int16(const float *input, in local_convert_float_to_int16() argument 88 int32_t n = (int32_t) (*input++ * 32768.0f); in local_convert_float_to_int16() 125 sourceFloat.output.connect(&sinkI16.input); in TEST() 156 void local_convert_float_to_int32(const float *input, in local_convert_float_to_int32() argument 160 *output++ = clamp32FromFloat(*input++); in local_convert_float_to_int32() 199 sourceFloat.output.connect(&sinkI32.input); in TEST() 210 static const float input[] = {1.0f, 2.0f, 3.0f}; in TEST() local 216 sourceFloat.setData(input, 3); in TEST() 218 sourceFloat.output.connect(&monoToStereo.input); in TEST() 219 monoToStereo.output.connect(&sinkFloat.input); in TEST() [all …]
|