/packages/modules/adb/daemon/ |
D | property_monitor_test.cpp | 64 static void RegisterCallback(PropertyMonitor* pm, PropertyChanges* output, in RegisterCallback() argument 66 pm->Add(property_name, [output, property_name](std::string value) { in RegisterCallback() 67 std::lock_guard<std::mutex> lock(output->mutex); in RegisterCallback() 69 output->changes[property_name].emplace_back(std::move(value)); in RegisterCallback() 76 PropertyChanges output; in TEST() local 82 RegisterCallback(&pm, &output, foo); in TEST() 85 RegisterCallback(&pm, &output, never_set); in TEST() 92 std::lock_guard<std::mutex> lock(output.mutex); in TEST() 93 ASSERT_EQ(2UL, output.changes.size()); in TEST() 94 ASSERT_EQ(2UL, output.changes[foo].size()); in TEST() [all …]
|
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
D | rect.cc | 33 Rectangle_i output; in IntRect() local 34 output.left = std::min(x1, x2); in IntRect() 35 output.top = std::min(y1, y2); in IntRect() 36 output.right = std::max(x1, x2); in IntRect() 37 output.bottom = std::max(y1, y2); in IntRect() 38 return output; in IntRect() 54 Rectangle_d output; in DoubleRect() local 55 output.left = std::min(x1, x2); in DoubleRect() 56 output.top = std::min(y1, y2); in DoubleRect() 57 output.right = std::max(x1, x2); in DoubleRect() [all …]
|
/packages/services/Car/tools/telemetry/lua-interpreter/tests/ |
D | lua_engine_test.cc | 35 std::stringstream output; in ConvertVectorToString() local 37 output << s; in ConvertVectorToString() 39 return output.str(); in ConvertVectorToString() 43 std::stringstream output; in ConvertArrayToString() local 45 output << array[i]; in ConvertArrayToString() 47 return output.str(); in ConvertArrayToString() 52 std::vector<std::string> output = lua_engine_.ExecuteScript( in TEST_F() local 54 std::string actual = ConvertVectorToString(output); in TEST_F() 59 std::vector<std::string> output = lua_engine_.ExecuteScript( in TEST_F() local 61 std::string actual = ConvertVectorToString(output); in TEST_F() [all …]
|
/packages/modules/NeuralNetworks/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 …]
|
D | space_to_batch_quant8_signed.mod.py | 21 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{4, 2, 2, 1}, 1.0, -128") variable 23 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output) 35 output: # output 0 51 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{6, 2, 2, 1}, 1.0, -128") variable 53 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output) 62 output: # output 0 79 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{6, 2, 4, 1}, 1.0, -128") variable 81 model = model.Operation("SPACE_TO_BATCH_ND", i1, block, paddings).To(output) 90 output: # output 0 111 output = Output("output", "TENSOR_QUANT8_ASYMM_SIGNED", "{6, 2, 2, 1}, 1.0, -119") variable [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | WebAddressesTest.java | 90 Optional<Uri> output = in testTopPrivateDomainAndScheme_validPublicDomainAndHttpsScheme() local 92 assertEquals(HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX, output.get()); in testTopPrivateDomainAndScheme_validPublicDomainAndHttpsScheme() 128 Optional<Uri> output = WebAddresses.originAndScheme(HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX); in testOriginAndScheme_validPublicDomainAndHttpsScheme() local 129 assertEquals(HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX, output.get()); in testOriginAndScheme_validPublicDomainAndHttpsScheme() 161 Optional<Uri> output = in testTopPrivateDomainAndScheme_validPrivateDomainAndHttpsScheme() local 164 assertEquals(HTTPS_PRIVATE_DOMAIN_BLOGSPOT_COM_PUBLIC_SUFFIX, output.get()); in testTopPrivateDomainAndScheme_validPrivateDomainAndHttpsScheme() 169 Optional<Uri> output = WebAddresses.originAndScheme( in testOriginAndScheme_validPrivateDomainAndHttpsScheme() local 171 assertEquals(HTTPS_PRIVATE_DOMAIN_BLOGSPOT_COM_PUBLIC_SUFFIX, output.get()); in testOriginAndScheme_validPrivateDomainAndHttpsScheme() 176 Optional<Uri> output = in testTopPrivateDomainAndScheme_validPublicDomainAndHttpsScheme_extraSubdomain() local 179 assertEquals(HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX, output.get()); in testTopPrivateDomainAndScheme_validPublicDomainAndHttpsScheme_extraSubdomain() [all …]
|
/packages/modules/NeuralNetworks/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 …]
|
/packages/services/Car/cpp/evs/support_library/ |
D | StreamHandler.cpp | 229 bool isSameFormat(const BufferDesc& input, const BufferDesc& output) { in isSameFormat() argument 230 return input.width == output.width && input.height == output.height && in isSameFormat() 231 input.format == output.format && input.usage == output.usage && in isSameFormat() 232 input.stride == output.stride && input.pixelSize == output.pixelSize; in isSameFormat() 264 bool StreamHandler::processFrame(const BufferDesc& input, BufferDesc& output) { in processFrame() argument 266 if (!isSameFormat(input, output) || output.memHandle.getNativeHandle() == nullptr) { in processFrame() 267 output.width = input.width; in processFrame() 268 output.height = input.height; in processFrame() 269 output.format = input.format; in processFrame() 270 output.usage = input.usage; in processFrame() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/include/ |
D | pcap.h | 28 static void WriteHeader(std::ostream& output, uint32_t linktype) { in WriteHeader() argument 37 output.write((char*)&magic_number, 4); in WriteHeader() 38 output.write((char*)&major_version, 2); in WriteHeader() 39 output.write((char*)&minor_version, 2); in WriteHeader() 40 output.write((char*)&reserved1, 4); in WriteHeader() 41 output.write((char*)&reserved2, 4); in WriteHeader() 42 output.write((char*)&snaplen, 4); in WriteHeader() 43 output.write((char*)&linktype, 4); in WriteHeader() 46 static void WriteRecordHeader(std::ostream& output, uint32_t length) { in WriteRecordHeader() argument 55 output.write((char*)&seconds, 4); in WriteRecordHeader() [all …]
|
/packages/modules/NeuralNetworks/common/ |
D | OperationsExecutionUtils.cpp | 293 Shape* output) { in reshapePrepare() argument 321 output->type = input.type; in reshapePrepare() 322 output->dimensions = outDims; in reshapePrepare() 323 output->offset = input.offset; in reshapePrepare() 324 output->scale = input.scale; in reshapePrepare() 329 bool depthToSpacePrepare(const Shape& input, int32_t blockSize, Shape* output) { in depthToSpacePrepare() argument 339 output->type = input.type; in depthToSpacePrepare() 340 output->dimensions = {batches, height * blockSize, width * blockSize, in depthToSpacePrepare() 342 output->offset = input.offset; in depthToSpacePrepare() 343 output->scale = input.scale; in depthToSpacePrepare() [all …]
|
D | QuantUtils.cpp | 12 int n_batch, int n_input, int16_t* output) { in ApplyLayerNorm() argument 48 output[index] = static_cast<int16_t>(val5); in ApplyLayerNorm() 54 int32_t n_col, int32_t* output) { in MatrixScalarMultiplyAccumulate() argument 60 output[i] += row_sum * scalar; in MatrixScalarMultiplyAccumulate() 66 std::unique_ptr<int32_t[]>* output) { in PrecomputeZeroPointTimesWeightWithBias() argument 74 *output = std::make_unique<int32_t[]>(row); in PrecomputeZeroPointTimesWeightWithBias() 76 memset(output->get(), 0, row * sizeof(int32_t)); in PrecomputeZeroPointTimesWeightWithBias() 78 memcpy(output->get(), bias_tensor, row * sizeof(int32_t)); in PrecomputeZeroPointTimesWeightWithBias() 81 MatrixScalarMultiplyAccumulate(weight_tensor, zero_point, row, col, output->get()); in PrecomputeZeroPointTimesWeightWithBias() 86 void ApplySigmoid(const int16_t* input, int32_t n_batch, int32_t n_input, int16_t* output) { in ApplySigmoid() argument [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | CustomAudienceConvertersTest.java | 63 List<DBAdData> output = mConverters.fromJson(serializedString); in testSerializeAndDeserialize_runNormally() local 64 assertEquals(input, output); in testSerializeAndDeserialize_runNormally() 74 List<DBAdData> output = mConverters.fromJson(serializedString); in testSerializeAndDeserialize_runNormallyNoFilters() local 75 assertEquals(input, output); in testSerializeAndDeserialize_runNormallyNoFilters() 91 List<DBAdData> output = noFilterConverter.fromJson(serializedString); in testSerializeAndDeserialize_filtersDisabled() local 92 assertEquals(expected, output); in testSerializeAndDeserialize_filtersDisabled() 108 List<DBAdData> output = mConverters.fromJson(serializedString); in testSerializeAndDeserialize_toJsonFiltersDisabled() local 109 assertEquals(expected, output); in testSerializeAndDeserialize_toJsonFiltersDisabled() 125 List<DBAdData> output = noFilterConverter.fromJson(serializedString); in testSerializeAndDeserialize_fromJsonFiltersDisabled() local 126 assertEquals(expected, output); in testSerializeAndDeserialize_fromJsonFiltersDisabled() [all …]
|
/packages/services/Car/tools/scripts/ |
D | generate-apitest-annotation.py | 39 output = "@ApiTest(apis = {" variable 43 output += "\"" + tokens[0] + "." + tokens[1] + "#" + tokens[3] 46 if '(' in output: 47 output = output[:output.index('(')] variable 49 output += "\"," 51 output = output[:-1] + "})" variable 52 print(output)
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxShellHostTest.java | 102 CommandResult output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() local 104 assertThat(output.getStderr()).isEmpty(); in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 105 assertThat(output.getStatus()).isEqualTo(CommandStatus.SUCCESS); in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 109 output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 111 assertThat(output.getStderr()).isEmpty(); in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 112 assertThat(output.getStatus()).isEqualTo(CommandStatus.SUCCESS); in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 119 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForNonDebuggableApp() local 121 assertThat(output.getStatus()).isEqualTo(CommandStatus.FAILED); in testStartSdkSandboxFailsForNonDebuggableApp() 130 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForIncorrectUser() local 133 assertThat(output.getStatus()).isEqualTo(CommandStatus.FAILED); in testStartSdkSandboxFailsForIncorrectUser() [all …]
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | Struct.java | 343 final byte[] output = getLast8Bytes(bigIntegerBytes); in bigIntegerToU64Bytes() 347 byte tmp = output[i]; in bigIntegerToU64Bytes() 348 output[i] = output[7 - i]; in bigIntegerToU64Bytes() 349 output[7 - i] = tmp; in bigIntegerToU64Bytes() 352 return output; in bigIntegerToU64Bytes() 457 private static void putFieldValue(final ByteBuffer output, final FieldInfo fieldInfo, in putFieldValue() argument 461 output.put((byte) (((short) value) & 0xFF)); in putFieldValue() 464 output.putShort((short) (((int) value) & 0xFFFF)); in putFieldValue() 467 output.putInt((int) (((long) value) & 0xFFFFFFFFL)); in putFieldValue() 470 output.putLong((long) value); in putFieldValue() [all …]
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/storage/ |
D | CacheQuotaServiceImplTest.java | 95 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testOneApp() local 97 assertThat(output).hasSize(1); in testOneApp() 98 assertThat(output.get(0).getQuota()).isEqualTo(1500L); in testOneApp() 107 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testTwoAppsOneVolume() local 110 assertThat(output).hasSize(2); in testTwoAppsOneVolume() 111 assertThat(output.get(0).getQuota()).isEqualTo(883); in testTwoAppsOneVolume() 112 assertThat(output.get(1).getQuota()).isEqualTo(1500 - 883); in testTwoAppsOneVolume() 122 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testTwoAppsTwoVolumes() local 124 assertThat(output).hasSize(2); in testTwoAppsTwoVolumes() 125 assertThat(output.get(0).getQuota()).isEqualTo(1500); in testTwoAppsTwoVolumes() [all …]
|
/packages/modules/NeuralNetworks/common/include/ |
D | CpuOperationUtils.h | 61 inline void convertFloat16ToFloat32(const _Float16* input, std::vector<float>* output) { in convertFloat16ToFloat32() argument 63 CHECK(output != nullptr); in convertFloat16ToFloat32() 64 for (size_t i = 0; i < output->size(); ++i) { in convertFloat16ToFloat32() 65 (*output)[i] = static_cast<float>(input[i]); in convertFloat16ToFloat32() 69 inline void convertFloat32ToFloat16(const std::vector<float>& input, _Float16* output) { in convertFloat32ToFloat16() argument 70 CHECK(output != nullptr); in convertFloat32ToFloat16() 72 output[i] = input[i]; in convertFloat32ToFloat16() 78 inline void convertInt8ToUInt8(const int8_t* input, std::vector<uint8_t>* output) { in convertInt8ToUInt8() argument 80 CHECK(output != nullptr); in convertInt8ToUInt8() 81 for (size_t i = 0; i < output->size(); ++i) { in convertInt8ToUInt8() [all …]
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 102 static void parseFileName(char* name, FileName* output) { in parseFileName() argument 118 output->mTimestampSec = result[0]; in parseFileName() 119 output->mUid = result[1]; in parseFileName() 120 output->mConfigId = result[2]; in parseFileName() 122 output->mIsHistory = (substr != nullptr && strcmp("history", substr) == 0); in parseFileName() 519 FileName output; in sendBroadcast() local 520 parseFileName(name, &output); in sendBroadcast() 521 if (output.mTimestampSec == -1 || output.mIsHistory) continue; in sendBroadcast() 522 sendBroadcast(ConfigKey((int)output.mUid, output.mConfigId)); in sendBroadcast() 545 FileName output; in hasConfigMetricsReport() local [all …]
|
/packages/modules/adb/ |
D | compression_utils.h | 57 virtual DecodeResult Decode(std::span<char>* output) = 0; 79 virtual EncodeResult Encode(Block* output) = 0; 93 DecodeResult Decode(std::span<char>* output) final { in Decode() 102 *output = std::span(output_buffer_.data(), static_cast<char*>(p)); in Decode() 113 EncodeResult Encode(Block* output) final { in Encode() 114 output->clear(); in Encode() 115 output->resize(output_block_size_); in Encode() 117 size_t available_out = output->size(); in Encode() 118 void* p = output->data(); in Encode() 127 output->resize(output->size() - available_out); in Encode() [all …]
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/ |
D | output.py | 112 output = template.format(**values) 113 output = output.replace(" 0.00%", " -") 114 output = output.replace(" 0.00", " -") 115 output = output.replace(" nan", " n/a") 119 for line in output.splitlines(): 131 output = dict(times=times, self_times=self_times, execution_counts=execution_counts, 133 output = json.dumps(output, indent=2, sort_keys=True) 135 output = output.replace("NaN", "null") 136 print(output)
|
/packages/modules/adb/fastdeploy/deploypatchgenerator/ |
D | deploy_patch_generator.cpp | 103 static void WritePatchEntry(const PatchEntry& patchEntry, borrowed_fd input, borrowed_fd output, in WritePatchEntry() argument 110 PatchUtils::WriteLong(patchEntry.deltaFromDeviceDataStart, output); in WritePatchEntry() 112 PatchUtils::Pipe(input, output, patchEntry.deltaFromDeviceDataStart); in WritePatchEntry() 117 PatchUtils::WriteLong(patchEntry.deviceDataOffset, output); in WritePatchEntry() 118 PatchUtils::WriteLong(patchEntry.deviceDataLength, output); in WritePatchEntry() 125 const std::string& deviceApkPath, borrowed_fd output) { in GeneratePatch() argument 131 PatchUtils::WriteSignature(output); in GeneratePatch() 132 PatchUtils::WriteLong(newApkSize, output); in GeneratePatch() 133 PatchUtils::WriteString(deviceApkPath, output); in GeneratePatch() 153 WritePatchEntry(patchEntry, input, output, &realSizeOut); in GeneratePatch() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/updateprocessors/ |
D | AppendTest.java | 92 UpdateOutput output = mAppend.processUpdates(updatesJson, Collections.emptyMap()); in testAppendSingle() local 94 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testAppendSingle() 95 assertTrue(output.getToRemove().isEmpty()); in testAppendSingle() 98 assertSignalsBuilderUnorderedListEquals(expected, output.getToAdd()); in testAppendSingle() 114 UpdateOutput output = mAppend.processUpdates(updatesJson, Collections.emptyMap()); in testAppendMultipleValues() local 116 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testAppendMultipleValues() 117 assertTrue(output.getToRemove().isEmpty()); in testAppendMultipleValues() 122 assertSignalsBuilderUnorderedListEquals(expected, output.getToAdd()); in testAppendMultipleValues() 146 UpdateOutput output = mAppend.processUpdates(updatesJson, Collections.emptyMap()); in testAppendMultipleKeys() local 148 assertEquals(new HashSet<>(Arrays.asList(BB_KEY_1, BB_KEY_2)), output.getKeysTouched()); in testAppendMultipleKeys() [all …]
|
D | PutTest.java | 80 UpdateOutput output = mPut.processUpdates(updatesJson, Collections.emptyMap()); in testPutSingle() local 82 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testPutSingle() 83 assertTrue(output.getToRemove().isEmpty()); in testPutSingle() 86 assertSignalsBuilderUnorderedListEquals(expected, output.getToAdd()); in testPutSingle() 95 UpdateOutput output = mPut.processUpdates(updatesJson, Collections.emptyMap()); in testPutMultipleKeys() local 97 assertEquals(new HashSet<>(Arrays.asList(BB_KEY_1, BB_KEY_2)), output.getKeysTouched()); in testPutMultipleKeys() 98 assertTrue(output.getToRemove().isEmpty()); in testPutMultipleKeys() 103 assertSignalsBuilderUnorderedListEquals(expected, output.getToAdd()); in testPutMultipleKeys() 116 UpdateOutput output = mPut.processUpdates(updatesJson, existingSignals); in testOverwriteExisting() local 118 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testOverwriteExisting() [all …]
|
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/ |
D | StatsGenerator.java | 34 PrintStream output = new PrintStream(new FileOutputStream(outputFile)); in process() local 36 output.println("package " + packageName + ";"); in process() 37 output.println(); in process() 38 output.println("import android.util.StatsEvent;"); in process() 39 output.println(); in process() 43 output.println("public class " + className + " { "); in process() 44 output.println(); in process() 63 e.writeTo("", output); in process() 64 output.println(); in process() 67 printGroup(out.findGroup(e.type), output, convertToSymbolGroupPrefix(e.type)); in process() local [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
D | StreamUtils.java | 31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { in byteToIntArray() argument 33 if (output.length * 4 < length) { in byteToIntArray() 37 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray() 38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) in byteToIntArray() 42 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray() 43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) in byteToIntArray() 51 int[] output = new int[input.length / 4]; in byteToIntArray() local 52 byteToIntArray(output, input, endianness); in byteToIntArray() 53 return output; in byteToIntArray()
|