Searched refs:vector (Results 1 - 25 of 107) sorted by path

12345

/frameworks/base/cmds/keystore/
H A Dkeystore.cpp162 uint8_t vector[AES_BLOCK_SIZE]; member in struct:blob
199 if (!entropy->generate_random_data(mBlob.vector, AES_BLOCK_SIZE)) {
218 uint8_t vector[AES_BLOCK_SIZE]; local
219 memcpy(vector, mBlob.vector, AES_BLOCK_SIZE);
221 aes_key, vector, AES_ENCRYPT);
265 mBlob.vector, AES_DECRYPT);
/frameworks/base/core/java/android/gesture/
H A DGestureStore.java139 return mClassifier.classify(mSequenceType, mOrientationStyle, instance.vector);
H A DGestureUtils.java271 float[] vector = new float[vectorLength];
279 vector[index] = lstPointX;
281 vector[index] = lstPointY;
301 vector[index] = nx;
303 vector[index] = ny;
318 vector[i] = lstPointX;
319 vector[i + 1] = lstPointY;
321 return vector;
H A DInstance.java35 // the feature vector
36 final float[] vector; field in class:Instance
46 vector = sample;
51 float[] sample = vector;
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
/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp138 jint accuracy = event.vector.status;
139 env->SetFloatArrayRegion(values, 0, 3, event.vector.v);
/frameworks/base/include/utils/
H A DSortedVector.h53 * empty the vector
59 * vector stats
62 //! returns number of items in the vector
64 //! returns wether or not the vector is empty
97 //! stack-usage of the vector. returns the top of the stack (last element)
99 //! same as operator [], but allows to access the vector backward (from the end) with a negative index
114 //! merges a vector into this one
115 ssize_t merge(const Vector<TYPE>& vector);
116 ssize_t merge(const SortedVector<TYPE>& vector);
222 ssize_t SortedVector<TYPE>::merge(const Vector<TYPE>& vector) {
[all...]
H A DVector.h36 * The main templated vector class ensuring type safety
64 * empty the vector
70 * vector stats
73 //! returns number of items in the vector
75 //! returns wether or not the vector is empty
99 //! stack-usage of the vector. returns the top of the stack (last element)
101 //! same as operator [], but allows to access the vector backward (from the end) with a negative index
114 * append/insert another vector
117 //! insert another vector at a given index
118 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_
305 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
310 appendVector(const Vector<TYPE>& vector) argument
[all...]
H A DVectorImpl.h32 * Implementation of the guts of the vector<> class
62 /*! vector stats */
68 /*! append/insert another vector or array */
69 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
70 ssize_t appendVector(const VectorImpl& vector);
131 void * mStorage; // base address of the vector
158 //! merges a vector into this one
159 ssize_t merge(const VectorImpl& vector);
160 ssize_t merge(const SortedVectorImpl& vector);
187 ssize_t insertVectorAt(const VectorImpl& vector, size_
[all...]
/frameworks/base/libs/hwui/
H A DSkiaColorFilter.cpp37 SkiaColorMatrixFilter::SkiaColorMatrixFilter(SkColorFilter *skFilter, float* matrix, float* vector): argument
38 SkiaColorFilter(skFilter, kColorMatrix, true), mMatrix(matrix), mVector(vector) {
39 // Skia uses the range [0..255] for the addition vector, but we need
40 // the [0..1] range to apply the vector in GLSL
H A DSkiaColorFilter.h81 * A color filter that multiplies the source color with a matrix and adds a vector.
84 ANDROID_API SkiaColorMatrixFilter(SkColorFilter *skFilter, float* matrix, float* vector);
/frameworks/base/libs/hwui/utils/
H A DSortedList.h85 ssize_t merge(const Vector<TYPE>& vector);
86 ssize_t merge(const SortedList<TYPE>& vector);
185 inline ssize_t SortedList<TYPE>::merge(const Vector<TYPE>& vector) {
186 return SortedListImpl::merge(reinterpret_cast<const VectorImpl&> (vector));
190 inline ssize_t SortedList<TYPE>::merge(const SortedList<TYPE>& vector) {
191 return SortedListImpl::merge(reinterpret_cast<const SortedListImpl&> (vector));
H A DSortedListImpl.cpp84 ssize_t SortedListImpl::merge(const VectorImpl& vector) { argument
86 if (!vector.isEmpty()) {
87 const void* buffer = vector.arrayImpl();
89 size_t s = vector.size();
100 ssize_t SortedListImpl::merge(const SortedListImpl& vector) { argument
101 // we've merging a sorted vector... nice!
103 if (!vector.isEmpty()) {
105 if (do_compare(vector.itemLocation(vector.size() - 1), arrayImpl()) <= 0) {
106 err = VectorImpl::insertVectorAt(static_cast<const VectorImpl&> (vector),
[all...]
H A DSortedListImpl.h36 ssize_t merge(const VectorImpl& vector);
37 ssize_t merge(const SortedListImpl& vector);
52 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
53 ssize_t appendVector(const VectorImpl& vector);
/frameworks/base/libs/ui/
H A DInput.cpp529 // Construct and transform a vector oriented at the specified clockwise angle from vertical.
531 SkPoint vector; local
532 vector.fX = SkFloatToScalar(sinf(angleRadians));
533 vector.fY = SkFloatToScalar(-cosf(angleRadians));
534 matrix->mapVectors(& vector, 1);
536 // Derive the transformed vector's clockwise angle from vertical.
537 float result = atan2f(SkScalarToFloat(vector.fX), SkScalarToFloat(-vector.fY));
875 * The output is a vector B with indices 0..n-1 that describes a polynomial
886 * This function first expands the X vector t
[all...]
/frameworks/base/libs/utils/
H A DVectorImpl.cpp109 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
111 return insertArrayAt(vector.arrayImpl(), index, vector.size());
114 ssize_t VectorImpl::appendVector(const VectorImpl& vector) argument
116 return insertVectorAt(vector, size());
359 // LOGV("grow vector %p, new_capacity=%d", this, (int)new_capacity);
412 // LOGV("shrink vector %p, new_capacity=%d", this, (int)new_capacity);
567 ssize_t SortedVectorImpl::merge(const VectorImpl& vector)
570 if (!vector.isEmpty()) {
571 const void* buffer = vector
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.h34 KeyedVector<String8, String8>* vector);
/frameworks/base/media/libstagefright/chromium_http/
H A Dsupport.cpp211 const std::vector<std::string>& cert_chain,
H A Dsupport.h70 const std::vector<std::string>& cert_chain,
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Ddct64.cpp144 void pv_split_LC(Int32 *vector, argument
149 Int32 *pt_vector = &vector[0];
150 Int32 *pt_vector_N_1 = &vector[31];
495 void pv_split_z(Int32 *vector) argument
498 Int32 *pt_vector = &vector[31];
500 Int32 *pt_temp_e = vector;
H A Ddct64.h61 void pv_split_LC(Int32 *vector,
73 void pv_split_z(Int32 *vector);
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dtransform.c428 * description: Calculate max possible scale factor for input vector of shorts
432 static Word16 getScalefactorOfShortVectorStride(const Word16 *vector, /*!< Pointer to input vector */ argument
433 Word16 len, /*!< Length of input vector */
434 Word16 stride) /*!< Stride of input vector */
441 absVal = abs_s(vector[i*stride]);
452 * description: Calculate transform filter for input vector of shorts
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvlc_decode.cpp264 * 5/10/00 : check whether the decoded vector is legal.
315 * 5/10/2000 : check to see if the decoded vector falls within
323 MOT *vector /* --> Obtained MV component in 1/2 units */
344 *vector += (MOT)(diff_vector);
346 *vector = (MOT)((*vector + half_range) & mask) - half_range;
H A Dvlc_decode.h97 PV_STATUS PV_DeScaleMVD(int f_code, int residual, int vlc_code_mag, MOT *vector);

Completed in 227 milliseconds

12345