Home
last modified time | relevance | path

Searched refs:o2 (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplRebootTests.java83 final OverlayInfo o2 = impl.getOverlayInfo(IDENTIFIER, USER); in testImmutableEnabledChange() local
84 expect.that(o2).isNotNull(); in testImmutableEnabledChange()
86 expect.that(o2.isEnabled()).isTrue(); in testImmutableEnabledChange()
87 expect.that(o2.isMutable).isFalse(); in testImmutableEnabledChange()
116 final OverlayInfo o2 = impl.getOverlayInfo(IDENTIFIER, USER); in testMutableEnabledChangeHasNoEffect() local
117 expect.that(o2).isNotNull(); in testMutableEnabledChangeHasNoEffect()
119 expect.that(o2.isEnabled()).isFalse(); in testMutableEnabledChangeHasNoEffect()
120 expect.that(o2.isMutable).isTrue(); in testMutableEnabledChangeHasNoEffect()
198 final OverlayInfo o2 = impl.getOverlayInfo(IDENTIFIER2, USER); in testMutablePriorityChange() local
199 expect.that(o2).isNotNull(); in testMutablePriorityChange()
[all …]
DOverlayManagerServiceImplTests.java148 final OverlayInfo o2 = impl.getOverlayInfo(IDENTIFIER2, USER); in testPriority() local
151 assertOverlayInfoForTarget(TARGET, USER, o1, o2, o3); in testPriority()
155 assertOverlayInfoForTarget(TARGET, USER, o3, o1, o2); in testPriority()
159 assertOverlayInfoForTarget(TARGET, USER, o1, o2, o3); in testPriority()
163 assertOverlayInfoForTarget(TARGET, USER, o2, o1, o3); in testPriority()
/frameworks/base/services/core/java/com/android/server/am/
DCacheOomRanker.java444 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() argument
445 return Float.compare(o1.score, o2.score); in compare()
451 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() argument
452 return Long.compare(o1.proc.getLastActivityTime(), o2.proc.getLastActivityTime()); in compare()
458 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() argument
460 o2.proc.mState.getCacheOomRankerUseCount()); in compare()
466 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() argument
469 o2.proc.mState.getCacheOomRankerRss(), in compare()
476 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() argument
478 return Long.compare(o2.proc.mProfile.getLastRss(), o1.proc.mProfile.getLastRss()); in compare()
DBroadcastStats.java38 @Override public int compare(ActionEntry o1, ActionEntry o2) {
39 if (o1.mTotalDispatchTime < o2.mTotalDispatchTime) {
42 if (o1.mTotalDispatchTime > o2.mTotalDispatchTime) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakDetectorTest.java108 Object o2 = new Object(); in testDump() local
113 mLeakDetector.trackGarbage(o2); in testDump()
124 Object o2 = new Object(); in testDisabled() local
129 mLeakDetector.trackGarbage(o2); in testDisabled()
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DOmniFunction.java72 public R apply(A o, B o2) { in apply() argument
73 return invoke(o, o2, null, null, null, null, null, null, null, null, null); in apply()
81 public void accept(A o, B o2) { in accept() argument
82 invoke(o, o2, null, null, null, null, null, null, null, null, null); in accept()
96 public boolean test(A o, B o2, C o3, D o4, E o5) { in test() argument
97 return (Boolean) invoke(o, o2, o3, o4, o5, null, null, null, null, null, null); in test()
101 public boolean test(A o, B o2, C o3, D o4) { in test() argument
102 return (Boolean) invoke(o, o2, o3, o4, null, null, null, null, null, null, null); in test()
106 public boolean test(A o, B o2, C o3) { in test() argument
107 return (Boolean) invoke(o, o2, o3, null, null, null, null, null, null, null, null); in test()
[all …]
/frameworks/base/core/java/android/service/autofill/
DFieldClassification.java44 public int compare(Match o1, Match o2) { in FieldClassification()
45 if (o1.mScore > o2.mScore) return -1; in FieldClassification()
46 if (o1.mScore < o2.mScore) return 1; in FieldClassification()
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DDelegateClassAdapterTest.java200 Object o2 = outerClazz2.newInstance(); in testInnerConstructorAfterDelegate()
203 Object i2 = clazz2.getConstructor(outerClazz2).newInstance(o2); in testInnerConstructorAfterDelegate()
400 Object o2 = outerClazz2.newInstance(); in testDelegateInner()
401 assertNotNull(o2); in testDelegateInner()
405 assertEquals(4+10+20, callGet(o2, 10, 20)); in testDelegateInner()
406 assertEquals(1+10+20, callGet_Original(o2, 10, 20)); in testDelegateInner()
412 callMethod(o2, "privateMethod", false /*makePublic*/); in testDelegateInner()
424 callMethod(o2, "privateMethod_Original", false /*makePublic*/)); in testDelegateInner()
434 Object i2 = innerCons.newInstance(o2); in testDelegateInner()
482 Object o2 = outerClazz2.newInstance(); in testDelegateStaticInner()
[all …]
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DCurrentUserServiceSupplier.java79 private static final Comparator<BoundServiceInfo> sBoundServiceInfoComparator = (o1, o2) -> {
80 if (o1 == o2) {
84 } else if (o2 == null) {
91 int ret = Integer.compare(o1.getVersion(), o2.getVersion());
93 if (o1.getUserId() != USER_SYSTEM && o2.getUserId() == USER_SYSTEM) {
95 } else if (o1.getUserId() == USER_SYSTEM && o2.getUserId() != USER_SYSTEM) {
/frameworks/rs/toolkit/
Dx86.cpp612 __m128i o0, o1, o2, o3; in rsdIntrinsicConvolve5x5_K() local
719 o2 = _mm_madd_epi16( _mm_unpacklo_epi16(p2,p3), c0); in rsdIntrinsicConvolve5x5_K()
720 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p4, p5), c2)); in rsdIntrinsicConvolve5x5_K()
721 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p6, p10), c4)); in rsdIntrinsicConvolve5x5_K()
722 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p11, p12), c6)); in rsdIntrinsicConvolve5x5_K()
723 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p13, p14), c8)); in rsdIntrinsicConvolve5x5_K()
724 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p18, p19), c10)); in rsdIntrinsicConvolve5x5_K()
725 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p20, p21), c12)); in rsdIntrinsicConvolve5x5_K()
726 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p22, p26), c14)); in rsdIntrinsicConvolve5x5_K()
727 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p27, p28), c16)); in rsdIntrinsicConvolve5x5_K()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_x86.cpp609 __m128i o0, o1, o2, o3; in rsdIntrinsicConvolve5x5_K() local
716 o2 = _mm_madd_epi16( _mm_unpacklo_epi16(p2,p3), c0); in rsdIntrinsicConvolve5x5_K()
717 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p4, p5), c2)); in rsdIntrinsicConvolve5x5_K()
718 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p6, p10), c4)); in rsdIntrinsicConvolve5x5_K()
719 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p11, p12), c6)); in rsdIntrinsicConvolve5x5_K()
720 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p13, p14), c8)); in rsdIntrinsicConvolve5x5_K()
721 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p18, p19), c10)); in rsdIntrinsicConvolve5x5_K()
722 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p20, p21), c12)); in rsdIntrinsicConvolve5x5_K()
723 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p22, p26), c14)); in rsdIntrinsicConvolve5x5_K()
724 o2 = _mm_add_epi32(o2, _mm_madd_epi16( _mm_unpacklo_epi16(p27, p28), c16)); in rsdIntrinsicConvolve5x5_K()
[all …]
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DViewerConfigJsonBuilder.kt50 groups.toSortedSet { o1, o2 -> o1.name.compareTo(o2.name) }.forEach { group -> in <lambda>() method
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceProviderPermissionsTest.java111 private void assertEquivalent(SliceProviderPermissions o1, SliceProviderPermissions o2) { in assertEquivalent() argument
112 assertEquals(o1.getPkg(), o2.getPkg()); in assertEquivalent()
113 assertEquals(o1.getAuthorities(), o2.getAuthorities()); in assertEquivalent()
DSliceClientPermissionsTest.java247 private void assertEquivalent(SliceClientPermissions o1, SliceClientPermissions o2) { in assertEquivalent() argument
248 assertEquals(o1.getPkg(), o2.getPkg()); in assertEquivalent()
250 ArrayList<SliceAuthority> a2 = new ArrayList<>(o2.getAuthorities()); in assertEquivalent()
/frameworks/base/core/tests/coretests/src/com/android/internal/content/res/
DOverlayConfigTest.java429 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testMerge() local
430 assertNotNull(o2); in testMerge()
431 assertFalse(o2.parsedConfig.mutable); in testMerge()
432 assertTrue(o2.parsedConfig.enabled); in testMerge()
433 assertEquals(1, o2.configIndex); in testMerge()
692 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testOverlayManifest_withRequiredSystemPropertyAndValueNotMatched() local
693 assertNull(o2); in testOverlayManifest_withRequiredSystemPropertyAndValueNotMatched()
723 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testOverlayManifest_withRequiredSystemPropertyAndValueMatched() local
724 assertNotNull(o2); in testOverlayManifest_withRequiredSystemPropertyAndValueMatched()
/frameworks/base/services/core/java/com/android/server/pm/
DWatchedIntentResolver.java128 public int compare(WatchedIntentFilter o1, WatchedIntentFilter o2) {
130 final int q2 = o2.getPriority();
/frameworks/base/services/core/java/com/android/server/compat/overrides/
DAppCompatOverridesParser.java339 public int compare(PackageOverride o1, PackageOverride o2) { in compare() argument
342 boolean isVersionInRange2 = isVersionInRange(o2, mVersionCode); in compare()
349 boolean isVersionAfterRange2 = isVersionAfterRange(o2, mVersionCode); in compare()
357 getVersionProximity(o1, mVersionCode), getVersionProximity(o2, mVersionCode)); in compare()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/
DTestThreadingDomain.java41 (o1, o2) -> (int) (o1.executionTimeMillis - o2.executionTimeMillis);
/frameworks/compile/slang/tests/F_one_definition_rule2/
Ddef1.rscript9 DifferentDefinition2 o2;
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayConfig.java117 final ParsedOverlayInfo o2 = c2.parsedInfo;
118 Preconditions.checkArgument(o1.isStatic && o2.isStatic,
121 if (!o1.targetPackageName.equals(o2.targetPackageName)) {
122 return o1.targetPackageName.compareTo(o2.targetPackageName);
125 final int comparedPriority = o1.priority - o2.priority;
126 return comparedPriority == 0 ? o1.path.compareTo(o2.path) : comparedPriority;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/pluggable/
DNotifComparator.java44 public abstract int compare(@NonNull ListEntry o1, @NonNull ListEntry o2); in compare() argument
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java284 public int compare(File o1, File o2) { in buildVolume()
286 return o1.getName().compareTo(o2.getName()); in buildVolume()
350 public int compare(File o1, File o2) { in buildRSVolume()
352 return o1.getName().compareTo(o2.getName()); in buildRSVolume()
509 public int compare(File o1, File o2) { in buildRSVolume2()
511 return o1.getName().compareTo(o2.getName()); in buildRSVolume2()
DLoaderRaw.java76 public int compare(File o1, File o2) { in buildRSVolume()
78 return Integer.decode(o1.getName()).compareTo(Integer.decode(o2.getName())); in buildRSVolume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilder.java1212 @NonNull ListEntry o1, @NonNull ListEntry o2) { in getSectionComparator() argument
1214 if (section != o2.getSection()) { in getSectionComparator()
1223 private final Comparator<ListEntry> mTopLevelComparator = (o1, o2) -> {
1226 o2.getSectionIndex());
1229 NotifComparator sectionComparator = getSectionComparator(o1, o2);
1231 cmp = sectionComparator.compare(o1, o2);
1236 cmp = mNotifComparators.get(i).compare(o1, o2);
1242 o2.getRepresentativeEntry().getRanking().getRank());
1247 o2.getRepresentativeEntry().getSbn().getNotification().getWhen());
1253 private final Comparator<NotificationEntry> mGroupChildrenComparator = (o1, o2) -> {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescer.java331 private final Comparator<CoalescedEvent> mEventComparator = (o1, o2) -> {
333 o2.getSbn().getNotification().isGroupSummary(),
336 cmp = o1.getPosition() - o2.getPosition();

123