Home
last modified time | relevance | path

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

12345678910>>...38

/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java170 public int compareTo(BatterySipper other) { in compareTo() argument
172 if (drainType != other.drainType) { in compareTo()
176 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
181 return Double.compare(other.totalPowerMah, totalPowerMah); in compareTo()
205 public void add(BatterySipper other) { in add() argument
206 totalPowerMah += other.totalPowerMah; in add()
207 usageTimeMs += other.usageTimeMs; in add()
208 usagePowerMah += other.usagePowerMah; in add()
209 audioTimeMs += other.audioTimeMs; in add()
210 cpuTimeMs += other.cpuTimeMs; in add()
[all …]
/frameworks/native/libs/gui/
DLayerState.cpp218 void DisplayState::merge(const DisplayState& other) { in merge() argument
219 if (other.what & eSurfaceChanged) { in merge()
221 surface = other.surface; in merge()
223 if (other.what & eLayerStackChanged) { in merge()
225 layerStack = other.layerStack; in merge()
227 if (other.what & eDisplayProjectionChanged) { in merge()
229 orientation = other.orientation; in merge()
230 viewport = other.viewport; in merge()
231 frame = other.frame; in merge()
233 if (other.what & eDisplaySizeChanged) { in merge()
[all …]
/frameworks/av/camera/include/camera/camera2/
DOutputConfiguration.h77 bool operator == (const OutputConfiguration& other) const {
78 return ( mRotation == other.mRotation &&
79 mSurfaceSetID == other.mSurfaceSetID &&
80 mSurfaceType == other.mSurfaceType &&
81 mWidth == other.mWidth &&
82 mHeight == other.mHeight &&
83 mIsDeferred == other.mIsDeferred &&
84 mIsShared == other.mIsShared &&
85 gbpsEqual(other) &&
86 mPhysicalCameraId == other.mPhysicalCameraId );
[all …]
DSessionConfiguration.h59 bool operator == (const SessionConfiguration& other) const {
60 return (outputsEqual(other) &&
61 mInputWidth == other.mInputWidth &&
62 mInputHeight == other.mInputHeight &&
63 mInputFormat == other.mInputFormat &&
64 mOperatingMode == other.mOperatingMode);
67 bool operator != (const SessionConfiguration& other) const {
68 return !(*this == other);
71 bool operator < (const SessionConfiguration& other) const {
72 if (*this == other) return false;
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java315 public boolean equals(DisplayDeviceInfo other) { in equals() argument
316 return other != null && diff(other) == 0; in equals()
323 public int diff(DisplayDeviceInfo other) { in diff() argument
325 if (state != other.state) { in diff()
328 if (colorMode != other.colorMode) { in diff()
331 if (!Objects.equals(name, other.name) in diff()
332 || !Objects.equals(uniqueId, other.uniqueId) in diff()
333 || width != other.width in diff()
334 || height != other.height in diff()
335 || modeId != other.modeId in diff()
[all …]
/frameworks/av/camera/ndk/ndk_vendor/impl/
Dutils.h73 bool operator ==(const native_handle_ptr_wrapper other) const {
74 return isWindowNativeHandleEqual(mWindow, other.mWindow);
77 bool operator != (const native_handle_ptr_wrapper& other) const {
78 return !isWindowNativeHandleEqual(mWindow, other.mWindow);
81 bool operator < (const native_handle_ptr_wrapper& other) const {
82 return isWindowNativeHandleLessThan(mWindow, other.mWindow);
85 bool operator > (const native_handle_ptr_wrapper& other) const {
86 return !isWindowNativeHandleGreaterThan(mWindow, other.mWindow);
115 bool operator ==(const OutputConfiguration &other) const {
117 return self.rotation == other.rotation && self.windowGroupId == other.windowGroupId &&
[all …]
/frameworks/rs/cpp/util/
DStrongPointer.h69 sp(T* other); // NOLINT, implicit
70 sp(const sp<T>& other);
71 template<typename U> sp(U* other); // NOLINT, implicit
72 template<typename U> sp(const sp<U>& other); // NOLINT, implicit
78 sp& operator = (T* other);
79 sp& operator = (const sp<T>& other);
81 template<typename U> sp& operator = (const sp<U>& other);
82 template<typename U> sp& operator = (U* other);
85 void force_set(T* other);
122 sp<T>::sp(T* other) in sp() argument
[all …]
DRefBase.h206 explicit wp(T* other);
207 wp(const wp<T>& other);
208 explicit wp(const sp<T>& other);
209 template<typename U> explicit wp(U* other);
210 template<typename U> explicit wp(const sp<U>& other);
211 template<typename U> explicit wp(const wp<U>& other);
217 wp& operator = (T* other);
218 wp& operator = (const wp<T>& other);
219 wp& operator = (const sp<T>& other);
221 template<typename U> wp& operator = (U* other);
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp35 const NotifyConfigurationChangedArgs& other) : in NotifyConfigurationChangedArgs() argument
36 NotifyArgs(other.sequenceNum, other.eventTime) { in NotifyConfigurationChangedArgs()
60 NotifyKeyArgs::NotifyKeyArgs(const NotifyKeyArgs& other) : in NotifyKeyArgs() argument
61 NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId), in NotifyKeyArgs()
62 source(other.source), displayId(other.displayId), policyFlags(other.policyFlags), in NotifyKeyArgs()
63 action(other.action), flags(other.flags), in NotifyKeyArgs()
64 keyCode(other.keyCode), scanCode(other.scanCode), in NotifyKeyArgs()
65 metaState(other.metaState), downTime(other.downTime) { in NotifyKeyArgs()
112 NotifyMotionArgs::NotifyMotionArgs(const NotifyMotionArgs& other) : in NotifyMotionArgs() argument
113 NotifyArgs(other.sequenceNum, other.eventTime), deviceId(other.deviceId), in NotifyMotionArgs()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java315 public DisplayPowerRequest(DisplayPowerRequest other) { in DisplayPowerRequest() argument
316 copyFrom(other); in DisplayPowerRequest()
327 public void copyFrom(DisplayPowerRequest other) { in copyFrom() argument
328 policy = other.policy; in copyFrom()
329 useProximitySensor = other.useProximitySensor; in copyFrom()
330 screenBrightnessOverride = other.screenBrightnessOverride; in copyFrom()
331 useAutoBrightness = other.useAutoBrightness; in copyFrom()
332 screenAutoBrightnessAdjustmentOverride = other.screenAutoBrightnessAdjustmentOverride; in copyFrom()
333 screenLowPowerBrightnessFactor = other.screenLowPowerBrightnessFactor; in copyFrom()
334 blockScreenOn = other.blockScreenOn; in copyFrom()
[all …]
/frameworks/base/core/java/android/view/
DDisplayInfo.java295 public DisplayInfo(DisplayInfo other) { in DisplayInfo() argument
296 copyFrom(other); in DisplayInfo()
308 public boolean equals(DisplayInfo other) { in equals() argument
309 return other != null in equals()
310 && layerStack == other.layerStack in equals()
311 && flags == other.flags in equals()
312 && type == other.type in equals()
313 && displayId == other.displayId in equals()
314 && Objects.equals(address, other.address) in equals()
315 && Objects.equals(uniqueId, other.uniqueId) in equals()
[all …]
/frameworks/av/media/libmedia/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/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java155 public SQLiteDatabaseConfiguration(SQLiteDatabaseConfiguration other) { in SQLiteDatabaseConfiguration() argument
156 if (other == null) { in SQLiteDatabaseConfiguration()
160 this.path = other.path; in SQLiteDatabaseConfiguration()
161 this.label = other.label; in SQLiteDatabaseConfiguration()
162 updateParametersFrom(other); in SQLiteDatabaseConfiguration()
171 public void updateParametersFrom(SQLiteDatabaseConfiguration other) { in updateParametersFrom() argument
172 if (other == null) { in updateParametersFrom()
175 if (!path.equals(other.path)) { in updateParametersFrom()
180 openFlags = other.openFlags; in updateParametersFrom()
181 maxSqlCacheSize = other.maxSqlCacheSize; in updateParametersFrom()
[all …]
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java122 public boolean copyTo(State other) { in copyTo() argument
123 if (other == null) throw new IllegalArgumentException(); in copyTo()
124 if (!other.getClass().equals(getClass())) throw new IllegalArgumentException(); in copyTo()
125 final boolean changed = !Objects.equals(other.icon, icon) in copyTo()
126 || !Objects.equals(other.iconSupplier, iconSupplier) in copyTo()
127 || !Objects.equals(other.label, label) in copyTo()
128 || !Objects.equals(other.secondaryLabel, secondaryLabel) in copyTo()
129 || !Objects.equals(other.contentDescription, contentDescription) in copyTo()
130 || !Objects.equals(other.dualLabelContentDescription, in copyTo()
132 || !Objects.equals(other.expandedAccessibilityClassName, in copyTo()
[all …]
/frameworks/native/include/input/
DDisplayViewport.h84 bool operator==(const DisplayViewport& other) const {
85 return displayId == other.displayId
86 && orientation == other.orientation
87 && logicalLeft == other.logicalLeft
88 && logicalTop == other.logicalTop
89 && logicalRight == other.logicalRight
90 && logicalBottom == other.logicalBottom
91 && physicalLeft == other.physicalLeft
92 && physicalTop == other.physicalTop
93 && physicalRight == other.physicalRight
[all …]
/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapper.h95 SymmPerChannelQuantParams(const SymmPerChannelQuantParams& other) in SymmPerChannelQuantParams()
96 : params(other.params), scales(other.scales) { in SymmPerChannelQuantParams()
100 SymmPerChannelQuantParams& operator=(const SymmPerChannelQuantParams& other) {
101 if (this != &other) {
102 params = other.params;
103 scales = other.scales;
115 OperandType(const OperandType& other) in OperandType()
116 : operandType(other.operandType), in OperandType()
117 dimensions(other.dimensions), in OperandType()
118 channelQuant(other.channelQuant) { in OperandType()
[all …]
/frameworks/av/services/audioflinger/
DPatchPanel.h84 Endpoint& operator=(const Endpoint& other) noexcept {
85 mThread = other.mThread;
86 mCloseThread = other.mCloseThread;
87 mHandle = other.mHandle;
88 mTrack = other.mTrack;
91 Endpoint(Endpoint&& other) noexcept { swap(other); } in Endpoint() argument
92 Endpoint& operator=(Endpoint&& other) noexcept {
93 swap(other);
140 void swap(Endpoint &other) noexcept { in swap() argument
142 swap(mThread, other.mThread); in swap()
[all …]
/frameworks/base/core/java/android/util/
DDisplayMetrics.java375 public boolean equals(DisplayMetrics other) { in equals() argument
376 return equalsPhysical(other) in equals()
377 && scaledDensity == other.scaledDensity in equals()
378 && noncompatScaledDensity == other.noncompatScaledDensity; in equals()
390 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical() argument
391 return other != null in equalsPhysical()
392 && widthPixels == other.widthPixels in equalsPhysical()
393 && heightPixels == other.heightPixels in equalsPhysical()
394 && density == other.density in equalsPhysical()
395 && densityDpi == other.densityDpi in equalsPhysical()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Darray_wrapper.h40 ArrayWrapper(const ArrayWrapper& other) { *this = other; } in ArrayWrapper() argument
42 ArrayWrapper(ArrayWrapper&& other) noexcept { *this = std::move(other); } in ArrayWrapper() argument
44 ArrayWrapper& operator=(const ArrayWrapper& other) {
45 if (&other == this) {
48 buffer_ = other.buffer_;
49 capacity_ = other.capacity_;
50 end_ = other.end_;
56 ArrayWrapper& operator=(ArrayWrapper&& other) noexcept {
57 if (&other == this) {
60 buffer_ = other.buffer_;
[all …]
Dstring_wrapper.h45 StringWrapper(const StringWrapper& other) { *this = other; } in StringWrapper() argument
47 StringWrapper(StringWrapper&& other) noexcept { *this = std::move(other); } in StringWrapper() argument
49 StringWrapper& operator=(const StringWrapper& other) {
50 if (&other == this) {
53 buffer_ = other.buffer_;
54 capacity_ = other.capacity_;
55 end_ = other.end_;
61 StringWrapper& operator=(StringWrapper&& other) noexcept {
62 if (&other == this) {
65 buffer_ = other.buffer_;
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dstatus.h46 Status(const Status& other) = default;
47 Status(Status&& other) noexcept in Status() argument
48 : value_{std::move(other.value_)}, error_{other.error_} { in Status()
49 other.error_ = -1;
53 Status& operator=(const Status& other) = default;
54 Status& operator=(Status&& other) noexcept {
55 error_ = other.error_;
56 value_ = std::move(other.value_);
57 other.error_ = -1;
59 std::swap(other.value_, empty);
[all …]
Dchannel_handle.h53 ChannelHandle(ChannelHandle&& other) noexcept : ChannelHandleBase{other.value_} { in ChannelHandle() argument
54 other.value_ = kEmptyHandle;
60 ChannelHandle& operator=(ChannelHandle&& other) noexcept {
61 value_ = other.value_;
62 other.value_ = kEmptyHandle;
77 ChannelHandle(ChannelHandle&& other) noexcept in ChannelHandle() argument
78 : ChannelHandleBase{other.value_}, manager_{other.manager_} { in ChannelHandle()
79 other.manager_ = nullptr;
80 other.value_ = kEmptyHandle;
83 ChannelHandle& operator=(ChannelHandle&& other) noexcept {
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityWindowInfo.java524 private void init(AccessibilityWindowInfo other) { in init() argument
525 mType = other.mType; in init()
526 mLayer = other.mLayer; in init()
527 mBooleanProperties = other.mBooleanProperties; in init()
528 mId = other.mId; in init()
529 mParentId = other.mParentId; in init()
530 mBoundsInScreen.set(other.mBoundsInScreen); in init()
531 mTitle = other.mTitle; in init()
532 mAnchorId = other.mAnchorId; in init()
534 if (other.mChildIds != null && other.mChildIds.size() > 0) { in init()
[all …]
/frameworks/base/core/java/android/os/
DWorkSource.java214 WorkSource other = (WorkSource) o; in equals() local
216 if (diff(other)) { in equals()
221 return mChains.equals(other.mChains); in equals()
223 return other.mChains == null || other.mChains.isEmpty(); in equals()
256 public boolean diff(WorkSource other) { in diff() argument
258 if (N != other.mNum) { in diff()
262 final int[] uids2 = other.mUids; in diff()
264 final String[] names2 = other.mNames; in diff()
281 public void set(WorkSource other) { in set() argument
282 if (other == null) { in set()
[all …]
/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java72 public ForwardedStats(@NonNull ForwardedStats other) { in ForwardedStats() argument
73 rxBytes = other.rxBytes; in ForwardedStats()
74 rxPackets = other.rxPackets; in ForwardedStats()
75 txBytes = other.txBytes; in ForwardedStats()
76 txPackets = other.txPackets; in ForwardedStats()
81 public ForwardedStats add(@NonNull ForwardedStats other) { in add() argument
82 return new ForwardedStats(rxBytes + other.rxBytes, rxPackets + other.rxPackets, in add()
83 txBytes + other.txBytes, txPackets + other.txPackets); in add()
88 public ForwardedStats subtract(@NonNull ForwardedStats other) { in subtract() argument
90 final long rxBytesDiff = Math.max(rxBytes - other.rxBytes, 0); in subtract()
[all …]

12345678910>>...38