/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/ |
D | MultipartTest.java | 60 StringBuffer output = new StringBuffer(); in testParts() local 62 output.append("--"); in testParts() 63 output.append(boundry); in testParts() 64 output.append(CRLF); in testParts() 66 output.append("Content-Disposition: form-data; name=\"stringpart\""); in testParts() 67 output.append(CRLF); in testParts() 68 output.append("Content-Type: text/plain; charset=US-ASCII"); in testParts() 69 output.append(CRLF); in testParts() 70 output.append("Content-Transfer-Encoding: 8bit"); in testParts() 71 output.append(CRLF); in testParts() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 74 public byte[] output; field in Base64.Coder 167 if (decoder.op == decoder.output.length) { in decode() 168 return decoder.output; in decode() 174 System.arraycopy(decoder.output, 0, temp, 0, decoder.op); in decode() 243 public Decoder(int flags, byte[] output) { in Decoder() argument 244 this.output = output; in Decoder() 279 final byte[] output = this.output; in process() 303 output[op+2] = (byte) value; in process() 304 output[op+1] = (byte) (value >> 8); in process() 305 output[op] = (byte) (value >> 16); in process() [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator_test.cpp | 74 std::string output; in TEST() local 75 StringOutputStream out(&output); in TEST() 79 EXPECT_THAT(output, HasSubstr("public static final int hey_man=0x01020000;")); in TEST() 80 EXPECT_THAT(output, HasSubstr("public static final int[] hey_dude={")); in TEST() 81 EXPECT_THAT(output, HasSubstr("public static final int hey_dude_cool_attr=0;")); in TEST() 99 std::string output; in TEST() local 100 StringOutputStream out(&output); in TEST() 104 EXPECT_THAT(output, HasSubstr("package com.android.internal;")); in TEST() 105 EXPECT_THAT(output, HasSubstr("public static final int one=0x01020000;")); in TEST() 106 EXPECT_THAT(output, Not(HasSubstr("two"))); in TEST() [all …]
|
/frameworks/native/libs/gui/ |
D | LayerState.cpp | 29 status_t layer_state_t::write(Parcel& output) const in write() 31 output.writeStrongBinder(surface); in write() 32 output.writeUint64(what); in write() 33 output.writeFloat(x); in write() 34 output.writeFloat(y); in write() 35 output.writeInt32(z); in write() 36 output.writeUint32(w); in write() 37 output.writeUint32(h); in write() 38 output.writeUint32(layerStack); in write() 39 output.writeFloat(alpha); in write() [all …]
|
D | ITransactionCompletedListener.cpp | 33 status_t SurfaceStats::writeToParcel(Parcel* output) const { in writeToParcel() 34 status_t err = output->writeStrongBinder(surfaceControl); in writeToParcel() 38 err = output->writeInt64(acquireTime); in writeToParcel() 43 err = output->writeBool(true); in writeToParcel() 47 err = output->write(*previousReleaseFence); in writeToParcel() 49 err = output->writeBool(false); in writeToParcel() 78 status_t TransactionStats::writeToParcel(Parcel* output) const { in writeToParcel() 79 status_t err = output->writeInt64Vector(callbackIds); in writeToParcel() 83 err = output->writeInt64(latchTime); in writeToParcel() 88 err = output->writeBool(true); in writeToParcel() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_flowgraph.cpp | 42 int16_t output[20]; in TEST() local 48 sourceFloat.output.connect(&sinkI16.input); in TEST() 50 int numOutputFrames = sizeof(output) / sizeof(int16_t); in TEST() 51 int32_t numRead = sinkI16.read(output, numOutputFrames); in TEST() 54 EXPECT_EQ(expected[i], output[i]); in TEST() 60 float output[100] = {}; in TEST() local 67 sourceFloat.output.connect(&monoToStereo.input); in TEST() 68 monoToStereo.output.connect(&sinkFloat.input); in TEST() 70 int32_t numRead = sinkFloat.read(output, 8); in TEST() 72 EXPECT_EQ(input[0], output[0]); in TEST() [all …]
|
/frameworks/native/libs/input/ |
D | InputWindow.cpp | 67 status_t InputWindowInfo::write(Parcel& output) const { in write() 69 output.writeInt32(0); in write() 72 output.writeInt32(1); in write() 73 status_t s = output.writeStrongBinder(token); in write() 76 output.writeString8(String8(name.c_str())); in write() 77 output.writeInt32(layoutParamsFlags); in write() 78 output.writeInt32(layoutParamsType); in write() 79 output.writeInt64(dispatchingTimeout); in write() 80 output.writeInt32(frameLeft); in write() 81 output.writeInt32(frameTop); in write() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaPlayerStressTest.java | 73 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument 74 output.write("File Name: " + filename); in writeTestOutput() 75 output.write(" Complete: " + CodecTest.onCompleteSuccess); in writeTestOutput() 76 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput() 77 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); in writeTestOutput() 78 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); in writeTestOutput() 79 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); in writeTestOutput() 80 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); in writeTestOutput() 81 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); in writeTestOutput() 82 output.write(" Failed To Complete With No Error: " + in writeTestOutput() [all …]
|
D | MediaPlayerStreamingStressTest.java | 77 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument 78 output.write("URL: " + filename); in writeTestOutput() 79 output.write(" Complete: " + CodecTest.onCompleteSuccess); in writeTestOutput() 80 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput() 81 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); in writeTestOutput() 82 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); in writeTestOutput() 83 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); in writeTestOutput() 84 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); in writeTestOutput() 85 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); in writeTestOutput() 86 output.write("\n"); in writeTestOutput() [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | strided_slice_quant8_signed.mod.py | 26 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{1, 3}, 1.0, -128") variable 28 …peration("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisMask).To(output) 34 output0 = {output: # output 0 51 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{3}, 1.0, -128") variable 53 …peration("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisMask).To(output) 59 output0 = {output: # output 0 76 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{2}, 1.0, -128") variable 78 …peration("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisMask).To(output) 84 output0 = {output: # output 0 101 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{2}, 1.0, -128") variable [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 44 expectOutputSize(output, width * height * 4); in convertYuv420pToRgba8888() 45 nativeYuv420pToRgba8888(input, output, width, height); in convertYuv420pToRgba8888() 61 ByteBuffer input, ByteBuffer output, int width, int height) { in convertArgb8888ToRgba8888() argument 63 expectOutputSize(output, 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 82 expectOutputSize(output, 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/ex/common/tools/ |
D | make-iana-tld-pattern.py | 65 output = BucketOutput() 69 output += '+ "' 71 output += '"(' 73 output += '+ "|' 76 output += '(' 79 output += '?:' 84 output.addPipe() 88 output += '\\\\' # escape the '-' character. 89 output += letter 92 output.addPipe() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsFileLoggerTest.java | 63 JSONObject output = getOutputFileAsJson(); in testEmptyStorage() local 64 assertThat(output.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); in testEmptyStorage() 65 assertThat(output.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); in testEmptyStorage() 66 assertThat(output.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); in testEmptyStorage() 67 assertThat(output.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); in testEmptyStorage() 68 assertThat(output.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyStorage() 69 assertThat(output.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyStorage() 70 assertThat(output.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); in testEmptyStorage() 71 assertThat(output.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)).isEqualTo(0L); in testEmptyStorage() 73 output.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY).length()).isEqualTo(0L); in testEmptyStorage() [all …]
|
/frameworks/base/cmds/idmap2/ |
D | static-checks.sh | 32 local output="$(eval "$cmd")" 33 if [[ -z "${output}" ]]; then 37 echo "${output}" 50 local output="$(clang-format -style=file "$path" | diff $path -)" 51 if [[ "$output" ]]; then 53 echo "$output" 62 local output="$(bpfmt -d $bp_files)" 63 if [[ "$output" ]]; then 64 echo "$output" 73 local output="$($cpplint --quiet $cpp_files 2>&1 >/dev/null | grep -v \ [all …]
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 130 uint32_t output) { in addNopOperation() argument 147 model->addOperation(ANEURALNETWORKS_ADD, {input, inputZeros, activation}, {output}); in addNopOperation() 197 int64_t output[N] = {}; in TEST_F() local 198 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, &output, sizeof(output)), in TEST_F() 203 EXPECT_EQ(output[0], 1 / scale + zeroPoint); in TEST_F() 204 EXPECT_EQ(output[1], 1 / scale + zeroPoint); in TEST_F() 205 EXPECT_EQ(output[2], 2 / scale + zeroPoint); in TEST_F() 206 EXPECT_EQ(output[3], 3 / scale + zeroPoint); in TEST_F() 207 EXPECT_EQ(output[4], 5 / scale + zeroPoint); in TEST_F() 208 EXPECT_EQ(output[5], 8 / scale + zeroPoint); in TEST_F() [all …]
|
/frameworks/base/cmds/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 39 vector<uint8_t> output; in TEST() local 40 stats.dumpStats(&output, false /*reset stats*/); in TEST() 43 bool good = report.ParseFromArray(&output[0], output.size()); in TEST() 66 vector<uint8_t> output; in TEST() local 67 stats.dumpStats(&output, false); in TEST() 70 bool good = report.ParseFromArray(&output[0], output.size()); in TEST() 87 vector<uint8_t> output; in TEST() local 88 stats.dumpStats(&output, false); in TEST() 90 bool good = report.ParseFromArray(&output[0], output.size()); in TEST() 97 stats.dumpStats(&output, false); in TEST() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | LocaleListCache.cpp | 34 static size_t toLanguageTag(char* output, size_t outSize, const StringPiece& locale) { in toLanguageTag() argument 35 output[0] = '\0'; in toLanguageTag() 44 outLength = uloc_canonicalize(localeString.c_str(), output, outSize, &uErr); in toLanguageTag() 48 output[0] = '\0'; in toLanguageTag() 53 if (outLength == 0 || (outLength == 5 && output[0] == '_')) { in toLanguageTag() 54 if (output[0] == '_') { in toLanguageTag() 55 output[0] = '-'; in toLanguageTag() 57 std::string buf(output, outLength); in toLanguageTag() 58 outLength = (size_t)snprintf(output, outSize, "und%s", buf.c_str()); in toLanguageTag() 64 uloc_addLikelySubtags(output, likelyChars, ULOC_FULLNAME_CAPACITY, &uErr); in toLanguageTag() [all …]
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.h | 216 std::shared_ptr<C2StreamIntraRefreshTuning::output> mIntraRefresh; 217 std::shared_ptr<C2StreamFrameRateInfo::output> mFrameRate; 218 std::shared_ptr<C2StreamBitrateInfo::output> mBitrate; 219 std::shared_ptr<C2StreamBitrateModeTuning::output> mBitrateMode; 220 std::shared_ptr<C2StreamRequestSyncFrameTuning::output> mRequestSync; 277 .withDefault(new C2StreamBitrateModeTuning::output( in IntfImpl() 289 .withDefault(new C2StreamFrameRateInfo::output(0u, 30.)) in IntfImpl() 298 .withDefault(C2StreamTemporalLayeringTuning::output::AllocShared(0u, 0, 0, 0)) in IntfImpl() 309 .withDefault(new C2StreamSyncFrameIntervalTuning::output(0u, 1000000)) in IntfImpl() 316 .withDefault(new C2StreamBitrateInfo::output(0u, 64000)) in IntfImpl() [all …]
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBufferChannel.cpp | 239 Mutexed<Output>::Locked output(mOutput); in CCodecBufferChannel() local 240 output->outputDelay = 0u; in CCodecBufferChannel() 241 output->numSlots = kSmoothnessFactor; in CCodecBufferChannel() 533 Mutexed<Output>::Locked output(mOutput); in feedInputBufferIfAvailableInternal() local 534 if (output->buffers->numClientBuffers() >= output->numSlots) { in feedInputBufferIfAvailableInternal() 563 Mutexed<Output>::Locked output(mOutput); in renderOutputBuffer() local 564 if (output->buffers) { in renderOutputBuffer() 565 released = output->buffers->releaseBuffer(buffer, &c2Buffer); in renderOutputBuffer() 597 std::shared_ptr<const C2StreamRotationInfo::output> rotation = in renderOutputBuffer() 598 std::static_pointer_cast<const C2StreamRotationInfo::output>( in renderOutputBuffer() [all …]
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | KeyStoreCryptoOperationChunkedStreamer.java | 117 byte[] output = EmptyArray.BYTE; in update() 157 if ((opResult.output != null) && (opResult.output.length > 0)) { in update() 159 mProducedOutputSizeBytes += opResult.output.length; in update() 160 output = ArrayUtils.concat(output, opResult.output); in update() 164 return output; in update() 169 byte[] output = update(input, inputOffset, inputLength); in doFinal() 181 if ((opResult.output != null) && (opResult.output.length > 0)) { in doFinal() 182 mProducedOutputSizeBytes += opResult.output.length; in doFinal() 183 output = ArrayUtils.concat(output, opResult.output); in doFinal() 186 return output; in doFinal()
|
/frameworks/av/media/img_utils/src/ |
D | TiffEntry.cpp | 127 String8 output; in toString() local 129 output.appendFormat("[id: %x, type: %d, count: %u, value: '", getTag(), getType(), count); in toString() 142 output.appendFormat("%u ", typed_data[i]); in toString() 152 output.append(typed_data, len); in toString() 158 output.appendFormat("%u ", typed_data[i]); in toString() 165 output.appendFormat("%u ", typed_data[i]); in toString() 173 output.appendFormat("%u/%u ", typed_data[i], typed_data[i + 1]); in toString() 180 output.appendFormat("%d ", typed_data[i]); in toString() 187 output.appendFormat("%d ", typed_data[i]); in toString() 194 output.appendFormat("%d ", typed_data[i]); in toString() [all …]
|
/frameworks/base/libs/hwui/ |
D | RenderProperties.cpp | 97 static void dumpMatrix(std::ostream& output, std::string& indent, const char* label, in dumpMatrix() argument 100 output << indent << "(" << label << " " << matrix << ": "; in dumpMatrix() 101 output << std::fixed << std::setprecision(2); in dumpMatrix() 102 output << "[" << matrix->get(0) << " " << matrix->get(1) << " " << matrix->get(2) << "]"; in dumpMatrix() 103 output << " [" << matrix->get(3) << " " << matrix->get(4) << " " << matrix->get(5) << "]"; in dumpMatrix() 104 output << " [" << matrix->get(6) << " " << matrix->get(7) << " " << matrix->get(8) << "]"; in dumpMatrix() 105 output << ")" << std::endl; in dumpMatrix() 109 void RenderProperties::debugOutputProperties(std::ostream& output, const int level) const { in debugOutputProperties() argument 112 output << indent << "(Translate (left, top) " << mPrimitiveFields.mLeft << ", " in debugOutputProperties() 115 dumpMatrix(output, indent, "ConcatMatrix (static)", mStaticMatrix); in debugOutputProperties() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 52 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResult() local 54 validateScanDetail(input, output); in convertScanResult() 69 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResultWithAnqpLines() local 71 validateScanDetail(input, output); in convertScanResultWithAnqpLines() 83 ScanDetail output = ScanResultUtil.toScanDetail(input); in convertScanResultWithoutWifiSsid() local 85 validateScanDetail(input, output); in convertScanResultWithoutWifiSsid() 202 private static void validateScanDetail(ScanResult input, ScanDetail output) { in validateScanDetail() argument 203 assertNotNull("NetworkDetail was null", output.getNetworkDetail()); in validateScanDetail() 204 assertNotNull("ScanResult was null", output.getScanResult()); in validateScanDetail() 206 output.getNetworkDetail().getSSID()); in validateScanDetail() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationUsageStats.java | 618 StringBuilder output = new StringBuilder(); in toStringWithIndent() local 619 output.append(indent).append("AggregatedStats{\n"); in toStringWithIndent() 621 output.append(indentPlusTwo); in toStringWithIndent() 622 output.append("key='").append(key).append("',\n"); in toStringWithIndent() 623 output.append(indentPlusTwo); in toStringWithIndent() 624 output.append("numEnqueuedByApp=").append(numEnqueuedByApp).append(",\n"); in toStringWithIndent() 625 output.append(indentPlusTwo); in toStringWithIndent() 626 output.append("numPostedByApp=").append(numPostedByApp).append(",\n"); in toStringWithIndent() 627 output.append(indentPlusTwo); in toStringWithIndent() 628 output.append("numUpdatedByApp=").append(numUpdatedByApp).append(",\n"); in toStringWithIndent() [all …]
|
/frameworks/base/cmds/statsd/src/storage/ |
D | StorageManager.cpp | 80 static void parseFileName(char* name, FileName* output) { in parseFileName() argument 96 output->mTimestampSec = result[0]; in parseFileName() 97 output->mUid = result[1]; in parseFileName() 98 output->mConfigId = result[2]; in parseFileName() 100 output->mIsHistory = (substr != nullptr && strcmp("history", substr) == 0); in parseFileName() 372 FileName output; in sendBroadcast() local 373 parseFileName(name, &output); in sendBroadcast() 374 if (output.mTimestampSec == -1 || output.mIsHistory) continue; in sendBroadcast() 375 sendBroadcast(ConfigKey((int)output.mUid, output.mConfigId)); in sendBroadcast() 398 FileName output; in hasConfigMetricsReport() local [all …]
|