Home
last modified time | relevance | path

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

12345678910>>...49

/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java106 public int compareTo(BatterySipper other) { in compareTo() argument
108 if (drainType != other.drainType) { in compareTo()
112 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
117 return Double.compare(other.totalPowerMah, totalPowerMah); in compareTo()
138 public void add(BatterySipper other) { in add() argument
139 totalPowerMah += other.totalPowerMah; in add()
140 usageTimeMs += other.usageTimeMs; in add()
141 usagePowerMah += other.usagePowerMah; in add()
142 cpuTimeMs += other.cpuTimeMs; in add()
143 gpsTimeMs += other.gpsTimeMs; in add()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java273 public boolean equals(DisplayDeviceInfo other) { in equals() argument
274 return other != null && diff(other) == 0; in equals()
281 public int diff(DisplayDeviceInfo other) { in diff() argument
283 if (state != other.state) { in diff()
286 if (!Objects.equal(name, other.name) in diff()
287 || !Objects.equal(uniqueId, other.uniqueId) in diff()
288 || width != other.width in diff()
289 || height != other.height in diff()
290 || modeId != other.modeId in diff()
291 || defaultModeId != other.defaultModeId in diff()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java228 public DisplayPowerRequest(DisplayPowerRequest other) { in DisplayPowerRequest() argument
229 copyFrom(other); in DisplayPowerRequest()
236 public void copyFrom(DisplayPowerRequest other) { in copyFrom() argument
237 policy = other.policy; in copyFrom()
238 useProximitySensor = other.useProximitySensor; in copyFrom()
239 screenBrightness = other.screenBrightness; in copyFrom()
240 screenAutoBrightnessAdjustment = other.screenAutoBrightnessAdjustment; in copyFrom()
241 brightnessSetByUser = other.brightnessSetByUser; in copyFrom()
242 useAutoBrightness = other.useAutoBrightness; in copyFrom()
243 blockScreenOn = other.blockScreenOn; in copyFrom()
[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/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/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/base/core/java/android/view/
DDisplayInfo.java259 public DisplayInfo(DisplayInfo other) { in DisplayInfo() argument
260 copyFrom(other); in DisplayInfo()
272 public boolean equals(DisplayInfo other) { in equals() argument
273 return other != null in equals()
274 && layerStack == other.layerStack in equals()
275 && flags == other.flags in equals()
276 && type == other.type in equals()
277 && Objects.equal(address, other.address) in equals()
278 && Objects.equal(uniqueId, other.uniqueId) in equals()
279 && appWidth == other.appWidth in equals()
[all …]
DMagnificationSpec.java65 public static MagnificationSpec obtain(MagnificationSpec other) { in obtain() argument
67 info.scale = other.scale; in obtain()
68 info.offsetX = other.offsetX; in obtain()
69 info.offsetY = other.offsetY; in obtain()
89 public void setTo(MagnificationSpec other) { in setTo() argument
90 scale = other.scale; in setTo()
91 offsetX = other.offsetX; in setTo()
92 offsetY = other.offsetY; in setTo()
109 public boolean equals(Object other) { in equals() argument
110 if (this == other) { in equals()
[all …]
/frameworks/av/include/media/
DModulo.h102 Modulo<T> operator +=(const Modulo<S> &other) {
104 mValue += other.unsignedValue();
110 Modulo<T> operator -=(const Modulo<S> &other) {
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) const {
141 return static_cast<signedT>(mValue - other.unsignedValue()) > 0;
[all …]
/frameworks/av/include/camera/camera2/
DOutputConfiguration.h60 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.mGbp;
71 if (mSurfaceSetID != other.mSurfaceSetID) {
[all …]
/frameworks/base/core/java/android/util/
DDisplayMetrics.java293 public boolean equals(DisplayMetrics other) { in equals() argument
294 return equalsPhysical(other) in equals()
295 && scaledDensity == other.scaledDensity in equals()
296 && noncompatScaledDensity == other.noncompatScaledDensity; in equals()
308 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical() argument
309 return other != null in equalsPhysical()
310 && widthPixels == other.widthPixels in equalsPhysical()
311 && heightPixels == other.heightPixels in equalsPhysical()
312 && density == other.density in equalsPhysical()
313 && densityDpi == other.densityDpi in equalsPhysical()
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
Dreduce_general_result.rs15 static void my_half_comb(half *accum, const half *other) { }
19 static void my_half2_comb(half2 *accum, const half2 *other) { }
23 static void my_half4_comb(half4 *accum, const half4 *other) { }
28 static void my_array_half_comb(array_half *accum, const array_half *other) { }
33 static void my_array_half2_comb(array_half2 *accum, const array_half2 *other) { }
38 static void my_array_half4_comb(array_half4 *accum, const array_half4 *other) { }
42 static void my_float_comb(float *accum, const float *other) { }
46 static void my_float2_comb(float2 *accum, const float2 *other) { }
50 static void my_float4_comb(float4 *accum, const float4 *other) { }
55 static void my_array_float_comb(array_float *accum, const array_float *other) { }
[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.java39 public void set(BatteryProperties other) { in set() argument
40 chargerAcOnline = other.chargerAcOnline; in set()
41 chargerUsbOnline = other.chargerUsbOnline; in set()
42 chargerWirelessOnline = other.chargerWirelessOnline; in set()
43 maxChargingCurrent = other.maxChargingCurrent; in set()
44 maxChargingVoltage = other.maxChargingVoltage; in set()
45 batteryStatus = other.batteryStatus; in set()
46 batteryHealth = other.batteryHealth; in set()
47 batteryPresent = other.batteryPresent; in set()
48 batteryLevel = other.batteryLevel; in set()
[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/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 …]
/frameworks/av/camera/ndk/impl/
DACameraManager.h94 bool operator == (const Callback& other) const {
95 return (mAvailable == other.mAvailable &&
96 mUnavailable == other.mUnavailable &&
97 mContext == other.mContext);
99 bool operator != (const Callback& other) const {
100 return !(*this == other);
102 bool operator < (const Callback& other) const {
103 if (*this == other) return false;
104 if (mContext != other.mContext) return mContext < other.mContext;
105 if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable;
[all …]
DACaptureRequest.h27 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;
/frameworks/base/core/java/android/hardware/camera2/params/
DOutputConfiguration.java198 public OutputConfiguration(@NonNull OutputConfiguration other) { in OutputConfiguration() argument
199 if (other == null) { in OutputConfiguration()
203 this.mSurface = other.mSurface; in OutputConfiguration()
204 this.mRotation = other.mRotation; in OutputConfiguration()
205 this.mSurfaceGroupId = other.mSurfaceGroupId; in OutputConfiguration()
206 this.mConfiguredDataspace = other.mConfiguredDataspace; in OutputConfiguration()
207 this.mConfiguredFormat = other.mConfiguredFormat; in OutputConfiguration()
208 this.mConfiguredSize = other.mConfiguredSize; in OutputConfiguration()
209 this.mConfiguredGenerationId = other.mConfiguredGenerationId; in OutputConfiguration()
313 final OutputConfiguration other = (OutputConfiguration) obj; in equals() local
[all …]
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
Dreduce_general_accumulator.rs31 static void my_half_comb(half *accum, const half *other) { }
36 static void my_half2_comb(half2 *accum, const half2 *other) { }
41 static void my_half4_comb(half4 *accum, const half4 *other) { }
47 static void my_array_half_comb(array_half *accum, const array_half *other) { }
53 static void my_array_half2_comb(array_half2 *accum, const array_half2 *other) { }
59 static void my_array_half4_comb(array_half4 *accum, const array_half4 *other) { }
64 static void my_float_comb(float *accum, const float *other) { }
69 static void my_float2_comb(float2 *accum, const float2 *other) { }
74 static void my_float4_comb(float4 *accum, const float4 *other) { }
80 static void my_array_float_comb(array_float *accum, const array_float *other) { }
[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/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DFlagSet.java66 public boolean intersect(FlagSet other, int bucketIndex) { in intersect() argument
67 return (buckets[bucketIndex] & other.buckets[bucketIndex]) != 0; in intersect()
90 public FlagSet andNot(FlagSet other) { in andNot() argument
92 final int min = Math.min(buckets.length, other.buckets.length); in andNot()
94 result.buckets[i] &= ~(other.buckets[i]); in andNot()
99 public FlagSet or(FlagSet other) { in or() argument
100 final FlagSet result = new FlagSet(buckets, other.buckets.length); in or()
101 for (int i = 0; i < other.buckets.length; i ++) { in or()
102 result.buckets[i] |= other.buckets[i]; in or()
132 public boolean bitsEqual(FlagSet other) { in bitsEqual() argument
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DMultiSelectManager_SelectionTest.java74 Selection other = new Selection(); in testSize() local
76 other.add(ids[i]); in testSize()
78 assertEquals(selection.size(), other.size()); in testSize()
86 Selection other = new Selection(); in testEqualsOther() local
87 other.add(ids[0]); in testEqualsOther()
88 other.add(ids[1]); in testEqualsOther()
89 other.add(ids[2]); in testEqualsOther()
90 assertEquals(selection, other); in testEqualsOther()
91 assertEquals(selection.hashCode(), other.hashCode()); in testEqualsOther()
95 Selection other = new Selection(); in testEqualsCopy() local
[all …]

12345678910>>...49