Home
last modified time | relevance | path

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

12345678910>>...34

/aosp14/system/core/libutils/include/utils/
H A DString8.h278 return find(other) >= 0; in contains()
283 setTo(other);
289 setTo(other);
295 append(other);
302 tmp += other;
308 append(other);
315 tmp += other;
356 return strcmp(mString, other) < 0;
361 return strcmp(mString, other) <= 0;
366 return strcmp(mString, other) == 0;
[all …]
H A DString16.h249 setTo(other);
255 append(other);
262 tmp += other;
268 return strzcmp16(mString, size(), other.mString, other.size()); in compare()
273 return strzcmp16(mString, size(), other.mString, other.size()) < 0;
278 return strzcmp16(mString, size(), other.mString, other.size()) <= 0;
283 return strzcmp16(mString, size(), other.mString, other.size()) == 0;
288 return strzcmp16(mString, size(), other.mString, other.size()) != 0;
293 return strzcmp16(mString, size(), other.mString, other.size()) >= 0;
298 return strzcmp16(mString, size(), other.mString, other.size()) > 0;
[all …]
H A DStrongPointer.h205 if (other) { in fromExisting()
206 other->incStrongRequireStrong(other); in fromExisting()
218 if (other) { in sp()
225 sp<T>::sp(U* other) : m_ptr(other) { in sp() argument
226 if (other) { in sp()
234 if (other) {
239 m_ptr = other;
252 sp<T>::sp(sp<T>&& other) noexcept : m_ptr(other.m_ptr) { in sp() argument
328 if (other) (static_cast<T*>(other))->incStrong(this);
331 m_ptr = other;
[all …]
H A DRefBase.h556 : m_ptr(other) in wp()
558 m_refs = other ? m_refs = other->createWeak(this) : nullptr; in wp()
563 wp<T>::wp(U* other) : m_ptr(other) { in wp() argument
564 m_refs = other ? other->createWeak(this) : nullptr; in wp()
571 m_ptr = other;
579 weakref_type* newRefs = other ? other->createWeak(this) : 0;
581 m_ptr = other;
589 : m_ptr(other.m_ptr), m_refs(other.m_refs) in wp()
642 other != nullptr ? other->createWeak(this) : nullptr;
666 other != nullptr ? other->createWeak(this) : 0;
[all …]
H A DBitSet.h139 inline bool operator== (const BitSet32& other) const { return value == other.value; }
140 inline bool operator!= (const BitSet32& other) const { return value != other.value; }
142 return BitSet32(value & other.value);
145 value &= other.value;
149 return BitSet32(value | other.value);
152 value |= other.value;
287 inline bool operator== (const BitSet64& other) const { return value == other.value; }
288 inline bool operator!= (const BitSet64& other) const { return value != other.value; }
290 return BitSet64(value & other.value);
293 value &= other.value;
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDeviceInfo.java450 return other != null && diff(other) == 0; in equals()
459 if (state != other.state || committedState != other.committedState) { in diff()
513 name = other.name; in copyFrom()
515 width = other.width; in copyFrom()
516 height = other.height; in copyFrom()
527 xDpi = other.xDpi; in copyFrom()
528 yDpi = other.yDpi; in copyFrom()
531 flags = other.flags; in copyFrom()
533 touch = other.touch; in copyFrom()
535 type = other.type; in copyFrom()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DDisplayInfo.java388 copyFrom(other); in DisplayInfo()
401 return other != null in equals()
460 flags = other.flags; in copyFrom()
461 type = other.type; in copyFrom()
464 address = other.address; in copyFrom()
466 name = other.name; in copyFrom()
467 uniqueId = other.uniqueId; in copyFrom()
478 modeId = other.modeId; in copyFrom()
481 supportedModes = Arrays.copyOf(other.supportedModes, other.supportedModes.length); in copyFrom()
484 other.supportedColorModes, other.supportedColorModes.length); in copyFrom()
[all …]
H A DInputWindowHandle.java180 token = other.token; in InputWindowHandle()
181 windowToken = other.windowToken; in InputWindowHandle()
182 window = other.window; in InputWindowHandle()
183 name = other.name; in InputWindowHandle()
187 frameLeft = other.frameLeft; in InputWindowHandle()
188 frameTop = other.frameTop; in InputWindowHandle()
189 frameRight = other.frameRight; in InputWindowHandle()
196 ownerPid = other.ownerPid; in InputWindowHandle()
197 ownerUid = other.ownerUid; in InputWindowHandle()
199 displayId = other.displayId; in InputWindowHandle()
[all …]
H A DWindowInfo.java80 window.displayId = other.displayId; in obtain()
81 window.taskId = other.taskId; in obtain()
82 window.type = other.type; in obtain()
83 window.layer = other.layer; in obtain()
84 window.token = other.token; in obtain()
85 window.parentToken = other.parentToken; in obtain()
86 window.activityToken = other.activityToken; in obtain()
87 window.focused = other.focused; in obtain()
89 window.title = other.title; in obtain()
97 if (other.childTokens != null && !other.childTokens.isEmpty()) { in obtain()
[all …]
/aosp14/system/core/libutils/
H A DFileMap.cpp67 mBasePtr(other.mBasePtr), in FileMap()
70 mDataPtr(other.mDataPtr), in FileMap()
78 other.mFileName = nullptr; in FileMap()
79 other.mBasePtr = nullptr; in FileMap()
80 other.mDataPtr = nullptr; in FileMap()
83 other.mFileMapping = NULL; in FileMap()
90 mBasePtr = other.mBasePtr; in operator =()
93 mDataPtr = other.mDataPtr; in operator =()
95 other.mFileName = nullptr; in operator =()
96 other.mBasePtr = nullptr; in operator =()
[all …]
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
H A DQSTile.java199 public boolean copyTo(State other) { in copyTo() argument
220 other.spec = spec; in copyTo()
221 other.icon = icon; in copyTo()
222 other.iconSupplier = iconSupplier; in copyTo()
223 other.label = label; in copyTo()
224 other.secondaryLabel = secondaryLabel; in copyTo()
230 other.state = state; in copyTo()
231 other.dualTarget = dualTarget; in copyTo()
232 other.isTransient = isTransient; in copyTo()
280 public boolean copyTo(State other) { in copyTo() argument
[all …]
/aosp14/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabaseConfiguration.java173 if (other == null) { in SQLiteDatabaseConfiguration()
177 this.path = other.path; in SQLiteDatabaseConfiguration()
178 this.label = other.label; in SQLiteDatabaseConfiguration()
179 updateParametersFrom(other); in SQLiteDatabaseConfiguration()
189 if (other == null) { in updateParametersFrom()
192 if (!path.equals(other.path)) { in updateParametersFrom()
197 openFlags = other.openFlags; in updateParametersFrom()
198 maxSqlCacheSize = other.maxSqlCacheSize; in updateParametersFrom()
199 locale = other.locale; in updateParametersFrom()
210 journalMode = other.journalMode; in updateParametersFrom()
[all …]
/aosp14/frameworks/base/core/java/android/util/
H A DDisplayMetrics.java412 public boolean equals(DisplayMetrics other) { in equals() argument
413 return equalsPhysical(other) in equals()
414 && scaledDensity == other.scaledDensity in equals()
428 return other != null in equalsPhysical()
429 && widthPixels == other.widthPixels in equalsPhysical()
430 && heightPixels == other.heightPixels in equalsPhysical()
431 && density == other.density in equalsPhysical()
432 && densityDpi == other.densityDpi in equalsPhysical()
433 && xdpi == other.xdpi in equalsPhysical()
434 && ydpi == other.ydpi in equalsPhysical()
[all …]
/aosp14/frameworks/base/libs/hwui/effects/
H A DStretchEffect.h49 StretchEffect& operator=(const StretchEffect& other) {
50 this->mStretchDirection = other.mStretchDirection;
51 this->maxStretchAmountX = other.maxStretchAmountX;
52 this->maxStretchAmountY = other.maxStretchAmountY;
56 bool operator==(const StretchEffect& other) const {
57 return mStretchDirection == other.mStretchDirection &&
59 maxStretchAmountY == other.maxStretchAmountY;
62 void mergeWith(const StretchEffect& other) { in mergeWith() argument
63 if (other.isEmpty()) { in mergeWith()
67 *this = other; in mergeWith()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerInternal.java504 copyFrom(other); in DisplayPowerRequest()
511 public void copyFrom(DisplayPowerRequest other) { in copyFrom() argument
512 policy = other.policy; in copyFrom()
513 useProximitySensor = other.useProximitySensor; in copyFrom()
517 blockScreenOn = other.blockScreenOn; in copyFrom()
518 lowPowerMode = other.lowPowerMode; in copyFrom()
521 dozeScreenState = other.dozeScreenState; in copyFrom()
530 public boolean equals(DisplayPowerRequest other) { in equals() argument
531 return other != null in equals()
532 && policy == other.policy in equals()
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A DWorkSource.java253 if (diff(other)) { in equals()
260 return other.mChains == null || other.mChains.isEmpty(); in equals()
295 if (N != other.mNum) { in diff()
319 if (other == null) { in set()
323 mNum = other.mNum; in set()
329 if (other.mNames != null) { in set()
597 if (other.mChains == null || other.mChains.isEmpty()) { in transferWorkChains()
606 other.mChains.clear(); in transferWorkChains()
612 final int N2 = other.mNum; in removeUids()
688 if (other.mNum > 0 && other.mNames == null) { in updateLocked()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/pm/permission/
H A DLegacyPermissionState.java51 if (other == this) { in copyFrom()
58 mUserStates.put(other.mUserStates.keyAt(i), in copyFrom()
63 final int missingSize = other.mMissing.size(); in copyFrom()
65 mMissing.put(other.mMissing.keyAt(i), other.mMissing.valueAt(i)); in copyFrom()
94 if (userStatesSize != other.mUserStates.size()) { in equals()
103 return Objects.equals(mMissing, other.mMissing); in equals()
228 public UserState(@NonNull UserState other) { in UserState() argument
280 mName = other.mName; in PermissionState()
281 mRuntime = other.mRuntime; in PermissionState()
282 mGranted = other.mGranted; in PermissionState()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DConnectivityState.kt78 connected = other.connected
79 enabled = other.enabled
80 activityIn = other.activityIn
81 activityOut = other.activityOut
82 level = other.level
83 iconGroup = other.iconGroup
84 inetCondition = other.inetCondition
85 rssi = other.rssi
86 time = other.time
102 if (other == null) return false
[all …]
H A DMobileState.kt81 override fun copyFrom(other: ConnectivityState) {
242 override fun equals(other: Any?): Boolean {
243 if (this === other) return true
245 if (!super.equals(other)) return false
247 other as MobileState
251 if (carrierId != other.carrierId) return false
252 if (dataSim != other.dataSim) return false
257 if (isDefault != other.isDefault) return false
258 if (userSetup != other.userSetup) return false
259 if (roaming != other.roaming) return false
[all …]
H A DWifiState.kt87 override fun equals(other: Any?): Boolean {
88 if (this === other) return true
89 if (javaClass != other?.javaClass) return false
90 if (!super.equals(other)) return false
92 other as WifiState
94 if (ssid != other.ssid) return false
95 if (isTransient != other.isTransient) return false
96 if (isDefault != other.isDefault) return false
97 if (statusLabel != other.statusLabel) return false
98 if (isCarrierMerged != other.isCarrierMerged) return false
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/params/
H A DOutputConfiguration.java1155 if (other == null) { in OutputConfiguration()
1159 this.mSurfaces = other.mSurfaces; in OutputConfiguration()
1160 this.mRotation = other.mRotation; in OutputConfiguration()
1162 this.mSurfaceType = other.mSurfaceType; in OutputConfiguration()
1168 this.mIsShared = other.mIsShared; in OutputConfiguration()
1173 this.mColorSpace = other.mColorSpace; in OutputConfiguration()
1174 this.mStreamUseCase = other.mStreamUseCase; in OutputConfiguration()
1175 this.mTimestampBase = other.mTimestampBase; in OutputConfiguration()
1176 this.mMirrorMode = other.mMirrorMode; in OutputConfiguration()
1375 if (mRotation != other.mRotation || in equals()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
H A DStatusEvent.kt41 fun updateFromEvent(other: StatusEvent?) {
46 fun shouldUpdateFromEvent(other: StatusEvent?): Boolean {
129 return other is PrivacyEvent && (other.privacyItems != privacyItems ||
130 other.contentDescription != contentDescription ||
131 (other.forceVisible && !forceVisible))
134 override fun updateFromEvent(other: StatusEvent?) {
135 if (other !is PrivacyEvent) {
139 privacyItems = other.privacyItems
140 contentDescription = other.contentDescription
143 privacyChip?.privacyList = other.privacyItems
[all …]
/aosp14/system/core/fs_mgr/libdm/
H A Dtest_util.h43 TempDevice(TempDevice&& other) noexcept in TempDevice() argument
44 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in TempDevice()
45 other.valid_ = false; in TempDevice()
66 TempDevice& operator=(TempDevice&& other) noexcept {
67 name_ = other.name_;
68 valid_ = other.valid_;
69 other.valid_ = false;
/aosp14/frameworks/base/core/java/com/android/internal/net/
H A DVpnConfig.java118 user = other.user; in VpnConfig()
119 interfaze = other.interfaze; in VpnConfig()
120 session = other.session; in VpnConfig()
121 mtu = other.mtu; in VpnConfig()
129 startTime = other.startTime; in VpnConfig()
130 legacy = other.legacy; in VpnConfig()
131 blocking = other.blocking; in VpnConfig()
133 allowIPv4 = other.allowIPv4; in VpnConfig()
134 allowIPv6 = other.allowIPv6; in VpnConfig()
135 isMetered = other.isMetered; in VpnConfig()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
H A DCombinedShadeHeadersConstraintManager.kt22 operator fun ConstraintChange?.plus(other: ConstraintChange?): ConstraintChange? {
24 if (this == null) return other
25 if (other == null) return this
28 other()
41 operator fun plus(other: ConstraintsChanges) = ConstraintsChanges(
42 qqsConstraintsChanges + other.qqsConstraintsChanges,
43 qsConstraintsChanges + other.qsConstraintsChanges,
44 largeScreenConstraintsChanges + other.largeScreenConstraintsChanges

12345678910>>...34