Searched defs:vector (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/gesture/
H A DInstanceLearner.java44 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 DLearner.java83 abstract ArrayList<Prediction> classify(int sequenceType, int orientationType, float[] vector); argument
H A DInstance.java35 // the feature vector
36 final float[] vector; field in class:Instance
46 vector = sample;
51 float[] sample = vector;
/frameworks/base/libs/hwui/
H A DGlop.h133 float vector[4]; member in struct:android::uirenderer::Glop::Fill::Filter::Matrix
/frameworks/base/media/jni/
H A Dandroid_media_MediaCrypto.cpp144 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 Dandroid_media_MediaDrm.cpp432 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 Dandroid_media_MediaPlayer.cpp1296 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/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp26 using std::vector;
70 float MulticlassPA::Score(const vector<float>& inputs,
71 const vector<float>& parameters) const {
80 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs, argument
81 const vector<float>& parameters) const {
91 float MulticlassPA::L2NormSquare(const vector<float>& inputs) const {
100 const vector<pair<int, float> >& inputs) const {
108 float MulticlassPA::TrainOneExample(const vector<float>& inputs, int target) {
141 const vector<pair<int, float> >& inputs, int target) {
173 float MulticlassPA::Train(const vector<pai argument
99 SparseL2NormSquare( const vector<pair<int, float> >& inputs) const argument
140 SparseTrainOneExample( const vector<pair<int, float> >& inputs, int target) argument
185 SparseTrain( const vector<pair<vector<pair<int, float> >, int> >& data, int num_iterations) argument
212 SparseGetClass(const vector<pair<int, float> >& inputs) argument
226 Test(const vector<pair<vector<float>, int> >& data) argument
238 SparseTest( const vector<pair<vector<pair<int, float> >, int> >& data) argument
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dsparse_weight_vector.h18 // Maintains the sparse vector as a list of (name, value) pairs alongwith
60 // true if the checks succeed and false otherwise. A vector is deemed invalid
115 // Load another weight vectors. Will overwrite the current vector.
160 // Convert this vector to a string, simply for debugging.
192 const SparseWeightVector<Key, Hash> &vector) {
193 typename SparseWeightVector<Key, Hash>::Wmap w_map = vector.GetMap();
191 operator <<(std::ostream &stream, const SparseWeightVector<Key, Hash> &vector) argument
/frameworks/av/drm/libmediadrm/
H A DCryptoHal.cpp79 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 DDrmHal.cpp72 Vector<uint8_t> vector; local
73 vector.appendArray(vec.data(), vec.size());
74 return *const_cast<const Vector<uint8_t> *>(&vector);
77 static hidl_vec<uint8_t> toHidlVec(const Vector<uint8_t> &vector) { argument
79 vec.setToExternal(const_cast<uint8_t *>(vector.array()), vector.size());
94 std::vector<KeyValue> stdKeyedVector;
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dtransform.c434 * 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/libs/vr/libpdx_uds/
H A Dipc_helper.cpp385 size_t CountVectorSize(const iovec* vector, size_t count) { argument
387 vector, vector + count, size_t{0},
422 std::vector<size_t> separators{0}; // The path is absolute, so '/' is at #0.
H A Dservice_endpoint.cpp93 Status<size_t> WriteData(const iovec* vector, size_t vector_length) { argument
96 const auto* data = reinterpret_cast<const uint8_t*>(vector[i].iov_base);
97 response_data.insert(response_data.end(), data, data + vector[i].iov_len);
98 size += vector[i].iov_len;
103 Status<size_t> ReadData(const iovec* vector, size_t vector_length) { argument
107 size_t size_to_copy = std::min(size_remaining, vector[i].iov_len);
108 memcpy(vector[i].iov_base, request_data.data() + request_data_read_pos,
119 std::vector<LocalHandle> sockets_to_close;
120 std::vector<uint8_t> request_data;
122 std::vector<uint8_
674 ReadMessageData(Message* message, const iovec* vector, size_t vector_length) argument
680 WriteMessageData(Message* message, const iovec* vector, size_t vector_length) argument
[all...]
H A Dremote_method_tests.cpp160 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/native/include/android/
H A Dsensor.h271 ASensorVector vector; member in union:ASensorEvent::__anon1531::__anon1532
/frameworks/native/libs/vr/libpdx/
H A Dservice.cpp79 Status<size_t> Message::ReadVector(const struct iovec* vector, argument
83 return svc->endpoint()->ReadMessageData(this, vector, vector_length);
89 Status<void> Message::ReadVectorAll(const struct iovec* vector, argument
94 svc->endpoint()->ReadMessageData(this, vector, vector_length);
99 size_to_read += vector[i].iov_len;
111 const struct iovec vector = {buffer, length}; local
112 return svc->endpoint()->ReadMessageData(this, &vector, 1);
118 Status<size_t> Message::WriteVector(const struct iovec* vector, argument
122 return svc->endpoint()->WriteMessageData(this, vector, vector_length);
128 Status<void> Message::WriteVectorAll(const struct iovec* vector, argument
150 const struct iovec vector = {const_cast<void*>(buffer), length}; local
[all...]
/frameworks/av/media/libmedia/
H A DIMediaPlayer.cpp81 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 DResource.cpp3183 Vector<NamespaceAttributePair> vector; local
3184 vector.add(NamespaceAttributePair(ns, attr));
3185 dest->add(tagStr, vector);

Completed in 380 milliseconds