Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 996) sorted by relevance

12345678910>>...40

/frameworks/compile/mclinker/lib/LD/
DGroupReader.cpp50 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/
Dtrace_creator.py20 increment.time_stamp = int(input("Time stamp of action: "))
60 return int(input("> "))
86 return int(input("> "))
92 = bool(input("Is transaction synchronous (True/False): "))
94 = bool(input("Is transaction animated (True/False): "))
108 change.id = int(input("ID of layer/display to undergo a change: "))
163 increment.surface_creation.id = int(input("Enter id: "))
166 increment.surface_creation.w = input("Enter w: ")
167 increment.surface_creation.h = input("Enter h: ")
170 increment.surface_deletion.id = int(input("Enter id: "))
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java48 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult() local
51 input.informationElements = new InformationElement[] { in convertScanResult()
55 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResult()
57 validateScanDetail(input, output); in convertScanResult()
64 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines() local
67 input.informationElements = new InformationElement[] { in convertScanResultWithAnqpLines()
70 input.anqpLines = Arrays.asList("LINE 1", "line 2", "Line 3"); in convertScanResultWithAnqpLines()
72 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResultWithAnqpLines()
74 validateScanDetail(input, output); in convertScanResultWithAnqpLines()
80 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid() local
[all …]
/frameworks/native/libs/gui/
DLayerState.cpp123 status_t layer_state_t::read(const Parcel& input) in read() argument
125 surface = input.readStrongBinder(); in read()
126 what = input.readUint64(); in read()
127 x = input.readFloat(); in read()
128 y = input.readFloat(); in read()
129 z = input.readInt32(); in read()
130 w = input.readUint32(); in read()
131 h = input.readUint32(); in read()
132 layerStack = input.readUint32(); in read()
133 alpha = input.readFloat(); in read()
[all …]
DITransactionCompletedListener.cpp63 status_t FrameEventHistoryStats::readFromParcel(const Parcel* input) { in readFromParcel() argument
64 status_t err = input->readUint64(&frameNumber); in readFromParcel()
68 err = input->readBool(&hasFence); in readFromParcel()
73 err = input->read(*gpuCompositionDoneFence); in readFromParcel()
77 err = input->readInt64(&(compositorTiming.deadline)); in readFromParcel()
80 err = input->readInt64(&(compositorTiming.interval)); in readFromParcel()
83 err = input->readInt64(&(compositorTiming.presentLatency)); in readFromParcel()
86 err = input->readInt64(&refreshStartTime); in readFromParcel()
89 err = input->readInt64(&dequeueReadyTime); in readFromParcel()
120 status_t SurfaceStats::readFromParcel(const Parcel* input) { in readFromParcel() argument
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_flowgraph.cpp40 static const float input[] = {1.0f, 0.5f, -0.25f, -1.0f, 0.0f, 53.9f, -87.2f}; in TEST() local
46 int numInputFrames = sizeof(input) / sizeof(input[0]); in TEST()
47 sourceFloat.setData(input, numInputFrames); in TEST()
48 sourceFloat.output.connect(&sinkI16.input); in TEST()
59 static const float input[] = {1.0f, 2.0f, 3.0f}; in TEST() local
65 sourceFloat.setData(input, 3); in TEST()
67 sourceFloat.output.connect(&monoToStereo.input); in TEST()
68 monoToStereo.output.connect(&sinkFloat.input); in TEST()
72 EXPECT_EQ(input[0], output[0]); in TEST()
73 EXPECT_EQ(input[0], output[1]); in TEST()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DColorSpace.java42 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/av/media/libeffects/lvm/lib/Common/src/
DAbs_32.cpp33 LVM_INT32 Abs_32(LVM_INT32 input) in Abs_32() argument
35 if(input < 0) in Abs_32()
37 if (input == (LVM_INT32)(0x80000000U)) in Abs_32()
40 input=(LVM_INT32) 0x7fffffff; in Abs_32()
45 input = (LVM_INT32)(-input); in Abs_32()
48 return input; in Abs_32()
50 LVM_FLOAT Abs_Float(LVM_FLOAT input) in Abs_Float() argument
52 if(input < 0) in Abs_Float()
55 input = (LVM_FLOAT)(-input); in Abs_Float()
57 return input; in Abs_Float()
/frameworks/compile/mclinker/lib/Script/
DInputCmd.cpp65 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/
DFileAction.cpp23 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/
DGralloc4.cpp195 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/
Dmain.cpp31 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/content/pm/parsing/
DParsingPackageUtils.java139 ParseInput input = ParseTypeImpl.forDefaultParsing().reset(); in parseDefaultOneTime() local
140 return parseDefault(input, file, parseFlags, collectCertificates); in parseDefaultOneTime()
149 public static ParseResult<ParsingPackage> parseDefault(ParseInput input, File file, in parseDefault() argument
173 result = parser.parsePackage(input, file, parseFlags); in parseDefault()
178 return input.error(PackageManager.INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION, in parseDefault()
189 return input.success(pkg); in parseDefault()
191 return input.error(PackageManager.INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION, in parseDefault()
228 public ParseResult<ParsingPackage> parsePackage(ParseInput input, File packageFile, in parsePackage() argument
232 return parseClusterPackage(input, packageFile, flags); in parsePackage()
234 return parseMonolithicPackage(input, packageFile, flags); in parsePackage()
[all …]
DApkLiteParseUtils.java76 public static ParseResult<PackageParser.PackageLite> parsePackageLite(ParseInput input, in parsePackageLite() argument
79 return parseClusterPackageLite(input, packageFile, flags); in parsePackageLite()
81 return parseMonolithicPackageLite(input, packageFile, flags); in parsePackageLite()
86 ParseInput input, File packageFile, int flags) { in parseMonolithicPackageLite() argument
89 ParseResult<PackageParser.ApkLite> result = parseApkLite(input, packageFile, flags); in parseMonolithicPackageLite()
91 return input.error(result); in parseMonolithicPackageLite()
96 return input.success( in parseMonolithicPackageLite()
104 public static ParseResult<PackageParser.PackageLite> parseClusterPackageLite(ParseInput input, in parseClusterPackageLite() argument
108 return input.error(PackageManager.INSTALL_PARSE_FAILED_NOT_APK, in parseClusterPackageLite()
113 return parseClusterPackageLite(input, files[0], flags); in parseClusterPackageLite()
[all …]
/frameworks/base/core/java/android/util/
DBase64.java90 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/tools/aapt2/io/
DStringStream_test.cpp33 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/ml/nn/common/
DOperationsUtils.cpp385 bool reshapePrepare(const Shape& input, const int32_t* targetDims, const int32_t targetDimsSize, in reshapePrepare() argument
391 int32_t numInputElements = (int32_t)getNumberOfElements(input); in reshapePrepare()
414 output->type = input.type; in reshapePrepare()
416 output->offset = input.offset; in reshapePrepare()
417 output->scale = input.scale; in reshapePrepare()
422 bool depthToSpacePrepare(const Shape& input, int32_t blockSize, Shape* output) { in depthToSpacePrepare() argument
423 NN_OPS_CHECK(getNumberOfDimensions(input) == 4); in depthToSpacePrepare()
426 uint32_t batches = getSizeOfDimension(input, 0); in depthToSpacePrepare()
427 uint32_t height = getSizeOfDimension(input, 1); in depthToSpacePrepare()
428 uint32_t width = getSizeOfDimension(input, 2); in depthToSpacePrepare()
[all …]
/frameworks/base/libs/hwui/
DInterpolator.cpp32 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 …]
DInterpolator.h32 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/component/
DComponentParseUtils.java55 Component component, ParseInput input) throws XmlPullParserException, IOException { in parseAllMetaData() argument
66 result = ParsedComponentUtils.addMetaData(component, pkg, res, parser, input); in parseAllMetaData()
68 result = ParsingUtils.unknownTag(tag, pkg, parser, input); in parseAllMetaData()
72 return input.error(result); in parseAllMetaData()
76 return input.success(component); in parseAllMetaData()
81 CharSequence procSeq, int flags, String[] separateProcesses, ParseInput input) { in buildProcessName() argument
84 return input.success(defProc != null ? defProc : pkg); in buildProcessName()
90 return input.success(pkg); in buildProcessName()
95 return input.success(defProc); in buildProcessName()
99 "process", input); in buildProcessName()
[all …]
DParsedProcessUtils.java47 Resources res, XmlResourceParser parser, ParseInput input) in parseDenyPermission() argument
60 return input.success(perms); in parseDenyPermission()
65 XmlResourceParser parser, ParseInput input) in parseAllowPermission() argument
78 return input.success(perms); in parseAllowPermission()
84 ParseInput input) throws IOException, XmlPullParserException { in parseProcess() argument
96 input); in parseProcess()
98 return input.error(processNameResult); in parseProcess()
104 return input.error("<process> does not specify android:process"); in parseProcess()
126 proc.deniedPermissions, res, parser, input); in parseProcess()
134 proc.deniedPermissions, res, parser, input); in parseProcess()
[all …]
/frameworks/compile/mclinker/lib/Object/
DObjectLinker.cpp148 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 …]
/frameworks/ml/nn/common/operations/
DLSHProjection.cpp60 const RunTimeOperandInfo* input = GetInput(operation, operands, kInputTensor); in Prepare() local
61 NN_CHECK(NumDimensions(input) >= 1); in Prepare()
76 NN_CHECK_EQ(SizeOfDimension(weight, 0), SizeOfDimension(input, 0)); in Prepare()
97 int runningSignBit(const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, float seed) { in runningSignBit() argument
99 int input_item_bytes = nonExtensionOperandSizeOfData(input->type, input->dimensions) / in runningSignBit()
100 SizeOfDimension(input, 0); in runningSignBit()
101 char* input_ptr = (char*)(input->buffer); in runningSignBit()
107 for (uint32_t i = 0; i < SizeOfDimension(input, 0); ++i) { in runningSignBit()
127 const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, in SparseLshProjection() argument
135 int bit = runningSignBit<T>(input, weight, static_cast<float>(seed)); in SparseLshProjection()
[all …]
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DBackupFileDecryptorTask.java107 RandomAccessFile input = new RandomAccessFile(inputFile, READ_MODE); in decryptFile() local
109 long metadataOffset = getChunksMetadataOffset(input); in decryptFile()
111 getChunksMetadata(input, metadataOffset); in decryptFile()
118 input, decryptedChunkOutput, chunkOrdering, metadataOffset); in decryptFile()
122 decryptFileWithInlineLengths(input, decryptedChunkOutput, metadataOffset); in decryptFile()
135 RandomAccessFile input, in decryptFileWithExplicitStarts() argument
155 input.seek(start); in decryptFileWithExplicitStarts()
156 input.readFully(encryptedChunkBuffer, 0, length); in decryptFileWithExplicitStarts()
165 RandomAccessFile input, DecryptedChunkOutput decryptedChunkOutput, long metadataOffset) in decryptFileWithInlineLengths() argument
169 input.seek(0); in decryptFileWithInlineLengths()
[all …]
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp55 std::string input = kXmlPreamble; in TEST() local
56 input += R"(<attr name="foo"/>)"; in TEST()
57 StringInputStream in(input); in TEST()
77 std::string input = kXmlPreamble; in TestParse() local
78 input += "<resources>\n"; in TestParse()
79 input.append(str.data(), str.size()); in TestParse()
80 input += "\n</resources>"; in TestParse()
81 StringInputStream in(input); in TestParse()
137 ASSERT_TRUE(TestParse(input)); in TEST_F()
204 std::string input = R"(<string name="foo"> <b> My <i> favorite</i> string </b> </string>)"; in TEST_F() local
[all …]

12345678910>>...40