/cts/libs/view/src/com/android/view/ |
Position.java | 42 public double dotProduct(Position other) { 43 return (mX * other.mX) + (mY * other.mY); 47 * @return The euclidean distance between {@code this} and the other {@link Position}. 49 public double distanceTo(Position other) { 50 return Math.sqrt(Math.pow((mX - other.mX), 2) + Math.pow((mY - other.mY), 2)); 55 * {@code this} to the other {@link Position}, given the origin of the arc. 62 public double arcAngleTo(Position other, Position origin) { 63 // Compute the angle of the polar representation of this and other w.r.t. the arc origin 97 Position other = (Position) o; local [all...] |
/external/opencv3/modules/stitching/src/ |
camera.cpp | 25 // and/or other materials provided with the distribution. 51 CameraParams::CameraParams(const CameraParams &other) { *this = other; } 53 const CameraParams& CameraParams::operator =(const CameraParams &other) 55 focal = other.focal; 56 ppx = other.ppx; 57 ppy = other.ppy; 58 aspect = other.aspect; 59 R = other.R.clone(); 60 t = other.t.clone() [all...] |
/system/core/libpixelflinger/codeflinger/tinyutils/ |
smartpointer.h | 54 sp(T* other); 55 sp(const sp<T>& other); 56 template<typename U> sp(U* other); 57 template<typename U> sp(const sp<U>& other); 63 sp& operator = (T* other); 64 sp& operator = (const sp<T>& other); 66 template<typename U> sp& operator = (const sp<U>& other); 67 template<typename U> sp& operator = (U* other); 97 sp<T>::sp(T* other) 98 : m_ptr(other) [all...] |
/external/deqp/framework/randomshaders/ |
rsgToken.cpp | 45 Token& Token::operator= (const Token& other) 53 m_type = other.m_type; 57 m_arg.identifier = deStrdup(other.m_arg.identifier); 62 m_arg.floatValue = other.m_arg.floatValue; 64 m_arg.intValue = other.m_arg.intValue; 66 m_arg.boolValue = other.m_arg.boolValue; 71 Token::Token (const Token& other) 74 *this = other; 77 bool Token::operator!= (const Token& other) const 79 if (m_type != other.m_type [all...] |
/external/libchrome/base/profiler/ |
tracked_time.cc | 18 Duration& Duration::operator+=(const Duration& other) { 19 ms_ += other.ms_; 23 Duration Duration::operator+(const Duration& other) const { 24 return Duration(ms_ + other.ms_); 27 bool Duration::operator==(const Duration& other) const { 28 return ms_ == other.ms_; 31 bool Duration::operator!=(const Duration& other) const { 32 return ms_ != other.ms_; 35 bool Duration::operator>(const Duration& other) const { 36 return ms_ > other.ms_ [all...] |
/system/bt/service/common/bluetooth/ |
scan_filter.cpp | 23 ScanFilter::ScanFilter(const ScanFilter& other) { 24 device_name_ = other.device_name_; 25 device_address_ = other.device_address_; 27 if (other.service_uuid_) 28 service_uuid_.reset(new UUID(*other.service_uuid_)); 30 if (other.service_uuid_mask_) 31 service_uuid_mask_.reset(new UUID(*other.service_uuid_mask_)); 34 ScanFilter& ScanFilter::operator=(const ScanFilter& other) { 35 device_name_ = other.device_name_; 36 device_address_ = other.device_address_ [all...] |
/cts/tools/dasm/src/java_cup/ |
reduce_action.java | 50 public boolean equals(reduce_action other) 52 return other != null && other.reduce_with() == reduce_with(); 58 public boolean equals(Object other) 60 if (other instanceof reduce_action) 61 return equals((reduce_action)other);
|
shift_action.java | 50 public boolean equals(shift_action other) 52 return other != null && other.shift_to() == shift_to(); 58 public boolean equals(Object other) 60 if (other instanceof shift_action) 61 return equals((shift_action)other);
|
terminal_set.java | 26 * @param other the set we are cloning from. 28 public terminal_set(terminal_set other) 31 not_null(other); 32 _elements = (BitSet)other._elements.clone(); 96 * @param other the set we are testing against. 98 public boolean is_subset_of(terminal_set other) 101 not_null(other); 103 /* make a copy of the other set */ 104 BitSet copy_other = (BitSet)other._elements.clone(); 110 return copy_other.equals(other._elements) [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstLiteral32.java | 38 public final boolean equals(Object other) { 39 return (other != null) && 40 (getClass() == other.getClass()) && 41 bits == ((CstLiteral32) other).bits; 52 protected int compareTo0(Constant other) { 53 int otherBits = ((CstLiteral32) other).bits;
|
CstLiteral64.java | 38 public final boolean equals(Object other) { 39 return (other != null) && 40 (getClass() == other.getClass()) && 41 bits == ((CstLiteral64) other).bits; 52 protected int compareTo0(Constant other) { 53 long otherBits = ((CstLiteral64) other).bits;
|
/dalvik/dx/src/com/android/dx/rop/cst/ |
CstLiteral32.java | 38 public final boolean equals(Object other) { 39 return (other != null) && 40 (getClass() == other.getClass()) && 41 bits == ((CstLiteral32) other).bits; 52 protected int compareTo0(Constant other) { 53 int otherBits = ((CstLiteral32) other).bits;
|
CstLiteral64.java | 38 public final boolean equals(Object other) { 39 return (other != null) && 40 (getClass() == other.getClass()) && 41 bits == ((CstLiteral64) other).bits; 52 protected int compareTo0(Constant other) { 53 long otherBits = ((CstLiteral64) other).bits;
|
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
CstLiteral32.java | 38 public final boolean equals(Object other) { 39 return (other != null) && 40 (getClass() == other.getClass()) && 41 bits == ((CstLiteral32) other).bits; 52 protected int compareTo0(Constant other) { 53 int otherBits = ((CstLiteral32) other).bits;
|
CstLiteral64.java | 38 public final boolean equals(Object other) { 39 return (other != null) && 40 (getClass() == other.getClass()) && 41 bits == ((CstLiteral64) other).bits; 52 protected int compareTo0(Constant other) { 53 long otherBits = ((CstLiteral64) other).bits;
|
/external/icu/icu4c/source/i18n/unicode/ |
tmutamt.h | 69 TimeUnitAmount(const TimeUnitAmount& other); 76 TimeUnitAmount& operator=(const TimeUnitAmount& other); 96 * @param other the object to compare to. 100 virtual UBool operator==(const UObject& other) const; 105 * @param other the object to compare to. 109 UBool operator!=(const UObject& other) const; 134 * other classes have different class IDs. 158 TimeUnitAmount::operator!=(const UObject& other) const { 159 return !operator==(other);
|
/external/libgdx/extensions/gdx-bullet/jni/swig/linearmath/ |
btTransform.i | 18 * Sets the values in this transform from the other. 20 public void set(btTransform other) { 21 setOrigin(other.getOrigin()); 22 setBasis(other.getBasis());
|
/hardware/intel/common/libmix/videoencoder/ |
VideoEncoderDef.h | 180 CirParams &operator=(const CirParams &other) { 181 if (this == &other) return *this; 183 this->cir_num_mbs = other.cir_num_mbs; 193 AirParams &operator=(const AirParams &other) { 194 if (this == &other) return *this; 196 this->airMBs= other.airMBs; 197 this->airThreshold= other.airThreshold; 198 this->airAuto = other.airAuto; 207 VideoFrameRate &operator=(const VideoFrameRate &other) { 208 if (this == &other) return *this [all...] |
/external/proguard/src/proguard/evaluation/value/ |
ArrayReferenceValue.java | 60 public ReferenceValue generalize(ReferenceValue other) 62 return other.generalize(this); 66 public int equal(ReferenceValue other) 68 return other.equal(this); 75 // public ReferenceValue generalize(IdentifiedReferenceValue other) 77 // return generalize((TypedReferenceValue)other); 81 // public int equal(IdentifiedReferenceValue other) 83 // return equal((TypedReferenceValue)other); 90 public ReferenceValue generalize(ArrayReferenceValue other) 93 this.equals(other) ? this [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteDatabaseConfiguration.java | 94 * database and default values for all other parameters. 116 * @param other The other configuration. 118 public SQLiteDatabaseConfiguration(SQLiteDatabaseConfiguration other) { 119 if (other == null) { 120 throw new IllegalArgumentException("other must not be null."); 123 this.path = other.path; 124 this.label = other.label; 125 updateParametersFrom(other); 130 * from the other configuration object [all...] |
/system/core/include/utils/ |
StrongPointer.h | 63 sp(T* other); 64 sp(const sp<T>& other); 65 sp(sp<T>&& other); 66 template<typename U> sp(U* other); 67 template<typename U> sp(const sp<U>& other); 68 template<typename U> sp(sp<U>&& other); 74 sp& operator = (T* other); 75 sp& operator = (const sp<T>& other); 76 sp& operator = (sp<T>&& other); 78 template<typename U> sp& operator = (const sp<U>& other); [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
DisplayDeviceInfo.java | 68 * and that no other application should be able to interact with it. 116 * Diff result: Other fields differ. 127 * other sources. The name may be localized and displayed to the user. 275 public boolean equals(DisplayDeviceInfo other) { 276 return other != null && diff(other) == 0; 281 * Assumes other is not null. 283 public int diff(DisplayDeviceInfo other) { 285 if (state != other.state) { 288 if (colorMode != other.colorMode) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_binop.py | 86 def __add__(self, other): 88 if isint(other): 89 other = Rat(other) 90 if isRat(other): 91 return Rat(self.__num*other.__den + other.__num*self.__den, 92 self.__den*other.__den) 93 if isnum(other): 94 return float(self) + other [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_binop.py | 86 def __add__(self, other): 88 if isint(other): 89 other = Rat(other) 90 if isRat(other): 91 return Rat(self.__num*other.__den + other.__num*self.__den, 92 self.__den*other.__den) 93 if isnum(other): 94 return float(self) + other [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_binop.py | 86 def __add__(self, other): 88 if isint(other): 89 other = Rat(other) 90 if isRat(other): 91 return Rat(self.__num*other.__den + other.__num*self.__den, 92 self.__den*other.__den) 93 if isnum(other): 94 return float(self) + other [all...] |