/external/proguard/src/proguard/util/ |
ObjectUtil.java | 32 * @param object2 the second object, may be null. 35 public static boolean equal(Object object1, Object object2) 38 object2 == null : 39 object1.equals(object2); 57 * @param object2 the second object, may be null. 61 public static int compare(Comparable object1, Comparable object2) 64 object2 == null ? 0 : -1 : 65 object2 == null ? 1 : object1.compareTo(object2);
|
/external/replicaisland/src/com/replica/replicaisland/ |
ChannelSystem.java | 87 public int compare(final Channel object1, final Channel object2) { 89 if (object1 == null && object2 != null) { 91 } else if (object1 != null && object2 == null) { 93 } else if (object1 != null && object2 != null) { 94 if (object1.name == null && object2.name != null) { 96 } else if (object1.name != null && object2.name == null) { 98 } else if (object1.name != null && object2.name != null) { 99 result = object1.name.compareTo(object2.name);
|
PhasedObjectManager.java | 88 public int compare(BaseObject object1, BaseObject object2) { 90 if (object1 != null && object2 != null) { 91 result = ((PhasedObject) object1).phase - ((PhasedObject) object2).phase; 92 } else if (object1 == null && object2 != null) { 94 } else if (object2 == null && object1 != null) {
|
GameObjectManager.java | 185 public int compare(BaseObject object1, BaseObject object2) { 187 if (object1 == null && object2 != null) { 189 } else if (object1 != null && object2 == null) { 191 } else if (object1 != null && object2 != null) { 193 - ((GameObject) object2).getPosition().x;
|
SoundSystem.java | 182 public int compare(final Sound object1, final Sound object2) { 184 if (object1 == null && object2 != null) { 186 } else if (object1 != null && object2 == null) { 188 } else if (object1 != null && object2 != null) { 189 result = object1.resource - object2.resource;
|
GameObjectCollisionSystem.java | 321 public int compare(CollisionVolumeRecord object1, CollisionVolumeRecord object2) { 323 if (object1 == null && object2 != null) { 325 } else if (object1 != null && object2 == null) { 327 } else if (object1 != null && object2 != null) { 336 sCompareFlip.flipX = (object2.object.facingDirection.x < 0.0f); 337 sCompareFlip.flipY = (object2.object.facingDirection.y < 0.0f); 338 sCompareFlip.parentWidth = object2.object.width; 339 sCompareFlip.parentHeight = object2.object.height; 341 final float minX2 = object2.object.getPosition().x 342 + object2.boundingVolume.getMinXPosition(sCompareFlip) [all...] |
BackgroundCollisionComponent.java | 408 public int compare(HitPoint object1, HitPoint object2) { 410 if (object1 != null && object2 != null) { 412 final float obj2Distance = object2.hitPoint.distance2(mOrigin); 415 } else if (object1 == null && object2 != null) { 417 } else if (object2 == null && object1 != null) {
|
LevelSelectActivity.java | 344 public int compare(final LevelMetaData object1, final LevelMetaData object2) { 346 if (object1 == null && object2 != null) { 348 } else if (object1 != null && object2 == null) { 350 } else if (object1 != null && object2 != null) { 351 result = object1.level.timeStamp.compareTo(object2.level.timeStamp);
|
/external/proguard/src/proguard/classfile/editor/ |
ClassMemberSorter.java | 56 public int compare(Object object1, Object object2) 59 ProgramMember member2 = (ProgramMember)object2;
|
AttributeSorter.java | 80 public int compare(Object object1, Object object2) 83 Attribute attribute2 = (Attribute)object2;
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldPriorityQueueTest.java | 86 public int compare(String object1, String object2) { 88 int length2 = object2.length(); 102 public int compare(E object1, E object2) {
|
/frameworks/base/core/java/android/gesture/ |
InstanceLearner.java | 30 public int compare(Prediction object1, Prediction object2) { 32 double score2 = object2.score;
|
/libcore/luni/src/main/java/java/text/ |
Collator.java | 185 * @param object2 187 * @return a negative value if {@code object1} is less than {@code object2}, 189 * greater than {@code object2}. 191 * if {@code object1} or {@code object2} is not a {@code String}. 193 public int compare(Object object1, Object object2) { 194 return compare((String) object1, (String) object2);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
ApplicationsState.java | 166 public int compare(AppEntry object1, AppEntry object2) { 169 final boolean normal2 = object2.info.enabled 170 && (object2.info.flags&ApplicationInfo.FLAG_INSTALLED) != 0; 174 return sCollator.compare(object1.label, object2.label); 182 public int compare(AppEntry object1, AppEntry object2) { 183 if (object1.size < object2.size) return 1; 184 if (object1.size > object2.size) return -1; 185 return sCollator.compare(object1.label, object2.label); 193 public int compare(AppEntry object1, AppEntry object2) { 194 if (object1.internalSize < object2.internalSize) return 1 [all...] |
AppOpsState.java | 422 public int compare(AppOpEntry object1, AppOpEntry object2) { 423 if (object1.getSwitchOrder() != object2.getSwitchOrder()) { 424 return object1.getSwitchOrder() < object2.getSwitchOrder() ? -1 : 1; 426 if (object1.isRunning() != object2.isRunning()) { 430 if (object1.getTime() != object2.getTime()) { 432 return object1.getTime() > object2.getTime() ? -1 : 1; 435 object2.getAppEntry().getLabel());
|
RunningState.java | 692 public int compare(ProcessItem object1, ProcessItem object2) { 693 if (object1.mUserId != object2.mUserId) { 695 if (object2.mUserId == mMyUserId) return 1; 696 return object1.mUserId < object2.mUserId ? -1 : 1; 698 if (object1.mIsStarted != object2.mIsStarted) { 702 if (object1.mIsSystem != object2.mIsSystem) { 706 if (object1.mActiveSince != object2.mActiveSince) { 709 return (object1.mActiveSince > object2.mActiveSince) ? -1 : 1; [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
AccountManagerServiceTest.java | 61 public int compare(Account object1, Account object2) { 62 if (object1 == object2) return 0; 64 if (object2 == null) return -1; 65 int result = object1.type.compareTo(object2.type); 67 return object1.name.compareTo(object2.name);
|
/external/chromium_org/mojo/public/cpp/bindings/tests/ |
handle_passing_unittest.cc | 336 sample::NamedObjectPtr object2; local 337 factory->CreateNamedObject(Get(&object2)); 338 object2->SetName("object2"); 344 object2->GetName(StringRecorder(&name2)); 349 EXPECT_EQ(std::string("object2"), name2);
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRTreeWizard.h | 51 id object2; variable 62 @property (retain) id object2; variable
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
AccountType.java | 300 public int compare(DataKind object1, DataKind object2) { 301 return object1.weight - object2.weight;
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ContactsSource.java | 149 public int compare(DataKind object1, DataKind object2) { 150 return object1.weight - object2.weight;
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
WorldClockAdapter.java | 155 public int compare(Object object1, Object object2) { 157 CityObj city2 = (CityObj) object2;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
PriorityQueueTest.java | 786 public int compare(E object1, E object2) { 788 int hashcode2 = object2.hashCode(); 802 public int compare(String object1, String object2) { 804 int length2 = object2.length(); 818 public int compare(E object1, E object2) {
|
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
GestureBuilderActivity.java | 73 public int compare(NamedGesture object1, NamedGesture object2) { 74 return object1.name.compareTo(object2.name);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LoaderCustom.java | 154 public int compare(AppEntry object1, AppEntry object2) { 155 return sCollator.compare(object1.getLabel(), object2.getLabel());
|