/frameworks/base/tools/aapt2/ |
H A D | StringPool.cpp | 36 StringPool::Ref::Ref(const StringPool::Ref& rhs) : entry_(rhs.entry_) { argument 54 StringPool::Ref& StringPool::Ref::operator=(const StringPool::Ref& rhs) { argument 55 if (rhs.entry_ != nullptr) { 56 rhs.entry_->ref_++; 62 entry_ = rhs.entry_; 66 bool StringPool::Ref::operator==(const Ref& rhs) const { 67 return entry_->value == rhs.entry_->value; 70 bool StringPool::Ref::operator!=(const Ref& rhs) const { 71 return entry_->value != rhs 93 StyleRef(const StringPool::StyleRef& rhs) argument 112 operator =(const StringPool::StyleRef& rhs) argument [all...] |
H A D | ResourceTable.cpp | 41 static bool less_than_type(const std::unique_ptr<ResourceTableType>& lhs, ResourceType rhs) { argument 42 return lhs->type < rhs; 46 static bool less_than_struct_with_name(const std::unique_ptr<T>& lhs, const StringPiece& rhs) { argument 47 return lhs->name.compare(0, lhs->name.size(), rhs.data(), rhs.size()) < 0; 52 const std::pair<StringPiece, Maybe<uint8_t>>& rhs) { 53 int name_cmp = lhs->name.compare(0, lhs->name.size(), rhs.first.data(), rhs.first.size()); 54 return name_cmp < 0 || (name_cmp == 0 && lhs->id < rhs.second); 165 bool lt_config_key_ref(const std::unique_ptr<ResourceConfigValue>& lhs, const ConfigKey& rhs) { argument 51 less_than_struct_with_name_and_id(const std::unique_ptr<T>& lhs, const std::pair<StringPiece, Maybe<uint8_t>>& rhs) argument [all...] |
/frameworks/base/tools/aapt2/java/ |
H A D | JavaClassGenerator.cpp | 218 static bool operator<(const StyleableAttr& lhs, const StyleableAttr& rhs) { argument 220 const ResourceId rhs_id = rhs.attr_ref->id.value_or_default(ResourceId(0)); 226 return lhs.attr_ref->name.value() < rhs.attr_ref->name.value();
|
/frameworks/native/include/gui/ |
H A D | LayerState.h | 164 int compare_type(const ComposerState& lhs, const ComposerState& rhs) { argument 165 if (lhs.client < rhs.client) return -1; 166 if (lhs.client > rhs.client) return 1; 167 if (lhs.state.surface < rhs.state.surface) return -1; 168 if (lhs.state.surface > rhs.state.surface) return 1; 173 int compare_type(const DisplayState& lhs, const DisplayState& rhs) { argument 174 return compare_type(lhs.token, rhs.token);
|
/frameworks/native/libs/gui/ |
H A D | FrameTimestamps.cpp | 202 const FrameEvents& lhs, const FrameEvents& rhs) { 203 if (lhs.valid == rhs.valid) { 204 return lhs.frameNumber < rhs.frameNumber; 201 FrameNumberLessThan( const FrameEvents& lhs, const FrameEvents& rhs) argument
|
/frameworks/native/libs/gui/include/gui/ |
H A D | LayerState.h | 164 int compare_type(const ComposerState& lhs, const ComposerState& rhs) { argument 165 if (lhs.client < rhs.client) return -1; 166 if (lhs.client > rhs.client) return 1; 167 if (lhs.state.surface < rhs.state.surface) return -1; 168 if (lhs.state.surface > rhs.state.surface) return 1; 173 int compare_type(const DisplayState& lhs, const DisplayState& rhs) { argument 174 return compare_type(lhs.token, rhs.token);
|
/frameworks/native/services/sensorservice/ |
H A D | vec.h | 50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { 54 lhs[i] = rhs[i]; 69 const VRHS<TYPE, SIZE>& rhs) { 72 r[i] = lhs[i] + rhs[i]; 84 const VRHS<TYPE, SIZE>& rhs) { 87 r[i] = lhs[i] - rhs[i]; 98 typename TypeTraits<TYPE>::ParameterType rhs) { 101 r[i] = lhs[i] * rhs; 112 const VEC<TYPE, SIZE>& rhs) { 115 r[i] = lhs * rhs[ 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 324 vec(const vec& rhs) argument 325 vec(const base& rhs) argument 330 vec(pTYPE rhs) argument 336 vec(const VEC<TYPE, S>& rhs) argument 348 operator =(const vec& rhs) argument 353 operator =(const base& rhs) argument 358 operator =(pTYPE rhs) argument 365 operator =(const VEC<TYPE, S>& rhs) argument 385 operator +(const vec& lhs, const vec& rhs) argument 388 operator -(const vec& lhs, const vec& rhs) argument 394 operator *(pTYPE v, const vec& rhs) argument 397 dot_product(const vec& lhs, const vec& rhs) argument 405 operator +=(const vec<TYPE, SIZE>& rhs) argument 413 operator -=(const vec<TYPE, SIZE>& rhs) argument 421 operator *=(vec<TYPE, SIZE>::pTYPE rhs) argument [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer_hwc1.h | 192 static HWCLayer* copy(HWCLayer *rhs) { argument 193 return rhs ? rhs->dup() : nullptr; 214 LayerListIterator& operator = (const LayerListIterator& rhs); 218 LayerListIterator(const LayerListIterator& rhs) argument 219 : mLayerList(HWCLayer::copy(rhs.mLayerList)), mIndex(rhs.mIndex) { 235 bool operator == (const LayerListIterator& rhs) const { 236 return mIndex == rhs.mIndex; 238 bool operator != (const LayerListIterator& rhs) cons [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | ProgramCache.h | 106 inline Key(const Key& rhs) : mKey(rhs.mKey) {} argument 155 friend inline int strictly_order_type(const Key& lhs, const Key& rhs) { argument 156 return (lhs.mKey < rhs.mKey) ? 1 : 0;
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/ |
H A D | MediaRouteChooserDialog.java | 388 public int compare(MediaRouter.RouteInfo lhs, MediaRouter.RouteInfo rhs) { argument 389 return lhs.getName().compareToIgnoreCase(rhs.getName());
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
H A D | MockDrmCryptoPlugin.cpp | 780 bool operator<(Vector<uint8_t> const &lhs, Vector<uint8_t> const &rhs) { argument 781 return lhs.size() < rhs.size() || (memcmp(lhs.array(), rhs.array(), lhs.size()) < 0);
|
/frameworks/av/media/libstagefright/ |
H A D | VideoFrameScheduler.cpp | 38 static int compare(const T *lhs, const T *rhs) { argument 39 if (*lhs < *rhs) { 41 } else if (*lhs > *rhs) {
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 85 const Font::FontDescription& rhs) { 86 int deltaInt = int(lhs.mFontId) - int(rhs.mFontId); 89 if (lhs.mFontSize < rhs.mFontSize) return -1; 90 if (lhs.mFontSize > rhs.mFontSize) return +1; 92 if (lhs.mItalicStyle < rhs.mItalicStyle) return -1; 93 if (lhs.mItalicStyle > rhs.mItalicStyle) return +1; 95 deltaInt = int(lhs.mFlags) - int(rhs.mFlags); 98 if (lhs.mScaleX < rhs.mScaleX) return -1; 99 if (lhs.mScaleX > rhs.mScaleX) return +1; 101 deltaInt = int(lhs.mStyle) - int(rhs 84 compare(const Font::FontDescription& lhs, const Font::FontDescription& rhs) argument [all...] |
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlDom.cpp | 100 static bool less_attribute(const Attribute& lhs, const Attribute& rhs) { argument 102 std::tie(rhs.namespace_uri, rhs.name, rhs.value);
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | ScanResult.java | 422 public InformationElement(InformationElement rhs) { argument 423 this.id = rhs.id; 424 this.bytes = rhs.bytes.clone();
|
/frameworks/native/cmds/flatland/ |
H A D | Main.cpp | 580 static int cmpDouble(const double* lhs, const double* rhs) { argument 581 if (*lhs < *rhs) { 583 } else if (*rhs < *lhs) {
|
/frameworks/native/libs/math/include/math/ |
H A D | TMatHelpers.h | 242 CONSTEXPR MATRIX_R PURE multiply(const MATRIX_A& lhs, const MATRIX_B& rhs) { argument 245 // rhs : C columns, D rows 257 res[col] = lhs * rhs[col]; 382 const BASE<T>& operator *= (const BASE<U>& rhs) { argument 384 lhs = matrix::multiply<BASE<T> >(lhs, rhs); 399 friend CONSTEXPR BASE<T> PURE operator *(const BASE<T>& lhs, const BASE<U>& rhs) { argument 400 return matrix::multiply<BASE<T> >(lhs, rhs);
|
/frameworks/native/libs/ui/ |
H A D | Region.cpp | 64 Region::Region(const Region& rhs) argument 65 : mStorage(rhs.mStorage) 68 validate(rhs, "rhs copy-ctor"); 72 Region::Region(const Rect& rhs) { argument 73 mStorage.add(rhs); 210 Region& Region::operator = (const Region& rhs) argument 214 validate(rhs, "rhs.operator="); 216 mStorage = rhs 305 orSelf(const Region& rhs) argument 308 xorSelf(const Region& rhs) argument 311 andSelf(const Region& rhs) argument 314 subtractSelf(const Region& rhs) argument 317 operationSelf(const Region& rhs, uint32_t op) argument 342 operation(const Rect& rhs, uint32_t op) const argument 362 operation(const Region& rhs, uint32_t op) const argument 376 orSelf(const Region& rhs, int dx, int dy) argument 379 xorSelf(const Region& rhs, int dx, int dy) argument 382 andSelf(const Region& rhs, int dx, int dy) argument 385 subtractSelf(const Region& rhs, int dx, int dy) argument 388 operationSelf(const Region& rhs, int dx, int dy, uint32_t op) argument 396 merge(const Region& rhs, int dx, int dy) const argument 399 mergeExclusive(const Region& rhs, int dx, int dy) const argument 402 intersect(const Region& rhs, int dx, int dy) const argument 405 subtract(const Region& rhs, int dx, int dy) const argument 408 operation(const Region& rhs, int dx, int dy, uint32_t op) const argument 438 min(T rhs, T lhs) argument 440 max(T rhs, T lhs) argument 592 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Region& rhs, int dx, int dy) argument 702 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument 731 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Region& rhs) argument 737 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Rect& rhs) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 235 void matrixx_t::load(const matrixf_t& rhs) { argument 237 GLfloat const* fp = rhs.elements(); 251 void matrixf_t::multiply(matrixf_t& r, const matrixf_t& lhs, const matrixf_t& rhs) argument 255 const float rhs_i0 = rhs.m[ I(i,0) ]; 261 const float rhs_ij = rhs.m[ I(i,j) ]; 286 void matrixf_t::set(const GLfixed* rhs) { argument 287 load(rhs); 290 void matrixf_t::set(const GLfloat* rhs) { argument 291 load(rhs); 294 void matrixf_t::load(const GLfixed* rhs) { argument 302 load(const GLfloat* rhs) argument 306 load(const matrixf_t& rhs) argument 310 multiply(const matrixf_t& rhs) argument 405 load(const GLfixed* rhs) argument 412 load(const GLfloat* rhs) argument 418 multiply(const matrixf_t& rhs) argument 713 point2__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) argument 723 point3__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) argument 734 point4__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) argument 746 point3__mvui(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) argument 760 point4__mvui(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) argument 775 point2__nop(transform_t const*, vec4_t* lhs, vec4_t const* rhs) argument 784 point3__nop(transform_t const*, vec4_t* lhs, vec4_t const* rhs) argument 793 point4__nop(transform_t const*, vec4_t* lhs, vec4_t const* rhs) argument 835 matrixf_t rhs; local 874 matrixf_t rhs; local 946 matrixf_t rhs; local 955 matrixf_t rhs; local [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ChooserActivity.java | 1192 public int compare(ChooserTarget lhs, ChooserTarget rhs) { argument 1194 return (int) Math.signum(rhs.getScore() - lhs.getScore());
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 545 void multiplyMM(float* r, const float* lhs, const float* rhs) argument 548 const float rhs_i0 = rhs[ I(i,0) ]; 554 const float rhs_ij = rhs[ I(i,j) ]; 575 FloatArrayHelper rhs(env, rhs_ref, rhsOffset, 16); 577 bool checkOK = resultMat.check() && lhs.check() && rhs.check(); 585 rhs.bind(); 587 multiplyMM(resultMat.mData, lhs.mData, rhs.mData); 593 void multiplyMV(float* r, const float* lhs, const float* rhs) argument 595 mx4transform(rhs[0], rhs[ [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorSpace.java | 1660 * @param rhs 3x3 matrix, as a non-null array of 9 floats 1662 * of rhs by lhs 1666 private static float[] mul3x3(@NonNull @Size(9) float[] lhs, @NonNull @Size(9) float[] rhs) { argument 1668 r[0] = lhs[0] * rhs[0] + lhs[3] * rhs[1] + lhs[6] * rhs[2]; 1669 r[1] = lhs[1] * rhs[0] + lhs[4] * rhs[1] + lhs[7] * rhs[2]; 1670 r[2] = lhs[2] * rhs[ 1690 mul3x3Float3( @onNull @ize9) float[] lhs, @NonNull @Size(min = 3) float[] rhs) argument 1712 mul3x3Diag( @onNull @ize3) float[] lhs, @NonNull @Size(9) float[] rhs) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1015 public int compare(Size lhs, Size rhs) { argument 1017 .compareSizes(lhs.getWidth(), lhs.getHeight(), rhs.getWidth(), rhs.getHeight());
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | RemotePrintDocument.java | 849 private boolean equalsIgnoreSize(PrintDocumentInfo lhs, PrintDocumentInfo rhs) { argument 850 if (lhs == rhs) { 856 if (rhs == null) { 859 if (lhs.getContentType() != rhs.getContentType() 860 || lhs.getPageCount() != rhs.getPageCount()) {
|
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.h | 129 inline int compare_type(const AaptGroupEntry& lhs, const AaptGroupEntry& rhs) argument 131 return lhs.compare(rhs); 134 inline int strictly_order_type(const AaptGroupEntry& lhs, const AaptGroupEntry& rhs) argument 136 return compare_type(lhs, rhs) < 0;
|