Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/base/tests/CoreTests/android/core/
DFloatDoubleTest.java33 assertFalse(f.equals(d)); in testFloatDouble()
34 assertFalse(d.equals(f)); in testFloatDouble()
35 assertFalse(f.equals(o)); in testFloatDouble()
36 assertFalse(d.equals(o)); in testFloatDouble()
37 assertFalse(f.equals(null)); in testFloatDouble()
38 assertFalse(d.equals(null)); in testFloatDouble()
72 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nz))); in testFloat()
74 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nzero))); in testFloat()
76 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pz))); in testFloat()
78 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pzero))); in testFloat()
[all …]
DHashMapTest.java151 if (key.equals("one")) in testKeyIterator()
153 else if (key.equals("two")) in testKeyIterator()
155 else if (key.equals("three")) in testKeyIterator()
157 else if (key.equals("four")) in testKeyIterator()
191 if (value.equals(ONE)) in testValueIterator()
193 else if (value.equals(TWO)) in testValueIterator()
195 else if (value.equals(THREE)) in testValueIterator()
197 else if (value.equals(FOUR)) in testValueIterator()
231 if (entry.toString().equals("one=1")) in testEntryIterator()
233 else if (entry.toString().equals("two=2")) in testEntryIterator()
[all …]
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java95 if (op.equals("start")) { in run()
97 } else if (op.equals("startservice")) { in run()
99 } else if (op.equals("instrument")) { in run()
101 } else if (op.equals("broadcast")) { in run()
103 } else if (op.equals("profile")) { in run()
105 } else if (op.equals("monitor")) { in run()
123 if (opt.equals("-a")) { in makeIntent()
126 } else if (opt.equals("-d")) { in makeIntent()
129 } else if (opt.equals("-t")) { in makeIntent()
132 } else if (opt.equals("-c")) { in makeIntent()
[all …]
/frameworks/base/core/tests/coretests/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/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/telephony/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java262 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
264 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
266 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
268 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
270 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
272 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
331 (sc.equals(SC_CFU) in isServiceCodeCallForwarding()
332 || sc.equals(SC_CFB) || sc.equals(SC_CFNRy) in isServiceCodeCallForwarding()
333 || sc.equals(SC_CFNR) || sc.equals(SC_CF_All) in isServiceCodeCallForwarding()
334 || sc.equals(SC_CF_All_Conditional)); in isServiceCodeCallForwarding()
[all …]
/frameworks/base/core/java/android/net/http/
DHeaders.java179 if (name.equals(TRANSFER_ENCODING)) { in parseHeader()
199 if (name.equals(CONTENT_LEN)) { in parseHeader()
212 if (name.equals(CONTENT_TYPE)) { in parseHeader()
217 if (name.equals(CONTENT_ENCODING)) { in parseHeader()
222 if (name.equals(CONN_DIRECTIVE)) { in parseHeader()
228 if (name.equals(LOCATION)) { in parseHeader()
233 if (name.equals(PROXY_CONNECTION)) { in parseHeader()
239 if (name.equals(WWW_AUTHENTICATE)) { in parseHeader()
244 if (name.equals(PROXY_AUTHENTICATE)) { in parseHeader()
249 if (name.equals(CONTENT_DISPOSITION)) { in parseHeader()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothUuid.java58 return uuid.equals(AudioSource); in isAudioSource()
62 return uuid.equals(AudioSink); in isAudioSink()
66 return uuid.equals(AdvAudioDist); in isAdvAudioDist()
70 return uuid.equals(Handsfree); in isHandsfree()
74 return uuid.equals(HSP); in isHeadset()
78 return uuid.equals(AvrcpController); in isAvrcpController()
82 return uuid.equals(AvrcpTarget); in isAvrcpTarget()
99 if (element.equals(uuid)) return true; in isUuidPresent()
/frameworks/base/wifi/java/android/net/wifi/
DWifiMonitor.java198 if (eventName.equals(connectedEvent)) in run()
200 else if (eventName.equals(disconnectedEvent)) in run()
202 else if (eventName.equals(stateChangeEvent)) in run()
204 else if (eventName.equals(scanResultsEvent)) in run()
206 else if (eventName.equals(linkSpeedEvent)) in run()
208 else if (eventName.equals(terminatingEvent)) in run()
210 else if (eventName.equals(driverStateEvent)) { in run()
295 if (state.equals("STOPPED")) { in handleDriverEvent()
297 } else if (state.equals("STARTED")) { in handleDriverEvent()
299 } else if (state.equals("HANGED")) { in handleDriverEvent()
[all …]
/frameworks/base/core/java/android/view/animation/
DAnimationUtils.java104 if (name.equals("set")) { in createAnimationFromXml()
107 } else if (name.equals("alpha")) { in createAnimationFromXml()
109 } else if (name.equals("scale")) { in createAnimationFromXml()
111 } else if (name.equals("rotate")) { in createAnimationFromXml()
113 } else if (name.equals("translate")) { in createAnimationFromXml()
173 if ("layoutAnimation".equals(name)) { in createLayoutAnimationFromXml()
175 } else if ("gridLayoutAnimation".equals(name)) { in createLayoutAnimationFromXml()
293 if (name.equals("linearInterpolator")) { in createInterpolatorFromXml()
295 } else if (name.equals("accelerateInterpolator")) { in createInterpolatorFromXml()
297 } else if (name.equals("decelerateInterpolator")) { in createInterpolatorFromXml()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLaunchpadActivity.java174 if (LIFECYCLE_BASIC.equals(action)) { in onCreate()
177 } else if (LIFECYCLE_SCREEN.equals(action)) { in onCreate()
182 } else if (LIFECYCLE_DIALOG.equals(action)) { in onCreate()
186 } else if (LIFECYCLE_FINISH_CREATE.equals(action)) { in onCreate()
194 } else if (LIFECYCLE_FINISH_START.equals(action)) { in onCreate()
231 if (LAUNCH.equals(action)) { in onResume()
238 } else if (FORWARD_RESULT.equals(action)) { in onResume()
243 } else if (BAD_PARCELABLE.equals(action)) { in onResume()
249 } else if (BROADCAST_REGISTERED.equals(action)) { in onResume()
254 } else if (BROADCAST_LOCAL.equals(action)) { in onResume()
[all …]
DTestedScreen.java42 if (LaunchpadActivity.FORWARD_RESULT.equals(getIntent().getAction())) { in onCreate()
50 } else if (DELIVER_RESULT.equals(getIntent().getAction())) { in onCreate()
56 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in onCreate()
71 if (CLEAR_TASK.equals(getIntent().getAction())) { in onResume()
99 if (CLEAR_TASK.equals(getIntent().getAction())) {
112 if (WAIT_BEFORE_FINISH.equals(getIntent().getAction())) { in queueIdle()
115 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in queueIdle()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java47 if ("stayon".equals(args[1]) && args.length == 3) { in run()
49 if ("true".equals(args[2])) { in run()
53 else if ("false".equals(args[2])) { in run()
55 } else if ("usb".equals(args[2])) { in run()
57 } else if ("ac".equals(args[2])) { in run()
/frameworks/base/opengl/tools/glgen/src/
DCType.java58 return baseType.equals("GLvoid") || in isVoid()
59 baseType.equals("void"); in isVoid()
63 return isConst && isPointer && baseType.equals("char"); in isConstCharPointer()
98 public boolean equals(Object o) { in equals() method in CType
101 return baseType.equals(c.baseType) && in equals()
DJniCodeEmitter.java44 if (baseType.equals("int")) { in getJniName()
46 } else if (baseType.equals("float")) { in getJniName()
48 } else if (baseType.equals("boolean")) { in getJniName()
50 } else if (baseType.equals("short")) { in getJniName()
52 } else if (baseType.equals("long")) { in getJniName()
54 } else if (baseType.equals("byte")) { in getJniName()
56 } else if (baseType.equals("String")) { in getJniName()
58 } else if (baseType.equals("void")) { in getJniName()
222 if (checks[index].equals("return")) { in isNullAllowed()
226 } else if (checks[index].equals("ifcheck")) { in isNullAllowed()
[all …]
DCFunc.java75 if (name.equals(argNames.get(i))) { in getArgIndex()
117 if (ftypeName.equals("const")) { in parseCFunc()
124 if (fname.equals("*")) { in parseCFunc()
135 if (tok.equals("(")) { in parseCFunc()
138 if (tok.equals(")")) { in parseCFunc()
147 if (argTypeName.equals("const")) { in parseCFunc()
153 if (argTypeName.equals("void")) { in parseCFunc()
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
DPropertyNode.java122 public boolean equals(Object obj) { in equals() method in PropertyNode
129 if (propName == null || !propName.equals(node.propName)) { in equals()
131 } else if (!paramMap_TYPE.equals(node.paramMap_TYPE)) { in equals()
133 } else if (!paramMap_TYPE.equals(node.paramMap_TYPE)) { in equals()
135 } else if (!propGroupSet.equals(node.propGroupSet)) { in equals()
139 if (propValue_bytes != null && Arrays.equals(propValue_bytes, node.propValue_bytes)) { in equals()
142 if (!propValue.equals(node.propValue)) { in equals()
150 return (propValue_vector.equals(node.propValue_vector) || in equals()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java398 if (!Arrays.equals(mStateSet, stateSet)) { in setState()
748 if (name.equals("selector")) { in createFromXmlInner()
750 } else if (name.equals("level-list")) { in createFromXmlInner()
752 } else if (name.equals("layer-list")) { in createFromXmlInner()
754 } else if (name.equals("transition")) { in createFromXmlInner()
756 } else if (name.equals("color")) { in createFromXmlInner()
758 } else if (name.equals("shape")) { in createFromXmlInner()
760 } else if (name.equals("scale")) { in createFromXmlInner()
762 } else if (name.equals("clip")) { in createFromXmlInner()
764 } else if (name.equals("rotate")) { in createFromXmlInner()
[all …]
/frameworks/base/core/java/android/pim/vcard/
DVCardEntry.java96 public boolean equals(Object obj) { in equals() method in VCardEntry.PhoneData
101 return (type == phoneData.type && data.equals(phoneData.data) && in equals()
102 label.equals(phoneData.label) && isPrimary == phoneData.isPrimary); in equals()
126 public boolean equals(Object obj) { in equals() method in VCardEntry.EmailData
131 return (type == emailData.type && data.equals(emailData.data) && in equals()
132 label.equals(emailData.label) && isPrimary == emailData.isPrimary); in equals()
197 public boolean equals(Object obj) { in equals() method in VCardEntry.PostalData
202 return (Arrays.equals(dataArray, postalData.dataArray) && in equals()
275 public boolean equals(Object obj) { in equals() method in VCardEntry.OrganizationData
281 TextUtils.equals(companyName, organization.companyName) && in equals()
[all …]
/frameworks/base/core/java/android/webkit/
DGeolocationService.java117 if (LocationManager.NETWORK_PROVIDER.equals(providerName)) { in onStatusChanged()
119 } else if (LocationManager.GPS_PROVIDER.equals(providerName)) { in onStatusChanged()
133 if (LocationManager.NETWORK_PROVIDER.equals(providerName)) { in onProviderEnabled()
135 } else if (LocationManager.GPS_PROVIDER.equals(providerName)) { in onProviderEnabled()
146 if (LocationManager.NETWORK_PROVIDER.equals(providerName)) { in onProviderDisabled()
148 } else if (LocationManager.GPS_PROVIDER.equals(providerName)) { in onProviderDisabled()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java55 if (value.equals(options[i])) in convertValueToList()
71 if (value.equals("1") in convertValueToBoolean()
72 || value.equals("true") in convertValueToBoolean()
73 || value.equals("TRUE")) in convertValueToBoolean()
525 if (parser.getName().equals(endTag)) { in readThisMapXml()
564 if (parser.getName().equals(endTag)) { in readThisListXml()
612 if (parser.getName().equals("item")) { in readThisIntArrayXml()
628 if (parser.getName().equals(endTag)) { in readThisIntArrayXml()
630 } else if (parser.getName().equals("item")) { in readThisIntArrayXml()
692 if (tagName.equals("null")) { in readThisValueXml()
[all …]
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java86 if ("list".equals(op)) { in run()
91 if ("path".equals(op)) { in run()
96 if ("install".equals(op)) { in run()
101 if ("uninstall".equals(op)) { in run()
106 if ("clear".equals(op)) { in run()
111 if ("enable".equals(op)) { in run()
116 if ("disable".equals(op)) { in run()
121 if ("setInstallLocation".equals(op)) { in run()
126 if ("getInstallLocation".equals(op)) { in run()
173 if ("package".equals(type) || "packages".equals(type)) { in runList()
[all …]
/frameworks/base/services/java/com/android/server/usb/
DUsbDeviceSettingsManager.java112 if ("manufacturer".equals(name)) { in read()
114 } else if ("model".equals(name)) { in read()
116 } else if ("version".equals(name)) { in read()
138 if (mManufacturer != null && !acc.getManufacturer().equals(mManufacturer)) return false; in matches()
139 if (mModel != null && !acc.getModel().equals(mModel)) return false; in matches()
140 if (mVersion != null && !acc.getVersion().equals(mVersion)) return false; in matches()
145 if (mManufacturer != null && !f.mManufacturer.equals(mManufacturer)) return false; in matches()
146 if (mModel != null && !f.mModel.equals(mModel)) return false; in matches()
147 if (mVersion != null && !f.mVersion.equals(mVersion)) return false; in matches()
152 public boolean equals(Object obj) { in equals() method in UsbDeviceSettingsManager.AccessoryFilter
[all …]
/frameworks/base/core/java/com/android/internal/os/storage/
DExternalStorageFormatter.java76 if (FORMAT_AND_FACTORY_RESET.equals(intent.getAction())) { in onStartCommand()
137 if (Environment.MEDIA_MOUNTED.equals(status) in updateProgressState()
138 || Environment.MEDIA_MOUNTED_READ_ONLY.equals(status)) { in updateProgressState()
147 } else if (Environment.MEDIA_NOFS.equals(status) in updateProgressState()
148 || Environment.MEDIA_UNMOUNTED.equals(status) in updateProgressState()
149 || Environment.MEDIA_UNMOUNTABLE.equals(status)) { in updateProgressState()
190 } else if (Environment.MEDIA_BAD_REMOVAL.equals(status)) { in updateProgressState()
192 } else if (Environment.MEDIA_CHECKING.equals(status)) { in updateProgressState()
194 } else if (Environment.MEDIA_REMOVED.equals(status)) { in updateProgressState()
196 } else if (Environment.MEDIA_SHARED.equals(status)) { in updateProgressState()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java263 if (ACTION_PASSWORD_CHANGED.equals(action)) { in onReceive()
265 } else if (ACTION_PASSWORD_FAILED.equals(action)) { in onReceive()
267 } else if (ACTION_PASSWORD_SUCCEEDED.equals(action)) { in onReceive()
269 } else if (ACTION_DEVICE_ADMIN_ENABLED.equals(action)) { in onReceive()
271 } else if (ACTION_DEVICE_ADMIN_DISABLE_REQUESTED.equals(action)) { in onReceive()
277 } else if (ACTION_DEVICE_ADMIN_DISABLED.equals(action)) { in onReceive()

12345678910>>...20