Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 1102) sorted by relevance

12345678910>>...45

/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java102 public int compareTo(BatterySipper other) { in compareTo() argument
104 if (drainType != other.drainType) { in compareTo()
108 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
113 return Double.compare(other.totalPowerMah, totalPowerMah); in compareTo()
134 public void add(BatterySipper other) { in add() argument
135 totalPowerMah += other.totalPowerMah; in add()
136 usageTimeMs += other.usageTimeMs; in add()
137 usagePowerMah += other.usagePowerMah; in add()
138 cpuTimeMs += other.cpuTimeMs; in add()
139 gpsTimeMs += other.gpsTimeMs; in add()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java259 public boolean equals(DisplayDeviceInfo other) { in equals() argument
260 return other != null && diff(other) == 0; in equals()
267 public int diff(DisplayDeviceInfo other) { in diff() argument
269 if (state != other.state) { in diff()
272 if (!Objects.equal(name, other.name) in diff()
273 || !Objects.equal(uniqueId, other.uniqueId) in diff()
274 || width != other.width in diff()
275 || height != other.height in diff()
276 || modeId != other.modeId in diff()
277 || defaultModeId != other.defaultModeId in diff()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp34 const NotifyConfigurationChangedArgs& other) : in NotifyConfigurationChangedArgs() argument
35 eventTime(other.eventTime) { in NotifyConfigurationChangedArgs()
54 NotifyKeyArgs::NotifyKeyArgs(const NotifyKeyArgs& other) : in NotifyKeyArgs() argument
55 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), in NotifyKeyArgs()
56 policyFlags(other.policyFlags), in NotifyKeyArgs()
57 action(other.action), flags(other.flags), in NotifyKeyArgs()
58 keyCode(other.keyCode), scanCode(other.scanCode), in NotifyKeyArgs()
59 metaState(other.metaState), downTime(other.downTime) { in NotifyKeyArgs()
86 NotifyMotionArgs::NotifyMotionArgs(const NotifyMotionArgs& other) : in NotifyMotionArgs() argument
87 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), in NotifyMotionArgs()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java225 public DisplayPowerRequest(DisplayPowerRequest other) { in DisplayPowerRequest() argument
226 copyFrom(other); in DisplayPowerRequest()
233 public void copyFrom(DisplayPowerRequest other) { in copyFrom() argument
234 policy = other.policy; in copyFrom()
235 useProximitySensor = other.useProximitySensor; in copyFrom()
236 screenBrightness = other.screenBrightness; in copyFrom()
237 screenAutoBrightnessAdjustment = other.screenAutoBrightnessAdjustment; in copyFrom()
238 brightnessSetByUser = other.brightnessSetByUser; in copyFrom()
239 useAutoBrightness = other.useAutoBrightness; in copyFrom()
240 blockScreenOn = other.blockScreenOn; in copyFrom()
[all …]
/frameworks/rs/server/
DStrongPointer.h67 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) in sp() argument
[all …]
DRefBase.h204 wp(T* other);
205 wp(const wp<T>& other);
206 wp(const sp<T>& other);
207 template<typename U> wp(U* other);
208 template<typename U> wp(const sp<U>& other);
209 template<typename U> wp(const wp<U>& other);
215 wp& operator = (T* other);
216 wp& operator = (const wp<T>& other);
217 wp& operator = (const sp<T>& other);
219 template<typename U> wp& operator = (U* other);
[all …]
/frameworks/rs/cpp/util/
DStrongPointer.h68 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) in sp() argument
[all …]
DRefBase.h205 wp(T* other);
206 wp(const wp<T>& other);
207 wp(const sp<T>& other);
208 template<typename U> wp(U* other);
209 template<typename U> wp(const sp<U>& other);
210 template<typename U> wp(const wp<U>& other);
216 wp& operator = (T* other);
217 wp& operator = (const wp<T>& other);
218 wp& operator = (const sp<T>& other);
220 template<typename U> wp& operator = (U* other);
[all …]
/frameworks/base/core/java/android/view/
DDisplayInfo.java247 public DisplayInfo(DisplayInfo other) { in DisplayInfo() argument
248 copyFrom(other); in DisplayInfo()
260 public boolean equals(DisplayInfo other) { in equals() argument
261 return other != null in equals()
262 && layerStack == other.layerStack in equals()
263 && flags == other.flags in equals()
264 && type == other.type in equals()
265 && Objects.equal(address, other.address) in equals()
266 && Objects.equal(uniqueId, other.uniqueId) in equals()
267 && appWidth == other.appWidth in equals()
[all …]
/frameworks/base/core/java/android/util/
DDisplayMetrics.java280 public boolean equals(DisplayMetrics other) { in equals() argument
281 return equalsPhysical(other) in equals()
282 && scaledDensity == other.scaledDensity in equals()
283 && noncompatScaledDensity == other.noncompatScaledDensity; in equals()
295 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical() argument
296 return other != null in equalsPhysical()
297 && widthPixels == other.widthPixels in equalsPhysical()
298 && heightPixels == other.heightPixels in equalsPhysical()
299 && density == other.density in equalsPhysical()
300 && densityDpi == other.densityDpi in equalsPhysical()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java118 public SQLiteDatabaseConfiguration(SQLiteDatabaseConfiguration other) { in SQLiteDatabaseConfiguration() argument
119 if (other == null) { in SQLiteDatabaseConfiguration()
123 this.path = other.path; in SQLiteDatabaseConfiguration()
124 this.label = other.label; in SQLiteDatabaseConfiguration()
125 updateParametersFrom(other); in SQLiteDatabaseConfiguration()
134 public void updateParametersFrom(SQLiteDatabaseConfiguration other) { in updateParametersFrom() argument
135 if (other == null) { in updateParametersFrom()
138 if (!path.equals(other.path)) { in updateParametersFrom()
143 openFlags = other.openFlags; in updateParametersFrom()
144 maxSqlCacheSize = other.maxSqlCacheSize; in updateParametersFrom()
[all …]
/frameworks/base/core/java/android/os/
DWorkSource.java154 public boolean diff(WorkSource other) { in diff() argument
156 if (N != other.mNum) { in diff()
160 final int[] uids2 = other.mUids; in diff()
162 final String[] names2 = other.mNames; in diff()
179 public void set(WorkSource other) { in set() argument
180 if (other == null) { in set()
184 mNum = other.mNum; in set()
185 if (other.mUids != null) { in set()
187 System.arraycopy(other.mUids, 0, mUids, 0, mNum); in set()
189 mUids = other.mUids.clone(); in set()
[all …]
DBatteryProperties.java36 public void set(BatteryProperties other) { in set() argument
37 chargerAcOnline = other.chargerAcOnline; in set()
38 chargerUsbOnline = other.chargerUsbOnline; in set()
39 chargerWirelessOnline = other.chargerWirelessOnline; in set()
40 batteryStatus = other.batteryStatus; in set()
41 batteryHealth = other.batteryHealth; in set()
42 batteryPresent = other.batteryPresent; in set()
43 batteryLevel = other.batteryLevel; in set()
44 batteryVoltage = other.batteryVoltage; in set()
45 batteryTemperature = other.batteryTemperature; in set()
[all …]
/frameworks/base/core/java/android/print/
DPrinterInfo.java63 public void copyFrom(PrinterInfo other) { in copyFrom() argument
64 if (this == other) { in copyFrom()
67 mId = other.mId; in copyFrom()
68 mName = other.mName; in copyFrom()
69 mStatus = other.mStatus; in copyFrom()
70 mDescription = other.mDescription; in copyFrom()
71 if (other.mCapabilities != null) { in copyFrom()
73 mCapabilities.copyFrom(other.mCapabilities); in copyFrom()
75 mCapabilities = new PrinterCapabilitiesInfo(other.mCapabilities); in copyFrom()
176 PrinterInfo other = (PrinterInfo) obj; in equals() local
[all …]
/frameworks/base/core/java/android/content/
DSyncStatusInfo.java132 public SyncStatusInfo(SyncStatusInfo other) { in SyncStatusInfo() argument
133 authorityId = other.authorityId; in SyncStatusInfo()
134 totalElapsedTime = other.totalElapsedTime; in SyncStatusInfo()
135 numSyncs = other.numSyncs; in SyncStatusInfo()
136 numSourcePoll = other.numSourcePoll; in SyncStatusInfo()
137 numSourceServer = other.numSourceServer; in SyncStatusInfo()
138 numSourceLocal = other.numSourceLocal; in SyncStatusInfo()
139 numSourceUser = other.numSourceUser; in SyncStatusInfo()
140 numSourcePeriodic = other.numSourcePeriodic; in SyncStatusInfo()
141 lastSuccessTime = other.lastSuccessTime; in SyncStatusInfo()
[all …]
DPeriodicSync.java62 public PeriodicSync(PeriodicSync other) { in PeriodicSync() argument
63 this.account = other.account; in PeriodicSync()
64 this.authority = other.authority; in PeriodicSync()
65 this.extras = new Bundle(other.extras); in PeriodicSync()
66 this.period = other.period; in PeriodicSync()
67 this.flexTime = other.flexTime; in PeriodicSync()
125 final PeriodicSync other = (PeriodicSync) o; in equals() local
126 return account.equals(other.account) in equals()
127 && authority.equals(other.authority) in equals()
128 && period == other.period in equals()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DSize.java105 public Size(Size other) { in Size() argument
106 if (other == null) { in Size()
109 val = new Point(other.width(), other.height()); in Size()
118 public Size(Camera.Size other) { in Size() argument
119 if (other == null) { in Size()
122 val = new Point(other.width, other.height); in Size()
131 public Size(android.util.Size other) { in Size() argument
132 if (other == null) { in Size()
135 val = new Point(other.getWidth(), other.getHeight()); in Size()
163 Size other = (Size) o; in equals() local
[all …]
/frameworks/native/libs/input/
DInputDevice.cpp133 InputDeviceInfo::InputDeviceInfo(const InputDeviceInfo& other) : in InputDeviceInfo() argument
134 mId(other.mId), mGeneration(other.mGeneration), mControllerNumber(other.mControllerNumber), in InputDeviceInfo()
135 mIdentifier(other.mIdentifier), mAlias(other.mAlias), mIsExternal(other.mIsExternal), in InputDeviceInfo()
136 mHasMic(other.mHasMic), mSources(other.mSources), in InputDeviceInfo()
137 mKeyboardType(other.mKeyboardType), mKeyCharacterMap(other.mKeyCharacterMap), in InputDeviceInfo()
138 mHasVibrator(other.mHasVibrator), mHasButtonUnderPad(other.mHasButtonUnderPad), in InputDeviceInfo()
139 mMotionRanges(other.mMotionRanges) { in InputDeviceInfo()
DInput.cpp178 bool PointerCoords::operator==(const PointerCoords& other) const { in operator ==()
179 if (bits != other.bits) { in operator ==()
184 if (values[i] != other.values[i]) { in operator ==()
191 void PointerCoords::copyFrom(const PointerCoords& other) { in copyFrom() argument
192 bits = other.bits; in copyFrom()
195 values[i] = other.values[i]; in copyFrom()
202 bool PointerProperties::operator==(const PointerProperties& other) const { in operator ==()
203 return id == other.id in operator ==()
204 && toolType == other.toolType; in operator ==()
207 void PointerProperties::copyFrom(const PointerProperties& other) { in copyFrom() argument
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DFlagSet.java67 public boolean intersect(FlagSet other, int bucketIndex) { in intersect() argument
68 return (buckets[bucketIndex] & other.buckets[bucketIndex]) != 0; in intersect()
91 public FlagSet andNot(FlagSet other) { in andNot() argument
93 final int min = Math.min(buckets.length, other.buckets.length); in andNot()
95 result.buckets[i] &= ~(other.buckets[i]); in andNot()
100 public FlagSet or(FlagSet other) { in or() argument
101 final FlagSet result = new FlagSet(buckets, other.buckets.length); in or()
102 for (int i = 0; i < other.buckets.length; i ++) { in or()
103 result.buckets[i] |= other.buckets[i]; in or()
133 public boolean bitsEqual(FlagSet other) { in bitsEqual() argument
[all …]
/frameworks/base/core/java/android/hardware/radio/
DRadioManager.java287 ModuleProperties other = (ModuleProperties) obj; in equals()
288 if (mId != other.getId()) in equals()
290 if (mClassId != other.getClassId()) in equals()
293 if (other.getImplementor() != null) in equals()
295 } else if (!mImplementor.equals(other.getImplementor())) in equals()
298 if (other.getProduct() != null) in equals()
300 } else if (!mProduct.equals(other.getProduct())) in equals()
303 if (other.getVersion() != null) in equals()
305 } else if (!mVersion.equals(other.getVersion())) in equals()
308 if (other.getSerial() != null) in equals()
[all …]
/frameworks/native/libs/ui/tests/
DRegion_test.cpp35 for (const Rect* other = current - 1; other >= r.begin(); other--) { in verifyNoTJunctions() local
36 if (other->bottom < current->top) break; in verifyNoTJunctions()
37 if (other->bottom != current->top) continue; in verifyNoTJunctions()
38 checkVertTJunction(current, other); in verifyNoTJunctions()
40 for (const Rect* other = current + 1; other < r.end(); other++) { in verifyNoTJunctions() local
41 if (other->top > current->bottom) break; in verifyNoTJunctions()
42 if (other->top != current->bottom) continue; in verifyNoTJunctions()
43 checkVertTJunction(current, other); in verifyNoTJunctions()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java118 public RouteInfo(RouteInfo other) { in RouteInfo() argument
119 id = other.id; in RouteInfo()
120 name = other.name; in RouteInfo()
121 description = other.description; in RouteInfo()
122 supportedTypes = other.supportedTypes; in RouteInfo()
123 enabled = other.enabled; in RouteInfo()
124 statusCode = other.statusCode; in RouteInfo()
125 playbackType = other.playbackType; in RouteInfo()
126 playbackStream = other.playbackStream; in RouteInfo()
127 volume = other.volume; in RouteInfo()
[all …]
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java214 PreciseDataConnectionState other = (PreciseDataConnectionState) obj; in equals() local
216 if (other.mAPN != null) { in equals()
219 } else if (!mAPN.equals(other.mAPN)) { in equals()
223 if (other.mAPNType != null) { in equals()
226 } else if (!mAPNType.equals(other.mAPNType)) { in equals()
230 if (other.mFailCause != null) { in equals()
233 } else if (!mFailCause.equals(other.mFailCause)) { in equals()
237 if (other.mLinkProperties != null) { in equals()
240 } else if (!mLinkProperties.equals(other.mLinkProperties)) { in equals()
243 if (mNetworkType != other.mNetworkType) { in equals()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java224 public boolean equals(final Object other) { in equals() argument
225 return other instanceof MeteringRectangle && equals((MeteringRectangle)other); in equals()
238 public boolean equals(final MeteringRectangle other) { in equals() argument
239 if (other == null) { in equals()
243 return (mX == other.mX in equals()
244 && mY == other.mY in equals()
245 && mWidth == other.mWidth in equals()
246 && mHeight == other.mHeight in equals()
247 && mWeight == other.mWeight); in equals()

12345678910>>...45