Home
last modified time | relevance | path

Searched refs:equals (Results 1 – 25 of 2800) sorted by relevance

12345678910>>...112

/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/
DRequestSync.java156 if (opt.equals("-h") || opt.equals("--help")) { in parseArgs()
159 } else if (opt.equals("-n") || opt.equals("--account-name")) { in parseArgs()
161 } else if (opt.equals("-t") || opt.equals("--account-type")) { in parseArgs()
163 } else if (opt.equals("-a") || opt.equals("--authority")) { in parseArgs()
165 } else if (opt.equals("--is") || opt.equals("--ignore-settings")) { in parseArgs()
167 } else if (opt.equals("--ib") || opt.equals("--ignore-backoff")) { in parseArgs()
169 } else if (opt.equals("--dd") || opt.equals("--discard-deletions")) { in parseArgs()
171 } else if (opt.equals("--nr") || opt.equals("--no-retry")) { in parseArgs()
173 } else if (opt.equals("--ex") || opt.equals("--expedited")) { in parseArgs()
175 } else if (opt.equals("-i") || opt.equals("--initialize")) { in parseArgs()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java62 assertFalse(scan1.getScanResult().BSSID.equals(scan2.getScanResult().BSSID)); in testDifferentBssidScanResultsMatch()
104 assertTrue(key1.equals(key1)); in testEqualityRulesForTransitionMode()
107 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
108 assertTrue(key2.equals(key1)); in testEqualityRulesForTransitionMode()
111 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
112 assertTrue(key2.equals(key3)); in testEqualityRulesForTransitionMode()
113 assertTrue(key1.equals(key3)); in testEqualityRulesForTransitionMode()
116 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
117 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
118 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageUserStateTest.java47 assertThat(testUserState.equals(null), is(false)); in testPackageUserState01()
48 assertThat(testUserState.equals(testUserState), is(true)); in testPackageUserState01()
49 assertThat(testUserState.equals(oldUserState), is(true)); in testPackageUserState01()
53 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
57 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
61 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
65 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
69 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
73 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
77 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DRetryManagerTest.java180 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnNoRetry()
202 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
207 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
212 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
219 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
224 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
229 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
234 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries()
257 assertTrue(nextApn.equals(mApn1)); in testRetryManagerTwoApnsOneRetry()
262 assertTrue(nextApn.equals(mApn2)); in testRetryManagerTwoApnsOneRetry()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraCapabilities.java132 if (Camera.Parameters.SCENE_MODE_AUTO.equals(scene)) { in buildSceneModes()
134 } else if (Camera.Parameters.SCENE_MODE_ACTION.equals(scene)) { in buildSceneModes()
136 } else if (Camera.Parameters.SCENE_MODE_BARCODE.equals(scene)) { in buildSceneModes()
138 } else if (Camera.Parameters.SCENE_MODE_BEACH.equals(scene)) { in buildSceneModes()
140 } else if (Camera.Parameters.SCENE_MODE_CANDLELIGHT.equals(scene)) { in buildSceneModes()
142 } else if (Camera.Parameters.SCENE_MODE_FIREWORKS.equals(scene)) { in buildSceneModes()
144 } else if (Camera.Parameters.SCENE_MODE_HDR.equals(scene)) { in buildSceneModes()
146 } else if (Camera.Parameters.SCENE_MODE_LANDSCAPE.equals(scene)) { in buildSceneModes()
148 } else if (Camera.Parameters.SCENE_MODE_NIGHT.equals(scene)) { in buildSceneModes()
150 } else if (Camera.Parameters.SCENE_MODE_NIGHT_PORTRAIT.equals(scene)) { in buildSceneModes()
[all …]
/frameworks/native/opengl/tools/glgen/src/
DCType.java57 if(baseType.equals("EGLContext") in isEGLHandle()
58 || baseType.equals("EGLConfig") in isEGLHandle()
59 || baseType.equals("EGLSurface") in isEGLHandle()
60 || baseType.equals("EGLDisplay") in isEGLHandle()
61 || baseType.equals("EGLImage") in isEGLHandle()
62 || baseType.equals("EGLSync")) { in isEGLHandle()
70 return baseType.equals("GLvoid") || in isVoid()
71 baseType.equals("void"); in isVoid()
76 (baseType.equals("char") || baseType.equals("GLchar")); in isConstCharPointer()
111 public boolean equals(Object o) { in equals() method in CType
[all …]
/frameworks/base/cmds/sm/src/com/android/commands/sm/
DSm.java70 if ("list-disks".equals(op)) { in run()
72 } else if ("list-volumes".equals(op)) { in run()
74 } else if ("has-adoptable".equals(op)) { in run()
76 } else if ("get-primary-storage-uuid".equals(op)) { in run()
78 } else if ("set-force-adoptable".equals(op)) { in run()
80 } else if ("set-sdcardfs".equals(op)) { in run()
82 } else if ("partition".equals(op)) { in run()
84 } else if ("mount".equals(op)) { in run()
86 } else if ("unmount".equals(op)) { in run()
88 } else if ("format".equals(op)) { in run()
[all …]
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java79 if (op.equals("instrument")) { in onRun()
88 if ("all".equals(arg)) { in parseUserArg()
90 } else if ("current".equals(arg) || "cur".equals(arg)) { in parseUserArg()
156 if (opt.equals("-p")) { in runInstrument()
158 } else if (opt.equals("-w")) { in runInstrument()
160 } else if (opt.equals("-r")) { in runInstrument()
162 } else if (opt.equals("-m")) { in runInstrument()
164 } else if (opt.equals("-f")) { in runInstrument()
168 } else if (opt.equals("-e")) { in runInstrument()
172 } else if (opt.equals("--no_window_animation") in runInstrument()
[all …]
/frameworks/base/cmds/bu/src/com/android/commands/bu/
DBackup.java74 if (arg.equals("backup")) { in run()
76 } else if (arg.equals("restore")) { in run()
97 if ("-apk".equals(arg)) { in doBackup()
99 } else if ("-noapk".equals(arg)) { in doBackup()
101 } else if ("-obb".equals(arg)) { in doBackup()
103 } else if ("-noobb".equals(arg)) { in doBackup()
105 } else if ("-shared".equals(arg)) { in doBackup()
107 } else if ("-noshared".equals(arg)) { in doBackup()
109 } else if ("-system".equals(arg)) { in doBackup()
111 } else if ("-nosystem".equals(arg)) { in doBackup()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DObjectPoolTests.java69 assertFalse(item.equals(emptyItem)); in testRecycleActivityConfigurationChangeItem()
76 assertFalse(item2.equals(emptyItem)); in testRecycleActivityConfigurationChangeItem()
84 assertFalse(item.equals(emptyItem)); in testRecycleActivityResultItem()
91 assertFalse(item2.equals(emptyItem)); in testRecycleActivityResultItem()
99 assertFalse(item.equals(emptyItem)); in testRecycleConfigurationChangeItem()
106 assertFalse(item2.equals(emptyItem)); in testRecycleConfigurationChangeItem()
114 assertFalse(item.equals(emptyItem)); in testRecycleDestroyActivityItem()
121 assertFalse(item2.equals(emptyItem)); in testRecycleDestroyActivityItem()
153 assertFalse(item.equals(emptyItem)); in testRecycleLaunchActivityItem()
163 assertFalse(item2.equals(emptyItem)); in testRecycleLaunchActivityItem()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DAccessoryFilter.java70 if ("manufacturer".equals(name)) { in read()
72 } else if ("model".equals(name)) { in read()
74 } else if ("version".equals(name)) { in read()
96 if (mManufacturer != null && !acc.getManufacturer().equals(mManufacturer)) return false; in matches()
97 if (mModel != null && !acc.getModel().equals(mModel)) return false; in matches()
98 return !(mVersion != null && !acc.getVersion().equals(mVersion)); in matches()
109 if (mManufacturer != null && !Objects.equals(accessory.mManufacturer, mManufacturer)) { in contains()
112 if (mModel != null && !Objects.equals(accessory.mModel, mModel)) return false; in contains()
113 return !(mVersion != null && !Objects.equals(accessory.mVersion, mVersion)); in contains()
117 public boolean equals(Object obj) { in equals() method in AccessoryFilter
[all …]
DDeviceFilter.java99 if ("manufacturer-name".equals(name)) { in read()
101 } else if ("product-name".equals(name)) { in read()
103 } else if ("serial-number".equals(name)) { in read()
120 if ("vendor-id".equals(name)) { in read()
122 } else if ("product-id".equals(name)) { in read()
124 } else if ("class".equals(name)) { in read()
126 } else if ("subclass".equals(name)) { in read()
128 } else if ("protocol".equals(name)) { in read()
180 !mManufacturerName.equals(device.getManufacturerName())) return false; in matches()
182 !mProductName.equals(device.getProductName())) return false; in matches()
[all …]
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DReplaceMethodCallsAdapter.java66 return JAVA_LANG_SYSTEM.equals(owner) && "arraycopy".equals(name) && in METHOD_REPLACERS.add()
85 return JAVA_LOCALE_CLASS.equals(owner) && in METHOD_REPLACERS.add()
86 ("adjustLanguageCode".equals(name) && desc.equals(STRING_TO_STRING) || in METHOD_REPLACERS.add()
87 "getDefault".equals(name) && desc.equals(VOID_TO_LOCALE)); in METHOD_REPLACERS.add()
100 return JAVA_LANG_SYSTEM.equals(owner) && name.length() == 4 in METHOD_REPLACERS.add()
106 assert mi.desc.equals("(Ljava/lang/String;Ljava/lang/Throwable;)V") in METHOD_REPLACERS.add()
107 || mi.desc.equals("(Ljava/lang/String;)V"); in METHOD_REPLACERS.add()
117 return JAVA_LANG_SYSTEM.equals(owner) && name.equals("nanoTime"); in METHOD_REPLACERS.add()
129 return JAVA_LANG_SYSTEM.equals(owner) && name.equals("currentTimeMillis"); in METHOD_REPLACERS.add()
148 return LINKED_HASH_MAP.equals(owner) && in METHOD_REPLACERS.add()
[all …]
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java102 if (op.equals("dispatch")) { in onRun()
104 } else if (op.equals("list-sessions")) { in onRun()
106 } else if (op.equals("monitor")) { in onRun()
108 } else if (op.equals("volume")) { in onRun()
135 if (controller != null && id.equals(controller.getTag())) { in runMonitor()
156 if ("play".equals(cmd)) { in runDispatch()
158 } else if ("pause".equals(cmd)) { in runDispatch()
160 } else if ("play-pause".equals(cmd)) { in runDispatch()
162 } else if ("mute".equals(cmd)) { in runDispatch()
164 } else if ("headsethook".equals(cmd)) { in runDispatch()
[all …]
/frameworks/base/core/java/android/app/backup/
DFullBackup.java250 if (domainToken.equals(FullBackup.FILES_TREE_TOKEN)) { in tokenToDirectoryPath()
252 } else if (domainToken.equals(FullBackup.DATABASE_TREE_TOKEN)) { in tokenToDirectoryPath()
254 } else if (domainToken.equals(FullBackup.ROOT_TREE_TOKEN)) { in tokenToDirectoryPath()
256 } else if (domainToken.equals(FullBackup.SHAREDPREFS_TREE_TOKEN)) { in tokenToDirectoryPath()
258 } else if (domainToken.equals(FullBackup.CACHE_TREE_TOKEN)) { in tokenToDirectoryPath()
260 } else if (domainToken.equals(FullBackup.NO_BACKUP_TREE_TOKEN)) { in tokenToDirectoryPath()
262 } else if (domainToken.equals(FullBackup.DEVICE_FILES_TREE_TOKEN)) { in tokenToDirectoryPath()
264 } else if (domainToken.equals(FullBackup.DEVICE_DATABASE_TREE_TOKEN)) { in tokenToDirectoryPath()
266 } else if (domainToken.equals(FullBackup.DEVICE_ROOT_TREE_TOKEN)) { in tokenToDirectoryPath()
268 } else if (domainToken.equals(FullBackup.DEVICE_SHAREDPREFS_TREE_TOKEN)) { in tokenToDirectoryPath()
[all …]
/frameworks/layoutlib/bridge/src/android/os/
DSystemProperties_Delegate.java82 if ("n".equals(value) || "no".equals(value) || "0".equals(value) || "false".equals(value) in native_get_boolean()
83 || "off".equals(value)) { in native_get_boolean()
87 if ("y".equals(value) || "yes".equals(value) || "1".equals(value) || "true".equals(value) in native_get_boolean()
88 || "on".equals(value)) { in native_get_boolean()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java364 if (uri.equals(ATOM_NAMESPACE)) { in startElement()
365 if (localName.equals("entry")) { in startElement()
374 if (!localName.equals("id") in startElement()
375 && !localName.equals("published") in startElement()
376 && !localName.equals("name")) { in startElement()
388 if (uri.equals(MEDIA_NAMESPACE)) { in startElement()
389 if (localName.equals("thumbnail")) { in startElement()
397 if (localName.equals("content")) { in startElement()
405 if (localName.equals("player")) { in startElement()
413 if (localName.equals("title") in startElement()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCharSequencesTest.java32 assertTrue(s.equals(copy)); in testCharSequences()
35 assertTrue(s.equals(copy)); in testCharSequences()
38 assertTrue("Crazy".equals(crazy)); in testCharSequences()
41 assertTrue("a".equals(a)); in testCharSequences()
44 assertTrue("".equals(empty)); in testCharSequences()
46 assertTrue(CharSequences.equals("bob", "bob")); in testCharSequences()
47 assertFalse(CharSequences.equals("b", "bob")); in testCharSequences()
48 assertFalse(CharSequences.equals("", "bob")); in testCharSequences()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DPowerProfile.java166 if ("ambient.on".equals(name)) { in onItem()
168 } else if ("audio".equals(name)) { in onItem()
170 } else if ("bluetooth.controller.idle".equals(name)) { in onItem()
172 } else if ("bluetooth.controller.rx".equals(name)) { in onItem()
174 } else if ("bluetooth.controller.tx".equals(name)) { in onItem()
176 } else if ("camera.avg".equals(name)) { in onItem()
178 } else if ("camera.flashlight".equals(name)) { in onItem()
180 } else if ("cpu.suspend".equals(name)) { in onItem()
182 } else if ("cpu.idle".equals(name)) { in onItem()
184 } else if ("cpu.active".equals(name)) { in onItem()
[all …]
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DAppLaunchEvent.java63 public boolean equals(Object other) { in equals() method in AppLaunchEvent
65 return equals((AppLaunchEvent) other); in equals()
70 protected boolean equals(AppLaunchEvent other) { in equals() method in AppLaunchEvent
98 public boolean equals(Object other) { in equals() method in AppLaunchEvent.IntentStarted
100 return intent.equals(((IntentStarted)other).intent) && in equals()
101 super.equals(other); in equals()
130 public boolean equals(Object other) { in equals() method in AppLaunchEvent.IntentFailed
132 return super.equals(other); in equals()
155 public boolean equals(Object other) { in equals() method in AppLaunchEvent.BaseWithActivityRecordData
157 return activityRecordSnapshot.equals( in equals()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/
DEuiccNotificationTest.java33 assertTrue(n.equals(n)); in testEqualsHashCode()
34 assertFalse(n.equals(new Object())); in testEqualsHashCode()
37 assertFalse(n.equals(t)); in testEqualsHashCode()
40 assertTrue(n.equals(t)); in testEqualsHashCode()
44 assertFalse(n.equals(t)); in testEqualsHashCode()
48 assertFalse(n.equals(t)); in testEqualsHashCode()
52 assertFalse(n.equals(t)); in testEqualsHashCode()
56 assertFalse(n.equals(t)); in testEqualsHashCode()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java169 if (ARGUMENT_INSERT.equals(operation)) { in parseCommand()
171 } else if (ARGUMENT_DELETE.equals(operation)) { in parseCommand()
173 } else if (ARGUMENT_UPDATE.equals(operation)) { in parseCommand()
175 } else if (ARGUMENT_QUERY.equals(operation)) { in parseCommand()
177 } else if (ARGUMENT_CALL.equals(operation)) { in parseCommand()
179 } else if (ARGUMENT_READ.equals(operation)) { in parseCommand()
181 } else if (ARGUMENT_WRITE.equals(operation)) { in parseCommand()
183 } else if (ARGUMENT_GET_TYPE.equals(operation)) { in parseCommand()
200 if (ARGUMENT_URI.equals(argument)) { in parseInsertCommand()
202 } else if (ARGUMENT_USER.equals(argument)) { in parseInsertCommand()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DImsConferenceState.java163 if (status.equals(STATUS_PENDING)) { in getConnectionStateForStatus()
165 } else if (status.equals(STATUS_DIALING_IN)) { in getConnectionStateForStatus()
167 } else if (status.equals(STATUS_ALERTING) || in getConnectionStateForStatus()
168 status.equals(STATUS_DIALING_OUT)) { in getConnectionStateForStatus()
170 } else if (status.equals(STATUS_ON_HOLD) || in getConnectionStateForStatus()
171 status.equals(STATUS_SEND_ONLY)) { in getConnectionStateForStatus()
173 } else if (status.equals(STATUS_CONNECTED) || in getConnectionStateForStatus()
174 status.equals(STATUS_MUTED_VIA_FOCUS) || in getConnectionStateForStatus()
175 status.equals(STATUS_DISCONNECTING) || in getConnectionStateForStatus()
176 status.equals(STATUS_SEND_RECV)) { in getConnectionStateForStatus()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteArguments.java258 if (arg.equals("--")) { in parseArgs()
285 } else if (arg.equals("--runtime-args")) { in parseArgs()
346 } else if (arg.equals("--invoke-with")) { in parseArgs()
363 } else if (arg.equals("--mount-external-default")) { in parseArgs()
365 } else if (arg.equals("--mount-external-read")) { in parseArgs()
367 } else if (arg.equals("--mount-external-write")) { in parseArgs()
369 } else if (arg.equals("--mount-external-full")) { in parseArgs()
371 } else if (arg.equals("--mount-external-installer")) { in parseArgs()
373 } else if (arg.equals("--mount-external-legacy")) { in parseArgs()
375 } else if (arg.equals("--query-abi-list")) { in parseArgs()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java1029 if (ACTION_PASSWORD_CHANGED.equals(action)) { in onReceive()
1031 } else if (ACTION_PASSWORD_FAILED.equals(action)) { in onReceive()
1033 } else if (ACTION_PASSWORD_SUCCEEDED.equals(action)) { in onReceive()
1035 } else if (ACTION_DEVICE_ADMIN_ENABLED.equals(action)) { in onReceive()
1037 } else if (ACTION_DEVICE_ADMIN_DISABLE_REQUESTED.equals(action)) { in onReceive()
1043 } else if (ACTION_DEVICE_ADMIN_DISABLED.equals(action)) { in onReceive()
1045 } else if (ACTION_PASSWORD_EXPIRING.equals(action)) { in onReceive()
1047 } else if (ACTION_PROFILE_PROVISIONING_COMPLETE.equals(action)) { in onReceive()
1049 } else if (ACTION_CHOOSE_PRIVATE_KEY_ALIAS.equals(action)) { in onReceive()
1055 } else if (ACTION_LOCK_TASK_ENTERING.equals(action)) { in onReceive()
[all …]

12345678910>>...112