Home
last modified time | relevance | path

Searched refs:that (Results 1 – 25 of 1258) sorted by relevance

12345678910>>...51

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/devicepolicy/
DOwnerShellDataTest.java53 assertWithMessage("dto(%s).userId", dto).that(dto.userId).isEqualTo(USER_ID); in testForDeviceOwner()
54 assertWithMessage("dto(%s).parentUserId", dto).that(dto.parentUserId) in testForDeviceOwner()
56 assertWithMessage("dto(%s).admin", dto).that(dto.admin).isSameInstanceAs(ADMIN); in testForDeviceOwner()
57 assertWithMessage("dto(%s).isDeviceOwner", dto).that(dto.isDeviceOwner).isTrue(); in testForDeviceOwner()
58 assertWithMessage("dto(%s).isProfileOwner", dto).that(dto.isProfileOwner).isFalse(); in testForDeviceOwner()
59 assertWithMessage("dto(%s).isManagedProfileOwner", dto).that(dto.isManagedProfileOwner) in testForDeviceOwner()
61 assertWithMessage("dto(%s).isAffiliated", dto).that(dto.isAffiliated).isFalse(); in testForDeviceOwner()
80 assertWithMessage("dto(%s).userId", dto).that(dto.userId).isEqualTo(USER_ID); in testForUserProfileOwner()
81 assertWithMessage("dto(%s).parentUserId", dto).that(dto.parentUserId) in testForUserProfileOwner()
83 assertWithMessage("dto(%s).admin", dto).that(dto.admin).isSameInstanceAs(ADMIN); in testForUserProfileOwner()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DLockscreenShadeQsTransitionControllerTest.kt77 expect.that(controller.qsTransitionFraction).isEqualTo(0.25f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance()
80 expect.that(controller.qsTransitionFraction).isEqualTo(0.5f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance()
83 expect.that(controller.qsTransitionFraction).isEqualTo(0.75f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance()
86 expect.that(controller.qsTransitionFraction).isEqualTo(1f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance()
95 expect.that(controller.qsTransitionFraction).isEqualTo(0f) in qsTransitionFraction_noStartDelay_returnsValuesBetween0and1()
98 expect.that(controller.qsTransitionFraction).isEqualTo(1f) in qsTransitionFraction_noStartDelay_returnsValuesBetween0and1()
107 expect.that(controller.qsTransitionFraction).isEqualTo(0f) in qsTransitionFraction_withStartDelay_returnsBasedOnTransitionDistanceAndDelay()
110 expect.that(controller.qsTransitionFraction).isEqualTo(0f) in qsTransitionFraction_withStartDelay_returnsBasedOnTransitionDistanceAndDelay()
113 expect.that(controller.qsTransitionFraction).isEqualTo(0.15f) in qsTransitionFraction_withStartDelay_returnsBasedOnTransitionDistanceAndDelay()
116 expect.that(controller.qsTransitionFraction).isEqualTo(0.9f) in qsTransitionFraction_withStartDelay_returnsBasedOnTransitionDistanceAndDelay()
[all …]
/frameworks/base/core/java/android/app/
DTaskInfo.java489 public boolean equalsForTaskOrganizer(@Nullable TaskInfo that) { in equalsForTaskOrganizer() argument
490 if (that == null) { in equalsForTaskOrganizer()
493 return topActivityType == that.topActivityType in equalsForTaskOrganizer()
494 && isResizeable == that.isResizeable in equalsForTaskOrganizer()
495 && supportsMultiWindow == that.supportsMultiWindow in equalsForTaskOrganizer()
496 && displayAreaFeatureId == that.displayAreaFeatureId in equalsForTaskOrganizer()
497 && isFromLetterboxDoubleTap == that.isFromLetterboxDoubleTap in equalsForTaskOrganizer()
498 && topActivityLetterboxVerticalPosition == that.topActivityLetterboxVerticalPosition in equalsForTaskOrganizer()
499 && topActivityLetterboxWidth == that.topActivityLetterboxWidth in equalsForTaskOrganizer()
500 && topActivityLetterboxHeight == that.topActivityLetterboxHeight in equalsForTaskOrganizer()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/input/
DVirtualTouchEventTest.java96 assertWithMessage("Incorrect action").that(event.getAction()).isEqualTo( in touchEvent_created()
98 assertWithMessage("Incorrect tool type").that(event.getToolType()).isEqualTo( in touchEvent_created()
100 assertWithMessage("Incorrect x").that(event.getX()).isEqualTo(0f); in touchEvent_created()
101 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(1f); in touchEvent_created()
102 assertWithMessage("Incorrect pointer id").that(event.getPointerId()).isEqualTo(1); in touchEvent_created()
116 assertWithMessage("Incorrect action").that(event.getAction()).isEqualTo( in touchEvent_created_withPressureAndAxis()
118 assertWithMessage("Incorrect tool type").that(event.getToolType()).isEqualTo( in touchEvent_created_withPressureAndAxis()
120 assertWithMessage("Incorrect x").that(event.getX()).isEqualTo(0f); in touchEvent_created_withPressureAndAxis()
121 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(1f); in touchEvent_created_withPressureAndAxis()
122 assertWithMessage("Incorrect pointer id").that(event.getPointerId()).isEqualTo(1); in touchEvent_created_withPressureAndAxis()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java523 AppWidgetProviderInfo that = new AppWidgetProviderInfo(); in clone() local
524 that.provider = this.provider == null ? null : this.provider.clone(); in clone()
525 that.minWidth = this.minWidth; in clone()
526 that.minHeight = this.minHeight; in clone()
527 that.minResizeWidth = this.minResizeWidth; in clone()
528 that.minResizeHeight = this.minResizeHeight; in clone()
529 that.maxResizeWidth = this.maxResizeWidth; in clone()
530 that.maxResizeHeight = this.maxResizeHeight; in clone()
531 that.targetCellWidth = this.targetCellWidth; in clone()
532 that.targetCellHeight = this.targetCellHeight; in clone()
[all …]
/frameworks/base/proto/src/
Dsystem_messages.proto34 // Notify the user that a screenshot was captured.
46 // Warn the user that the device has gotten warm.
50 // Warn the user that some notifications are hidden.
58 // Notify the user that instant app is running.
62 // Notify the user that they should select an input method
74 // Notification to tell the user that a heavy-weight application is running.
78 // Notification to tell the user that a process has exceeded its memory limit.
82 // Notification that is shown when finishing a system upgrade
86 // Notify the user that tethering is active.
92 // Notify the user that always-on VPN has disconnected.
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpableContainerImplTest.java65 assertWithMessage("listDumpables(...)").that(getOutput()).isEqualTo("...No dumpables\n"); in testListDumpables_empty()
75 assertWithMessage("listDumpables()").that(getOutput()).isEqualTo("...1 dumpables: one\n"); in testListDumpables_one()
84 assertWithMessage("addDumpable(dumpable1)").that(added1).isTrue(); in testListDumpables_twoDistinctNames()
87 assertWithMessage("addDumpable(dumpable2)").that(added2).isTrue(); in testListDumpables_twoDistinctNames()
90 assertWithMessage("listDumpables()").that(getOutput()) in testListDumpables_twoDistinctNames()
100 assertWithMessage("addDumpable(dumpable1)").that(added1).isTrue(); in testListDumpables_twoSameName()
103 assertWithMessage("addDumpable(dumpable2)").that(added2).isFalse(); in testListDumpables_twoSameName()
106 assertWithMessage("listDumpables()").that(getOutput()) in testListDumpables_twoSameName()
117 assertWithMessage("dumpOneDumpable()").that(getOutput()).isEqualTo("...No two\n"); in testOneDumpable_notFound()
127 assertWithMessage("dumpOneDumpable()").that(getOutput()) in testOneDumpable_noArgs()
[all …]
/frameworks/libs/net/common/native/tcutils/
Dscopeguard.h37 ScopeGuard(ScopeGuard &&that) noexcept in ScopeGuard() argument
38 : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
39 that.active_ = false; in ScopeGuard()
43 ScopeGuard(ScopeGuard<Functor> &&that) in ScopeGuard() argument
44 : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
45 that.active_ = false; in ScopeGuard()
56 void operator=(ScopeGuard &&that) = delete;
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssPositionMode.java45 GnssPositionMode that = (GnssPositionMode) other; in equals() local
46 return mMode == that.mMode && mRecurrence == that.mRecurrence in equals()
47 && mMinInterval == that.mMinInterval in equals()
48 && mPreferredAccuracy == that.mPreferredAccuracy in equals()
49 && mPreferredTime == that.mPreferredTime && mLowPowerMode == that.mLowPowerMode in equals()
50 && this.getClass() == that.getClass(); in equals()
/frameworks/opt/telephony/testing/src/com/android/internal/telephony/testing/
DCursorSubject.java55 return assertAbout(cursors()).that(cursor); in assertThat()
60 check("getCount()").that(mActual.getCount()).isEqualTo(count); in hasCount()
65 check("getColumnNames()").that(mActual.getColumnNames()).asList() in hasColumnNames()
71 check("moveToPosition").that(mActual.moveToPosition(position)).isTrue(); in atRow()
77 check("getColumnCount()").that(mActual.getColumnCount()).isEqualTo(values.length); in hasRowValues()
86 check("Row: %s", mActual.getPosition()).that(actualValues).isEqualTo(expectedValues); in hasRowValues()
102 check("getColumnIndex()").that(index).isNotEqualTo(-1); in hasRowValue()
104 check("Row[%s]: %s", columnName, index).that(mActual.getString(index)) in hasRowValue()
112 check("getColumnIndex()").that(index).isNotEqualTo(-1); in intField()
113 check("getType()").that(mActual.getType(index)).isEqualTo(Cursor.FIELD_TYPE_INTEGER); in intField()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationLegacySettingsTest.kt82 assertWithMessage(xml).that(newSettings.remove("com.test.one")).isNull() in writeAndReadBackNormal()
83 assertWithMessage(xml).that(newSettings.getUserState("com.test.one", 0)) in writeAndReadBackNormal()
85 assertWithMessage(xml).that(newSettings.getUserState("com.test.one", 10)) in writeAndReadBackNormal()
89 assertWithMessage(xml).that(firstUserStates).isNotNull() in writeAndReadBackNormal()
90 assertWithMessage(xml).that(firstUserStates!!.size()).isEqualTo(2) in writeAndReadBackNormal()
91 assertWithMessage(xml).that(firstUserStates[0]) in writeAndReadBackNormal()
93 assertWithMessage(xml).that(firstUserStates[10]) in writeAndReadBackNormal()
96 assertWithMessage(xml).that(newSettings.remove("com.test.two")).isNull() in writeAndReadBackNormal()
97 assertWithMessage(xml).that(newSettings.getUserStates("com.test.two")).isNull() in writeAndReadBackNormal()
99 assertWithMessage(xml).that(newSettings.remove("com.test.three")).isNull() in writeAndReadBackNormal()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DWizardManagerHelperTest.java60 .that(nextIntent.getAction()) in testGetNextIntent()
63 .that(nextIntent.getStringExtra("scriptUri")) in testGetNextIntent()
66 .that(nextIntent.getStringExtra("actionId")) in testGetNextIntent()
69 .that(nextIntent.getStringExtra("theme")) in testGetNextIntent()
72 .that(nextIntent.hasExtra("ignoreExtra")) in testGetNextIntent()
75 .that(nextIntent.getIntExtra("com.android.setupwizard.ResultCode", 0)) in testGetNextIntent()
78 .that(nextIntent.getStringExtra("extraData")) in testGetNextIntent()
87 .that(WizardManagerHelper.isSetupWizardIntent(intent)) in testIsSetupWizardTrue()
96 .that(WizardManagerHelper.isDeferredSetupWizard(intent)) in testIsDeferredSetupTrue()
105 .that(WizardManagerHelper.isPreDeferredSetupWizard(intent)) in testIsPreDeferredSetupTrue()
[all …]
/frameworks/proto_logging/stats/stats_log_api_gen/
DCollation.h128 inline bool operator<(const Annotation& that) const {
129 return atomId == that.atomId ? annotationId < that.annotationId : atomId < that.atomId;
157 inline AtomField(const AtomField& that) in AtomField()
158 : name(that.name), javaType(that.javaType), enumValues(that.enumValues) { in AtomField()
188 AtomDecl(const AtomDecl& that);
192 inline bool operator<(const AtomDecl& that) const {
193 return (code == that.code) ? (name < that.name) : (code < that.code);
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCountryDetectorServiceTest.java132 expect.that(mCountryDetectorService.isListenerSet()).isFalse(); in addCountryListener_validListener_listenerAdded()
135 expect.that(mCountryDetectorService.isListenerSet()).isTrue(); in addCountryListener_validListener_listenerAdded()
144 expect.that(mCountryDetectorService.isListenerSet()).isTrue(); in removeCountryListener_validListener_listenerRemoved()
147 expect.that(mCountryDetectorService.isListenerSet()).isFalse(); in removeCountryListener_validListener_listenerRemoved()
154 expect.that(mCountryDetectorService.isSystemReady()).isFalse(); in addCountryListener_serviceNotReady_throwsException()
162 expect.that(mCountryDetectorService.isSystemReady()).isFalse(); in removeCountryListener_serviceNotReady_throwsException()
168 expect.that(mCountryDetectorService.isSystemReady()).isFalse(); in detectCountry_serviceNotReady_returnNull()
170 expect.that(mCountryDetectorService.detectCountry()).isNull(); in detectCountry_serviceNotReady_returnNull()
182 expect.that(countryListenerA.isNotified()).isFalse(); in notifyReceivers_twoListenersRegistered_bothNotified()
183 expect.that(countryListenerB.isNotified()).isFalse(); in notifyReceivers_twoListenersRegistered_bothNotified()
[all …]
/frameworks/base/libs/services/src/content/
DComponentName.cpp27 ComponentName::ComponentName(const ComponentName& that) in ComponentName() argument
28 :mPackage(that.mPackage), in ComponentName()
29 mClass(that.mClass) { in ComponentName()
40 bool ComponentName::operator<(const ComponentName& that) const { in operator <()
41 if (mPackage < that.mPackage) { in operator <()
43 } else if (mPackage > that.mPackage) { in operator <()
46 return mClass < that.mClass; in operator <()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto35 // Indicates this is a network that has the ability to reach the
38 // Indicates this is a network that has the ability to reach the
41 // Indicates this is a network that has the ability to reach the
44 // Indicates this is a network that has the ability to reach the
47 // Indicates this is a network that has the ability to reach the
50 // Indicates this is a network that has the ability to reach the
53 // Indicates this is a network that has the ability to reach a Wi-Fi
56 // Indicates this is a network that has the ability to reach a carrier's
59 // Indicates this is a network that has the ability to reach a carrier's
62 // Indicates this is a network that has the ability to reach a carrier's
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DSipDelegateConfiguration.java209 IpSecConfiguration that = (IpSecConfiguration) o; in equals()
210 return mLocalTxPort == that.mLocalTxPort in equals()
211 && mLocalRxPort == that.mLocalRxPort in equals()
212 && mLastLocalTxPort == that.mLastLocalTxPort in equals()
213 && mRemoteTxPort == that.mRemoteTxPort in equals()
214 && mRemoteRxPort == that.mRemoteRxPort in equals()
215 && mLastRemoteTxPort == that.mLastRemoteTxPort in equals()
216 && Objects.equals(mSecurityHeader, that.mSecurityHeader); in equals()
890 SipDelegateConfiguration that = (SipDelegateConfiguration) o; in equals()
891 return mVersion == that.mVersion in equals()
[all …]
/frameworks/base/core/java/android/window/
DTaskFragmentInfo.java208 public boolean equalsForTaskFragmentOrganizer(@Nullable TaskFragmentInfo that) { in equalsForTaskFragmentOrganizer() argument
209 if (that == null) { in equalsForTaskFragmentOrganizer()
213 return mFragmentToken.equals(that.mFragmentToken) in equalsForTaskFragmentOrganizer()
214 && mToken.equals(that.mToken) in equalsForTaskFragmentOrganizer()
215 && mRunningActivityCount == that.mRunningActivityCount in equalsForTaskFragmentOrganizer()
216 && mIsVisible == that.mIsVisible in equalsForTaskFragmentOrganizer()
217 && getWindowingMode() == that.getWindowingMode() in equalsForTaskFragmentOrganizer()
218 && mActivities.equals(that.mActivities) in equalsForTaskFragmentOrganizer()
219 && mPositionInParent.equals(that.mPositionInParent) in equalsForTaskFragmentOrganizer()
220 && mIsTaskClearedForReuse == that.mIsTaskClearedForReuse in equalsForTaskFragmentOrganizer()
[all …]
DTaskFragmentParentInfo.java78 public boolean equalsForTaskFragmentOrganizer(@Nullable TaskFragmentParentInfo that) { in equalsForTaskFragmentOrganizer() argument
79 if (that == null) { in equalsForTaskFragmentOrganizer()
82 return getWindowingMode() == that.getWindowingMode() && mDisplayId == that.mDisplayId in equalsForTaskFragmentOrganizer()
83 && mVisible == that.mVisible; in equalsForTaskFragmentOrganizer()
114 final TaskFragmentParentInfo that = (TaskFragmentParentInfo) obj; in equals() local
115 return mConfiguration.equals(that.mConfiguration) in equals()
116 && mDisplayId == that.mDisplayId in equals()
117 && mVisible == that.mVisible; in equals()
/frameworks/base/libs/incident/src/
DIncidentReportArgs.cpp34 IncidentReportArgs::IncidentReportArgs(const IncidentReportArgs& that) in IncidentReportArgs() argument
35 :mSections(that.mSections), in IncidentReportArgs()
36 mHeaders(that.mHeaders), in IncidentReportArgs()
37 mAll(that.mAll), in IncidentReportArgs()
38 mPrivacyPolicy(that.mPrivacyPolicy), in IncidentReportArgs()
39 mReceiverPkg(that.mReceiverPkg), in IncidentReportArgs()
40 mReceiverCls(that.mReceiverCls), in IncidentReportArgs()
41 mGzip(that.mGzip) in IncidentReportArgs()
229 IncidentReportArgs::merge(const IncidentReportArgs& that) in merge() argument
231 for (const vector<uint8_t>& header: that.mHeaders) { in merge()
[all …]
/frameworks/base/tools/bit/
Dutil.cpp31 FileInfo::FileInfo(const FileInfo& that) in FileInfo() argument
33 memcpy(this, &that, sizeof(FileInfo)); in FileInfo()
51 FileInfo::operator==(const FileInfo& that) const in operator ==()
53 return exists == that.exists in operator ==()
54 && mtime == that.mtime in operator ==()
55 && ctime == that.ctime in operator ==()
56 && size == that.size; in operator ==()
60 FileInfo::operator!=(const FileInfo& that) const in operator !=()
62 return exists != that.exists in operator !=()
63 || mtime != that.mtime in operator !=()
[all …]
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/display/
DDeviceProductInfo.java174 DeviceProductInfo that = (DeviceProductInfo) o; in equals()
175 return Objects.equals(mName, that.mName) in equals()
176 && Objects.equals(mManufacturerPnpId, that.mManufacturerPnpId) in equals()
177 && Objects.equals(mProductId, that.mProductId) in equals()
178 && Objects.equals(mModelYear, that.mModelYear) in equals()
179 && Objects.equals(mManufactureDate, that.mManufactureDate) in equals()
180 && mConnectionToSinkType == that.mConnectionToSinkType; in equals()
218 ManufactureDate that = (ManufactureDate) o; in equals()
219 return Objects.equals(mWeek, that.mWeek) && Objects.equals(mYear, that.mYear); in equals()
/frameworks/av/media/extractors/fuzzers/
DREADME.md33 Dict file (dictionary file) is created for MP4 to ensure that the required MP4
34 atoms are present in every input file that goes to the fuzzer.
35 This ensures that larger code gets covered as a range of MP4 atoms will be
52 Create a directory CORPUS_DIR and copy some MP4 files to that folder
81 Create a directory CORPUS_DIR and copy some wav files to that folder
97 Dict file (dictionary file) is created for AMR to ensure that the required start
98 bytes are present in every input file that goes to the fuzzer.
99 This ensures that larger code gets covered.
115 Create a directory CORPUS_DIR and copy some AMR files to that folder
131 Dict file (dictionary file) is created for MKV to ensure that the required element
[all …]
/frameworks/libs/net/common/device/com/android/net/module/util/bpf/
DTetherStatsValue.java58 final TetherStatsValue that = (TetherStatsValue) obj; in equals()
60 return rxPackets == that.rxPackets in equals()
61 && rxBytes == that.rxBytes in equals()
62 && rxErrors == that.rxErrors in equals()
63 && txPackets == that.txPackets in equals()
64 && txBytes == that.txBytes in equals()
65 && txErrors == that.txErrors; in equals()
/frameworks/base/core/java/android/net/metrics/
DNetworkMetrics.java133 void merge(Summary that) { in merge() argument
134 dnsLatencies.merge(that.dnsLatencies); in merge()
135 dnsErrorRate.merge(that.dnsErrorRate); in merge()
136 connectLatencies.merge(that.connectLatencies); in merge()
137 connectErrorRate.merge(that.connectErrorRate); in merge()
138 tcpLossRate.merge(that.tcpLossRate); in merge()
166 void merge(Metrics that) { in merge() argument
167 this.count += that.count; in merge()
168 this.sum += that.sum; in merge()
169 this.max = Math.max(this.max, that.max); in merge()

12345678910>>...51