Home
last modified time | relevance | path

Searched refs:numElements (Results 1 – 22 of 22) sorted by relevance

/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c79 uint32_t numElements; member
90 event->numElements = 0; in AStatsEvent_obtain()
110 if (event->numElements != 1) { in AStatsEvent_setAtomId()
206 event->numElements++; in start_field()
263 static bool writeArrayMetadata(AStatsEvent* event, size_t numElements, uint8_t elementTypeId) { in writeArrayMetadata() argument
264 if (numElements > MAX_BYTE_VALUE) { in writeArrayMetadata()
270 append_byte(event, numElements); in writeArrayMetadata()
275 void AStatsEvent_writeInt32Array(AStatsEvent* event, const int32_t* elements, size_t numElements) { in AStatsEvent_writeInt32Array() argument
276 if (!writeArrayMetadata(event, numElements, INT32_TYPE)) { in AStatsEvent_writeInt32Array()
280 for (size_t i = 0; i < numElements; i++) { in AStatsEvent_writeInt32Array()
[all …]
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp228 const uint8_t numElements = readNextValue<uint8_t>(); in parseArray() local
232 if (numElements > INT8_MAX) mValid = false; in parseArray()
234 for (pos[1] = 1; pos[1] <= numElements; pos[1]++) { in parseArray()
235 last[1] = (pos[1] == numElements); in parseArray()
262 parseAnnotations(numAnnotations, numElements); in parseArray()
273 void LogEvent::parseIsUidAnnotation(uint8_t annotationType, std::optional<uint8_t> numElements) { in parseIsUidAnnotation() argument
275 if (!numElements) { in parseIsUidAnnotation()
276 numElements = 1; in parseIsUidAnnotation()
280 if (numElements == 0 && annotationType == BOOL_TYPE) { in parseIsUidAnnotation()
286 if (mValues.empty() || numElements > mValues.size() || !checkPreviousValueType(INT) || in parseIsUidAnnotation()
[all …]
DLogEvent.h100 uint8_t numElements = 0; member
285 void parseAnnotations(uint8_t numAnnotations, std::optional<uint8_t> numElements = std::nullopt,
287 void parseIsUidAnnotation(uint8_t annotationType, std::optional<uint8_t> numElements);
289 void parsePrimaryFieldAnnotation(uint8_t annotationType, std::optional<uint8_t> numElements,
293 void parseExclusiveStateAnnotation(uint8_t annotationType, std::optional<uint8_t> numElements);
295 std::optional<uint8_t> numElements);
296 void parseStateNestedAnnotation(uint8_t annotationType, std::optional<uint8_t> numElements);
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp91 void checkArrayMetadata(uint8_t** buffer, uint8_t numElements, uint8_t elementTypeId, in checkArrayMetadata() argument
94 EXPECT_EQ(readNext<uint8_t>(buffer), numElements); in checkArrayMetadata()
99 void checkScalarArray(uint8_t** buffer, uint8_t numElements, uint8_t elementTypeId, in checkScalarArray() argument
101 checkArrayMetadata(buffer, numElements, elementTypeId, numAnnotations); in checkScalarArray()
103 for (int i = 0; i < numElements; i++) { in checkScalarArray()
115 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata() argument
122 checkScalar(buffer, static_cast<uint8_t>(numElements + 2)); in checkMetadata()
283 uint8_t numElements = 3; in TEST() local
291 for (int i = 0; i < numElements; i++) { in TEST()
298 AStatsEvent_writeInt32Array(event, int32Array, numElements); in TEST()
[all …]
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java601 final byte numElements = (byte)elements.length; in writeBooleanArray()
603 if (writeArrayInfo(numElements, TYPE_BOOLEAN)) { in writeBooleanArray()
605 for (int i = 0; i < numElements; i++) { in writeBooleanArray()
625 final byte numElements = (byte)elements.length; in writeIntArray()
627 if (writeArrayInfo(numElements, TYPE_INT)) { in writeIntArray()
629 for (int i = 0; i < numElements; i++) { in writeIntArray()
649 final byte numElements = (byte)elements.length; in writeLongArray()
651 if (writeArrayInfo(numElements, TYPE_LONG)) { in writeLongArray()
653 for (int i = 0; i < numElements; i++) { in writeLongArray()
673 final byte numElements = (byte)elements.length; in writeFloatArray()
[all …]
/packages/modules/NeuralNetworks/common/cpu_operations/
DCast.cpp33 void copyCast(const FromT* in, ToT* out, int numElements) { in copyCast() argument
34 std::transform(in, in + numElements, out, [](FromT a) -> ToT { in copyCast()
44 bool copyToTensor(const FromT* inputData, int numElements, uint8_t* outputData, in copyToTensor() argument
49 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
75 int numElements = getNumberOfElements(inputShape); in eval() local
80 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
DActivation.cpp58 int numElements = getNumberOfElements(inputShape); in reluFloat() local
59 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
94 int numElements = getNumberOfElements(inputShape); in tanhFloat16() local
95 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat16()
104 int numElements = getNumberOfElements(inputShape); in tanhFloat32() local
105 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat32()
115 int numElements = getNumberOfElements(inputShape); in logisticFloat() local
116 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in logisticFloat()
129 int numElements = getNumberOfElements(inputShape); in reluXQuant8() local
136 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluXQuant8()
[all …]
DDequantize.cpp32 const int numElements = getNumberOfElements(inputShape); in compute() local
35 for (int i = 0; i < numElements; ++i) { in compute()
55 const int numElements = getNumberOfElements(inputShape); in computePerChannel() local
58 for (int i = 0; i < numElements; ++i) { in computePerChannel()
DFill.cpp32 const int numElements = getNumberOfElements(context->getOutputShape(kOutputTensor)); in executeTyped() local
34 for (int i = 0; i < numElements; ++i) { in executeTyped()
DElu.cpp39 int numElements = getNumberOfElements(inputShape); in eluFloat() local
40 for (int i = 0; i < numElements; ++i) { in eluFloat()
/packages/modules/StatsD/lib/libstatssocket/include/
Dstats_event.h153 void AStatsEvent_writeInt32Array(AStatsEvent* event, const int32_t* elements, size_t numElements);
161 void AStatsEvent_writeInt64Array(AStatsEvent* event, const int64_t* elements, size_t numElements);
169 void AStatsEvent_writeFloatArray(AStatsEvent* event, const float* elements, size_t numElements);
177 void AStatsEvent_writeBoolArray(AStatsEvent* event, const bool* elements, size_t numElements);
188 size_t numElements);
/packages/services/Car/tools/emulator/
Ddiagnostic_builder.py27 def __init__(self, numElements): argument
28 self.count = numElements
29 if 0 == (numElements % 8):
30 self.data = bytearray(numElements/8)
33 self.data = bytearray(1+numElements/8)
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp402 int32_t numElements = 128; in TEST_P() local
406 for (int i = 0; i < numElements; i++) { in TEST_P()
523 size_t numElements = 2; in TEST_P() local
531 for (int i = 0; i < numElements; i++) { in TEST_P()
537 AStatsEvent_writeInt32Array(event, int32Array, numElements); in TEST_P()
538 AStatsEvent_writeInt64Array(event, int64Array, numElements); in TEST_P()
539 AStatsEvent_writeFloatArray(event, floatArray, numElements); in TEST_P()
540 AStatsEvent_writeBoolArray(event, boolArray, numElements); in TEST_P()
541 AStatsEvent_writeStringArray(event, cStringArray, numElements); in TEST_P()
661 int32_t numElements = 128; in TEST_P() local
[all …]
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/
DFullyConnected.cpp29 RandomVariable numElements = 1; in fullyConnectedConstructor() local
32 numElements = numElements * op->inputs[0]->dimensions[i]; in fullyConnectedConstructor()
42 op->outputs[0]->dimensions = {numElements.exactDiv(op->inputs[1]->dimensions[1]), in fullyConnectedConstructor()
DSelection.cpp40 uint32_t numElements = op->inputs[0]->getNumberOfElements(); in embeddingLookupFinalizer() local
41 for (uint32_t i = 0; i < numElements; i++) { in embeddingLookupFinalizer()
142 uint32_t numElements = op->inputs[2]->getNumberOfElements(); in gatherFinalizer() local
143 for (uint32_t i = 0; i < numElements; i++) { in gatherFinalizer()
/packages/modules/StatsD/statsd/benchmark/
Dlog_event_benchmark.cpp32 static size_t createStatsEvent(uint8_t* msg, int numElements = 1) { in createStatsEvent() argument
35 for (int i = 0; i < numElements; i++) { in createStatsEvent()
/packages/modules/NeuralNetworks/tools/test_generator/
Dtest_generator.py340 numElements = reduce(lambda x,y: x*y, self.type.dimensions, 1)
341 self.value = [0 for x in range(numElements)]
/packages/apps/TV/libs/m2/
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...