/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatterySipper.java | 106 public int compareTo(BatterySipper other) { argument 108 if (drainType != other.drainType) { 112 } else if (other.drainType == DrainType.OVERCOUNTED) { 117 return Double.compare(other.totalPowerMah, totalPowerMah); 136 * Add stats from other to this BatterySipper. 138 public void add(BatterySipper other) { argument 139 totalPowerMah += other.totalPowerMah; 140 usageTimeMs += other.usageTimeMs; 141 usagePowerMah += other.usagePowerMah; 142 cpuTimeMs += other [all...] |
/frameworks/av/camera/ndk/impl/ |
H A D | ACaptureRequest.h | 27 bool operator == (const ACameraOutputTarget& other) const { 28 return mWindow == other.mWindow; 30 bool operator != (const ACameraOutputTarget& other) const { 31 return mWindow != other.mWindow; 33 bool operator < (const ACameraOutputTarget& other) const { 34 return mWindow < other.mWindow; 36 bool operator > (const ACameraOutputTarget& other) const { 37 return mWindow > other.mWindow;
|
H A D | ACameraCaptureSession.h | 29 bool operator == (const ACaptureSessionOutput& other) const { 30 return mWindow == other.mWindow; 32 bool operator != (const ACaptureSessionOutput& other) const { 33 return mWindow != other.mWindow; 35 bool operator < (const ACaptureSessionOutput& other) const { 36 return mWindow < other.mWindow; 38 bool operator > (const ACaptureSessionOutput& other) const { 39 return mWindow > other.mWindow;
|
/frameworks/av/include/camera/camera2/ |
H A D | OutputConfiguration.h | 60 bool operator == (const OutputConfiguration& other) const { 61 return (mGbp == other.mGbp && 62 mRotation == other.mRotation && 63 mSurfaceSetID == other.mSurfaceSetID); 65 bool operator != (const OutputConfiguration& other) const { 66 return !(*this == other); 68 bool operator < (const OutputConfiguration& other) const { 69 if (*this == other) return false; 70 if (mGbp != other.mGbp) return mGbp < other [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 68 * and that no other application should be able to interact with it. 122 * other sources. The name may be localized and displayed to the user. 273 public boolean equals(DisplayDeviceInfo other) { argument 274 return other != null && diff(other) == 0; 279 * Assumes other is not null. 281 public int diff(DisplayDeviceInfo other) { argument 283 if (state != other.state) { 286 if (!Objects.equal(name, other.name) 287 || !Objects.equal(uniqueId, other 319 copyFrom(DisplayDeviceInfo other) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDatabaseConfiguration.java | 94 * database and default values for all other parameters. 116 * @param other The other configuration. 118 public SQLiteDatabaseConfiguration(SQLiteDatabaseConfiguration other) { argument 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 configuratio 134 updateParametersFrom(SQLiteDatabaseConfiguration other) argument [all...] |
/frameworks/support/v4/api23/android/support/v4/print/ |
H A D | PrintHelperApi23.java | 27 protected PrintAttributes.Builder copyAttributes(PrintAttributes other) { argument 28 PrintAttributes.Builder b = super.copyAttributes(other); 30 if (other.getDuplexMode() != 0) { 31 b.setDuplexMode(other.getDuplexMode());
|
/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayManagerInternal.java | 115 * may choose to make the physical display mirror some other logical display. 157 * have to micro-manage screen off animations, auto-brightness and other effects. 228 public DisplayPowerRequest(DisplayPowerRequest other) { argument 229 copyFrom(other); 236 public void copyFrom(DisplayPowerRequest other) { argument 237 policy = other.policy; 238 useProximitySensor = other.useProximitySensor; 239 screenBrightness = other.screenBrightness; 240 screenAutoBrightnessAdjustment = other.screenAutoBrightnessAdjustment; 241 brightnessSetByUser = other 257 equals(DisplayPowerRequest other) argument [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FloatRect.h | 35 inline FloatRect(const Rect& other) argument 36 : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }
|
/frameworks/base/libs/hwui/ |
H A D | FloatColor.h | 42 bool operator==(const FloatColor& other) const { 43 return MathUtils::areEqual(r, other.r) 44 && MathUtils::areEqual(g, other.g) 45 && MathUtils::areEqual(b, other.b) 46 && MathUtils::areEqual(a, other.a); 49 bool operator!=(const FloatColor& other) const { 50 return !(*this == other);
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryProperties.java | 39 public void set(BatteryProperties other) { argument 40 chargerAcOnline = other.chargerAcOnline; 41 chargerUsbOnline = other.chargerUsbOnline; 42 chargerWirelessOnline = other.chargerWirelessOnline; 43 maxChargingCurrent = other.maxChargingCurrent; 44 maxChargingVoltage = other.maxChargingVoltage; 45 batteryStatus = other.batteryStatus; 46 batteryHealth = other.batteryHealth; 47 batteryPresent = other.batteryPresent; 48 batteryLevel = other [all...] |
/frameworks/av/include/media/ |
H A D | Modulo.h | 65 // or equal to the rank of the type of the other operand, the operand with signed 102 Modulo<T> operator +=(const Modulo<S> &other) { argument 104 mValue += other.unsignedValue(); 110 Modulo<T> operator -=(const Modulo<S> &other) { argument 112 mValue -= other.unsignedValue(); 120 const Modulo<T> operator +(const Modulo<S> &other) const { 122 return Modulo<T>(mValue + other.unsignedValue()); 127 const Modulo<T> operator -(const Modulo<S> &other) const { 129 return Modulo<T>(mValue - other.unsignedValue()); 139 bool operator >(const Modulo<S> &other) cons 177 operator +=(const S &other) argument 184 operator -=(const S &other) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | DisplayMetrics.java | 44 * density, instead allow the platform to scale from other densities 288 * Returns true if these display metrics equal the other display metrics. 290 * @param other The display metrics with which to compare. 293 public boolean equals(DisplayMetrics other) { argument 294 return equalsPhysical(other) 295 && scaledDensity == other.scaledDensity 296 && noncompatScaledDensity == other.noncompatScaledDensity; 304 * @param other The display metrics with which to compare. 308 public boolean equalsPhysical(DisplayMetrics other) { argument 309 return other ! [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 34 const NotifyConfigurationChangedArgs& other) : 35 eventTime(other.eventTime) { 54 NotifyKeyArgs::NotifyKeyArgs(const NotifyKeyArgs& other) : argument 55 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), 56 policyFlags(other.policyFlags), 57 action(other.action), flags(other.flags), 58 keyCode(other 33 NotifyConfigurationChangedArgs( const NotifyConfigurationChangedArgs& other) argument 86 NotifyMotionArgs(const NotifyMotionArgs& other) argument 112 NotifySwitchArgs(const NotifySwitchArgs& other) argument 128 NotifyDeviceResetArgs(const NotifyDeviceResetArgs& other) argument [all...] |
/frameworks/base/core/java/android/accounts/ |
H A D | AccountAndUser.java | 36 final AccountAndUser other = (AccountAndUser) o; 37 return this.account.equals(other.account) 38 && this.userId == other.userId;
|
/frameworks/base/core/java/android/security/net/config/ |
H A D | Domain.java | 46 public boolean equals(Object other) { argument 47 if (other == this) { 50 if (!(other instanceof Domain)) { 53 Domain otherDomain = (Domain) other;
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
H A D | TwilightState.java | 55 public boolean equals(TwilightState other) { argument 56 return other != null 57 && mIsNight == other.mIsNight 58 && mAmount == other.mAmount;
|
/frameworks/rs/cpp/util/ |
H A D | StrongPointer.h | 68 sp(T* other); 69 sp(const sp<T>& other); 70 template<typename U> sp(U* other); 71 template<typename U> sp(const sp<U>& other); 77 sp& operator = (T* other); 78 sp& operator = (const sp<T>& other); 80 template<typename U> sp& operator = (const sp<U>& other); 81 template<typename U> sp& operator = (U* other); 84 void force_set(T* other); 121 sp<T>::sp(T* other) 141 sp(const sp<U>& other) argument 154 operator =(const sp<T>& other) argument 163 operator =(T* other) argument 172 operator =(const sp<U>& other) argument 182 operator =(U* other) argument 191 force_set(T* other) argument [all...] |
/frameworks/rs/server/ |
H A D | StrongPointer.h | 67 sp(T* other); 68 sp(const sp<T>& other); 69 template<typename U> sp(U* other); 70 template<typename U> sp(const sp<U>& other); 76 sp& operator = (T* other); 77 sp& operator = (const sp<T>& other); 79 template<typename U> sp& operator = (const sp<U>& other); 80 template<typename U> sp& operator = (U* other); 83 void force_set(T* other); 120 sp<T>::sp(T* other) 140 sp(const sp<U>& other) argument 153 operator =(const sp<T>& other) argument 162 operator =(T* other) argument 171 operator =(const sp<U>& other) argument 181 operator =(U* other) argument 190 force_set(T* other) argument [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | Size.java | 105 public Size(Size other) { argument 106 if (other == null) { 109 val = new Point(other.width(), other.height()); 116 * @param other The source size. 118 public Size(Camera.Size other) { argument 119 if (other == null) { 122 val = new Point(other.width, other.height); 129 * @param other Th 131 Size(android.util.Size other) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | SyncStatusInfo.java | 132 public SyncStatusInfo(SyncStatusInfo other) { argument 133 authorityId = other.authorityId; 134 totalElapsedTime = other.totalElapsedTime; 135 numSyncs = other.numSyncs; 136 numSourcePoll = other.numSourcePoll; 137 numSourceServer = other.numSourceServer; 138 numSourceLocal = other.numSourceLocal; 139 numSourceUser = other.numSourceUser; 140 numSourcePeriodic = other.numSourcePeriodic; 141 lastSuccessTime = other [all...] |
/frameworks/base/core/java/android/view/ |
H A D | MagnificationSpec.java | 65 public static MagnificationSpec obtain(MagnificationSpec other) { argument 67 info.scale = other.scale; 68 info.offsetX = other.offsetX; 69 info.offsetY = other.offsetY; 89 public void setTo(MagnificationSpec other) { argument 90 scale = other.scale; 91 offsetX = other.offsetX; 92 offsetY = other.offsetY; 109 public boolean equals(Object other) { argument 110 if (this == other) { [all...] |
H A D | DisplayInfo.java | 259 public DisplayInfo(DisplayInfo other) { argument 260 copyFrom(other); 272 public boolean equals(DisplayInfo other) { argument 273 return other != null 274 && layerStack == other.layerStack 275 && flags == other.flags 276 && type == other.type 277 && Objects.equal(address, other.address) 278 && Objects.equal(uniqueId, other.uniqueId) 279 && appWidth == other 312 copyFrom(DisplayInfo other) argument [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | PaintImpl.cpp | 40 Paint& Paint::operator=(const Paint& other) { argument 41 SkPaint::operator=(other); 42 mLetterSpacing = other.mLetterSpacing; 43 mFontFeatureSettings = other.mFontFeatureSettings; 44 mMinikinLangListId = other.mMinikinLangListId; 45 mFontVariant = other.mFontVariant; 46 mHyphenEdit = other.mHyphenEdit;
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpRoot.java | 59 final MtpRoot other = (MtpRoot) object; 60 return mDeviceId == other.mDeviceId && 61 mStorageId == other.mStorageId && 62 mDescription.equals(other.mDescription) && 63 mFreeSpace == other.mFreeSpace && 64 mMaxCapacity == other.mMaxCapacity && 65 mVolumeIdentifier.equals(other.mVolumeIdentifier);
|