Searched defs:lhs (Results 26 - 50 of 70) sorted by relevance

123

/frameworks/av/media/libmediaplayerservice/
H A DCrypto.cpp37 static bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) { argument
38 if (lhs.size() < rhs.size()) {
40 } else if (lhs.size() > rhs.size()) {
44 return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0;
H A DVideoFrameScheduler.cpp39 static int compare(const T *lhs, const T *rhs) { argument
40 if (*lhs < *rhs) {
42 } else if (*lhs > *rhs) {
/frameworks/base/core/java/android/speech/tts/
H A DTtsEngines.java307 public int compare(EngineInfo lhs, EngineInfo rhs) { argument
308 if (lhs.system && !rhs.system) {
310 } else if (rhs.system && !lhs.system) {
318 return rhs.priority - lhs.priority;
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialog.java269 public int compare(MediaRouter.RouteInfo lhs, MediaRouter.RouteInfo rhs) { argument
270 return lhs.getName().toString().compareTo(rhs.getName().toString());
/frameworks/base/libs/hwui/
H A DGradientCache.cpp51 int GradientCacheEntry::compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs) { argument
52 int deltaInt = int(lhs.count) - int(rhs.count);
55 deltaInt = memcmp(lhs.colors, rhs.colors, lhs.count * sizeof(uint32_t));
58 return memcmp(lhs.positions, rhs.positions, lhs.count * sizeof(float));
H A DPatchCache.cpp78 int PatchCache::PatchDescription::compare(const PatchCache::PatchDescription& lhs, argument
80 return memcmp(&lhs, &rhs, sizeof(PatchDescription));
H A DPatchCache.h107 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
117 friend inline int strictly_order_type(const PatchDescription& lhs, argument
119 return PatchDescription::compare(lhs, rhs) < 0;
122 friend inline int compare_type(const PatchDescription& lhs, argument
124 return PatchDescription::compare(lhs, rhs);
H A DTextDropShadowCache.h64 static int compare(const ShadowText& lhs, const ShadowText& rhs);
103 inline int strictly_order_type(const ShadowText& lhs, const ShadowText& rhs) { argument
104 return ShadowText::compare(lhs, rhs) < 0;
107 inline int compare_type(const ShadowText& lhs, const ShadowText& rhs) { argument
108 return ShadowText::compare(lhs, rhs);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsFragment.java394 public int compare(RootInfo lhs, RootInfo rhs) { argument
395 final int score = DocumentInfo.compareToIgnoreCaseNullable(lhs.title, rhs.title);
399 return DocumentInfo.compareToIgnoreCaseNullable(lhs.summary, rhs.summary);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DDocumentInfo.java290 public static int compareToIgnoreCaseNullable(String lhs, String rhs) { argument
291 final boolean leftEmpty = TextUtils.isEmpty(lhs);
298 final boolean leftDir = (lhs.charAt(0) == DIR_PREFIX);
304 return sCollator.compare(lhs, rhs);
/frameworks/base/rs/java/android/renderscript/
H A DMatrix4f.java222 * @param lhs left hand side matrix
225 public void loadMultiply(Matrix4f lhs, Matrix4f rhs) { argument
233 ri0 += lhs.get(j,0) * rhs_ij;
234 ri1 += lhs.get(j,1) * rhs_ij;
235 ri2 += lhs.get(j,2) * rhs_ij;
236 ri3 += lhs.get(j,3) * rhs_ij;
/frameworks/base/services/core/java/com/android/server/am/
H A DUriPermission.java345 public int compare(UriPermission lhs, UriPermission rhs) { argument
346 return Long.compare(lhs.persistedCreateTime, rhs.persistedCreateTime);
/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java462 * Tests that lhs.equals(rhs) matches expectedResult, as well as
463 * rhs.equals(lhs). Also tests that hashCode() return values are
467 * @param lhs An Object for which equals() and hashCode() are to be tested.
468 * @param rhs As lhs.
473 String message, Object lhs, Object rhs, boolean expectedResult) {
475 if ((lhs == null) && (rhs == null)) {
482 if ((lhs == null) || (rhs == null)) {
488 if (lhs != null) {
489 Assert.assertEquals(message, expectedResult, lhs.equals(rhs));
492 Assert.assertEquals(message, expectedResult, rhs.equals(lhs));
472 checkEqualsAndHashCodeMethods( String message, Object lhs, Object rhs, boolean expectedResult) argument
510 checkEqualsAndHashCodeMethods(Object lhs, Object rhs, boolean expectedResult) argument
[all...]
/frameworks/native/include/private/ui/
H A DRegionHelper.h69 inline region_operator(int op, const region& lhs, const region& rhs) argument
70 : op_mask(op), spanner(lhs, rhs)
77 SpannerInner spannerInner(spanner.lhs, spanner.rhs);
161 region lhs; member in class:android::region_operator::Spanner
165 inline Spanner(const region& lhs, const region& rhs) argument
166 : lhs(lhs), rhs(rhs)
168 if (lhs.count) {
169 SpannerBase::lhs_head = lhs.rects->top + lhs
222 region lhs; member in class:android::region_operator::SpannerInner
226 SpannerInner(const region& lhs, const region& rhs) argument
[all...]
/frameworks/native/libs/gui/
H A DSurfaceControl.cpp85 const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs)
87 if (lhs == 0 || rhs == 0)
89 return lhs->mHandle == rhs->mHandle;
84 isSameSurface( const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs) argument
/frameworks/native/services/sensorservice/
H A Dmat.h34 mat<TYPE, C, R>& lhs,
38 lhs[i][j] = (i==j) ? rhs : 0;
39 return lhs;
44 const mat<TYPE, D, R>& lhs,
52 v += lhs[k][r] * rhs[c][k];
62 const mat<TYPE, D, R>& lhs,
69 v += lhs[k][r] * rhs[k];
78 const vec<TYPE, R>& lhs,
84 res[c][r] = lhs[r] * rhs[c][0];
172 friend inline mat PURE operator + (const mat& lhs, cons argument
33 doAssign( mat<TYPE, C, R>& lhs, typename TypeTraits<TYPE>::ParameterType rhs) argument
43 doMul( const mat<TYPE, D, R>& lhs, const mat<TYPE, C, D>& rhs) argument
61 doMul( const mat<TYPE, D, R>& lhs, const vec<TYPE, D>& rhs) argument
77 doMul( const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) argument
177 operator -(const mat& lhs, const mat& rhs) argument
185 operator *( const mat<TYPE, D, R>& lhs, const mat<TYPE, C, D>& rhs) argument
192 operator *( const mat& lhs, const vec<TYPE, C>& rhs) argument
198 operator *( const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) argument
204 operator *(const mat& lhs, pTYPE v) argument
231 operator <<( const column_builder<PREV_COLUMN>& lhs, const vec<TYPE, R>& rhs) argument
240 operator <<( const column_builder<C-2>& lhs, const vec<TYPE, R>& rhs) argument
[all...]
H A Dvec.h50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) {
54 lhs[i] = rhs[i];
56 lhs[i] = 0;
57 return lhs;
68 const VLHS<TYPE, SIZE>& lhs,
72 r[i] = lhs[i] + rhs[i];
83 const VLHS<TYPE, SIZE>& lhs,
87 r[i] = lhs[i] - rhs[i];
97 const VEC<TYPE, SIZE>& lhs,
101 r[i] = lhs[
49 doAssign( vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) argument
67 doAdd( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
82 doSub( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
96 doMulScalar( const VEC<TYPE, SIZE>& lhs, typename TypeTraits<TYPE>::ParameterType rhs) argument
110 doScalarMul( typename TypeTraits<TYPE>::ParameterType lhs, const VEC<TYPE, SIZE>& rhs) argument
145 operator +( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
157 operator -( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
168 operator *( const VEC<TYPE, SIZE>& lhs, typename TypeTraits<TYPE>::ParameterType rhs) argument
179 operator *( typename TypeTraits<TYPE>::ParameterType lhs, const VEC<TYPE, SIZE>& rhs) argument
192 dot_product( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
245 operator -(const vec<TYPE, SIZE>& lhs) argument
385 operator +(const vec& lhs, const vec& rhs) argument
388 operator -(const vec& lhs, const vec& rhs) argument
391 operator *(const vec& lhs, pTYPE v) argument
397 dot_product(const vec& lhs, const vec& rhs) argument
[all...]
/frameworks/rs/cpp/util/
H A DTypeHelpers.h118 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) { argument
119 return (lhs < rhs) ? 1 : 0;
123 int compare_type(const TYPE& lhs, const TYPE& rhs) { argument
124 return strictly_order_type(rhs, lhs) - strictly_order_type(lhs, rhs);
/frameworks/rs/
H A DrsMatrix4x4.cpp252 void Matrix4x4::loadMultiply(const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { argument
263 ri0 += ((const Matrix4x4 *)lhs)->get(j,0) * rhs_ij;
264 ri1 += ((const Matrix4x4 *)lhs)->get(j,1) * rhs_ij;
265 ri2 += ((const Matrix4x4 *)lhs)->get(j,2) * rhs_ij;
266 ri3 += ((const Matrix4x4 *)lhs)->get(j,3) * rhs_ij;
H A DrsScriptGroup.cpp82 static int CompareNodeForSort(ScriptGroup::Node *const* lhs, argument
84 if (lhs[0]->mOrder > rhs[0]->mOrder) {
92 bool operator() (const ScriptGroup::Node* lhs, argument
94 if (lhs->mOrder > rhs->mOrder) {
/frameworks/rs/server/
H A DTypeHelpers.h118 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) { argument
119 return (lhs < rhs) ? 1 : 0;
123 int compare_type(const TYPE& lhs, const TYPE& rhs) { argument
124 return strictly_order_type(rhs, lhs) - strictly_order_type(lhs, rhs);
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteChooserDialog.java266 public int compare(MediaRouter.RouteInfo lhs, MediaRouter.RouteInfo rhs) { argument
267 return lhs.getName().compareTo(rhs.getName());
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DMatrix4f.java223 * @param lhs left hand side matrix
226 public void loadMultiply(Matrix4f lhs, Matrix4f rhs) { argument
234 ri0 += lhs.get(j,0) * rhs_ij;
235 ri1 += lhs.get(j,1) * rhs_ij;
236 ri2 += lhs.get(j,2) * rhs_ij;
237 ri3 += lhs.get(j,3) * rhs_ij;
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java51 * matrix. In matrix notation: result = lhs x rhs. Due to the way
54 * the lhs matrix. This is the opposite of what you might expect.
56 * The same float array may be passed for result, lhs, and/or rhs. However,
58 * either the lhs or rhs elements.
63 * @param lhs The float array that holds the left-hand-side matrix.
64 * @param lhsOffset The offset into the lhs array where the lhs is stored
68 * @throws IllegalArgumentException if result, lhs, or rhs are null, or if
69 * resultOffset + 16 > result.length or lhsOffset + 16 > lhs.length or
73 float[] lhs, in
72 multiplyMM(float[] result, int resultOffset, float[] lhs, int lhsOffset, float[] rhs, int rhsOffset) argument
[all...]
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp714 bool operator<(Vector<uint8_t> const &lhs, Vector<uint8_t> const &rhs) { argument
715 return lhs.size() < rhs.size() || (memcmp(lhs.array(), rhs.array(), lhs.size()) < 0);

Completed in 676 milliseconds

123