/frameworks/base/core/java/android/gesture/ |
H A D | InstanceLearner.java | 44 ArrayList<Prediction> classify(int sequenceType, int orientationType, float[] vector) { argument 51 if (sample.vector.length != vector.length) { 56 distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); 58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector);
|
H A D | Learner.java | 83 abstract ArrayList<Prediction> classify(int sequenceType, int orientationType, float[] vector); argument
|
H A D | Instance.java | 35 // the feature vector 36 final float[] vector; field in class:Instance 46 vector = sample; 51 float[] sample = vector;
|
/frameworks/ml/nn/common/operations/internal/ |
H A D | tensor_utils_test.cc | 30 std::vector<Matcher<float>> ArrayFloatNear(const std::vector<float>& values, 32 std::vector<Matcher<float>> matchers; 47 std::vector<float> output(kVectorSize); 61 static float vector[kCol * kBatch] = {1.0, -1.0, 1.0, -1.0, // local 63 std::vector<float> output(kRow * kBatch); 65 MatrixBatchVectorMultiplyAccumulate(matrix, kRow, kCol, vector, kBatch, 77 std::vector<float> output(kVectorSize); 90 std::vector<float> output(kVectorSize); 103 std::vector<floa [all...] |
/frameworks/ml/nn/common/operations/internal/optimized/ |
H A D | neon_tensor_utils.cc | 32 int m_cols, const float* vector, 41 // The arrays used to cache the vector. 48 const float* vector_in_batch = vector + b * m_cols; 121 void NeonVectorBatchVectorCwiseProductAccumulate(const float* vector, argument 131 // The arrays used to cache the vector. 136 vector_cache_float32x4[v >> 2] = vld1q_f32(vector + v); 154 result_ptr[v] += vector[v] * batch_vector_ptr[v]; 163 void NeonSub1Vector(const float* vector, int v_size, float* result) { argument 174 float32x4_t v_f32x4 = vld1q_f32(vector + v); 180 result[v] = 1.0f - vector[ 31 NeonMatrixBatchVectorMultiplyAccumulate(const float* matrix, int m_rows, int m_cols, const float* vector, int n_batch, float* result, int result_stride) argument 184 NeonClipVector(const float* vector, int v_size, float abs_limit, float* result) argument [all...] |
H A D | neon_tensor_utils.h | 29 int m_cols, const float* vector, 33 vector, n_batch, result, result_stride); 48 void VectorBatchVectorCwiseProductAccumulate(const float* vector, int v_size, argument 51 NEON_OR_PORTABLE(VectorBatchVectorCwiseProductAccumulate, vector, v_size, 68 void VectorBatchVectorAssign(const float* vector, int v_size, int n_batch, argument 70 PortableVectorBatchVectorAssign(vector, v_size, n_batch, batch_vector); 73 void ApplySigmoidToVector(const float* vector, int v_size, float* result) { argument 74 PortableApplySigmoidToVector(vector, v_size, result); 77 void ApplyActivationToVector(const float* vector, int v_size, argument 79 PortableApplyActivationToVector(vector, v_siz 28 MatrixBatchVectorMultiplyAccumulate(const float* matrix, int m_rows, int m_cols, const float* vector, int n_batch, float* result, int result_stride) argument 82 CopyVector(const float* vector, int v_size, float* result) argument 86 Sub1Vector(const float* vector, int v_size, float* result) argument 90 ZeroVector(float* vector, int v_size) argument 96 ClipVector(const float* vector, int v_size, float abs_limit, float* result) argument 102 VectorShiftLeft(float* vector, int v_size, float shift_value) argument [all...] |
/frameworks/ml/nn/common/operations/internal/reference/ |
H A D | portable_tensor_utils.h | 29 // Multiply a matrix by a batch vector, and store results in a batch-size 30 // vector. 33 const float* vector, 58 // Cwise product and accumulate of a vector and a batch-vector. Since it's a MAC 61 void PortableVectorBatchVectorCwiseProductAccumulate(const float* vector, 67 // Batch vector initialization with another vector. 68 void PortableVectorBatchVectorAssign(const float* vector, int v_size, 71 // Apply sigmoid to elements of a vector 109 MatrixBatchVectorMultiplyAccumulate(const float* matrix, int m_rows, int m_cols, const float* vector, int n_batch, float* result, int result_stride) argument 128 VectorBatchVectorCwiseProductAccumulate(const float* vector, int v_size, const float* batch_vector, int n_batch, float* result) argument 148 VectorBatchVectorAssign(const float* vector, int v_size, int n_batch, float* batch_vector) argument 153 ApplySigmoidToVector(const float* vector, int v_size, float* result) argument 157 ApplyActivationToVector(const float* vector, int v_size, ActivationFn activation, float* result) argument 162 CopyVector(const float* vector, int v_size, float* result) argument 166 Sub1Vector(const float* vector, int v_size, float* result) argument 170 ZeroVector(float* vector, int v_size) argument 174 ClipVector(const float* vector, int v_size, float abs_limit, float* result) argument 179 VectorShiftLeft(float* vector, int v_size, float shift_value) argument [all...] |
H A D | portable_tensor_utils.cc | 32 const float* vector, 39 const float* vector_in_batch = vector + b * m_cols; 89 void PortableVectorBatchVectorCwiseProductAccumulate(const float* vector, argument 96 *result++ += vector[v] * *batch_vector++; 101 void PortableVectorBatchVectorAssign(const float* vector, int v_size, argument 104 memcpy(batch_vector + b * v_size, vector, v_size * sizeof(float)); 108 void PortableApplySigmoidToVector(const float* vector, int v_size, argument 112 *result++ = (sigmoid_func)(*vector++); 116 void PortableApplyActivationToVector(const float* vector, int v_size, argument 121 *result++ = (activation_func)(*vector 30 PortableMatrixBatchVectorMultiplyAccumulate(const float* matrix, int m_rows, int m_cols, const float* vector, int n_batch, float* result, int result_stride) argument 125 PortableCopyVector(const float* vector, int v_size, float* result) argument 129 PortableSub1Vector(const float* vector, int v_size, float* result) argument 135 PortableZeroVector(float* vector, int v_size) argument 139 PortableClipVector(const float* vector, int v_size, float abs_limit, float* result) argument 146 PortableVectorShiftLeft(float* vector, int v_size, float shift_value) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Glop.h | 134 float vector[4]; member in struct:android::uirenderer::Glop::Fill::Filter::Matrix
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaCrypto.cpp | 144 Vector<uint8_t> vector; local 146 vector.insertAt((size_t)0, length); 147 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); 148 return vector;
|
H A D | android_media_MediaDrm.cpp | 432 Vector<uint8_t> vector; local 434 vector.insertAt((size_t)0, length); 435 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); 436 return vector; 439 static jbyteArray VectorToJByteArray(JNIEnv *env, Vector<uint8_t> const &vector) { argument 440 size_t length = vector.size(); 443 env->SetByteArrayRegion(result, 0, length, (jbyte *)vector.array());
|
H A D | android_media_MediaPlayer.cpp | 1296 Vector<uint8_t> vector; local 1298 vector.insertAt((size_t)0, length); 1299 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); 1300 return vector;
|
/frameworks/av/drm/libmediadrm/ |
H A D | CryptoHal.cpp | 79 static hidl_vec<uint8_t> toHidlVec(const Vector<uint8_t> &vector) { argument 81 vec.setToExternal(const_cast<uint8_t *>(vector.array()), vector.size()); 314 std::vector<SubSample> stdSubSamples;
|
H A D | DrmHal.cpp | 73 Vector<uint8_t> vector; local 74 vector.appendArray(vec.data(), vec.size()); 75 return *const_cast<const Vector<uint8_t> *>(&vector); 78 static hidl_vec<uint8_t> toHidlVec(const Vector<uint8_t> &vector) { argument 80 vec.setToExternal(const_cast<uint8_t *>(vector.array()), vector.size()); 95 std::vector<KeyValue> stdKeyedVector;
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | transform.c | 434 * description: Calculate max possible scale factor for input vector of shorts 438 static Word16 getScalefactorOfShortVectorStride(const Word16 *vector, /*!< Pointer to input vector */ argument 439 Word16 len, /*!< Length of input vector */ 440 Word16 stride) /*!< Stride of input vector */ 447 absVal = abs_s(vector[i*stride]); 458 * description: Calculate transform filter for input vector of shorts
|
/frameworks/native/include/android/ |
H A D | sensor.h | 272 ASensorVector vector; member in union:ASensorEvent::__anon1569::__anon1570
|
/frameworks/native/include_sensor/android/ |
H A D | sensor.h | 272 ASensorVector vector; member in union:ASensorEvent::__anon1672::__anon1673
|
/frameworks/native/libs/vr/libpdx/ |
H A D | service.cpp | 76 Status<size_t> Message::ReadVector(const struct iovec* vector, argument 80 return svc->endpoint()->ReadMessageData(this, vector, vector_length); 86 Status<void> Message::ReadVectorAll(const struct iovec* vector, argument 91 svc->endpoint()->ReadMessageData(this, vector, vector_length); 96 size_to_read += vector[i].iov_len; 108 const struct iovec vector = {buffer, length}; local 109 return svc->endpoint()->ReadMessageData(this, &vector, 1); 115 Status<size_t> Message::WriteVector(const struct iovec* vector, argument 119 return svc->endpoint()->WriteMessageData(this, vector, vector_length); 125 Status<void> Message::WriteVectorAll(const struct iovec* vector, argument 147 const struct iovec vector = {const_cast<void*>(buffer), length}; local [all...] |
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | ipc_helper.cpp | 394 size_t CountVectorSize(const iovec* vector, size_t count) { argument 396 vector, vector + count, size_t{0}, 431 std::vector<size_t> separators{0}; // The path is absolute, so '/' is at #0.
|
H A D | service_endpoint.cpp | 96 Status<size_t> WriteData(const iovec* vector, size_t vector_length) { argument 99 const auto* data = reinterpret_cast<const uint8_t*>(vector[i].iov_base); 100 response_data.insert(response_data.end(), data, data + vector[i].iov_len); 101 size += vector[i].iov_len; 106 Status<size_t> ReadData(const iovec* vector, size_t vector_length) { argument 110 size_t size_to_copy = std::min(size_remaining, vector[i].iov_len); 111 memcpy(vector[i].iov_base, request_data.data() + request_data_read_pos, 122 std::vector<LocalHandle> sockets_to_close; 123 std::vector<uint8_t> request_data; 125 std::vector<uint8_ 687 ReadMessageData(Message* message, const iovec* vector, size_t vector_length) argument 693 WriteMessageData(Message* message, const iovec* vector, size_t vector_length) argument [all...] |
H A D | remote_method_tests.cpp | 160 PDX_REMOTE_METHOD(SumVector, kOpWriteBuffer, int(const std::vector<int>&)); 166 std::string(const std::vector<TestType>&)); 174 std::vector<LocalHandle>( 175 const std::vector<std::pair<std::string, int>>&)); 216 int SumVector(const std::vector<int>& buffer) { 249 std::string SendVector(const std::vector<TestType>& v) { 296 std::vector<LocalHandle> OpenFiles( 297 const std::vector<std::pair<std::string, int>>& file_specs) { 298 Status<std::vector<LocalHandle>> status = 448 int OnSumVector(Message&, const std::vector<in argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayer.cpp | 81 static void readVector(const Parcel& reply, Vector<uint8_t>& vector) { argument 83 vector.insertAt((size_t)0, size); 84 reply.read(vector.editArray(), size); 87 static void writeVector(Parcel& data, Vector<uint8_t> const& vector) { argument 88 data.writeUint32(vector.size()); 89 data.write(vector.array(), vector.size());
|
/frameworks/base/tools/aapt/ |
H A D | Resource.cpp | 3183 Vector<NamespaceAttributePair> vector; local 3184 vector.add(NamespaceAttributePair(ns, attr)); 3185 dest->add(tagStr, vector);
|