Home
last modified time | relevance | path

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

12345678910>>...144

/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/layoutlib/create/src/com/android/tools/layoutlib/create/
DCreateInfo.java408 return LINKED_HASH_MAP.equals(owner) && in isNeeded()
409 "eldest".equals(name) && in isNeeded()
410 VOID_TO_MAP_ENTRY.equals(desc); in isNeeded()
436 return owner.equals("android/content/Context") && in isNeeded()
437 sourceClass.equals("android/view/LayoutInflater") && in isNeeded()
438 name.equals("getClassLoader") && in isNeeded()
439 desc.equals(VOID_TO_CLASS_LOADER); in isNeeded()
451 … return Type.getInternalName(System.class).equals(owner) && name.equals("currentTimeMillis"); in isNeeded()
464 return Type.getInternalName(System.class).equals(owner) && name.equals("nanoTime"); in isNeeded()
477 return Type.getInternalName(System.class).equals(owner) && name.length() == 4 in isNeeded()
[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/am/src/com/android/commands/am/
DAm.java84 if (op.equals("instrument")) { in onRun()
93 if ("all".equals(arg)) { in parseUserArg()
95 } else if ("current".equals(arg) || "cur".equals(arg)) { in parseUserArg()
161 if (opt.equals("-p")) { in runInstrument()
163 } else if (opt.equals("-w")) { in runInstrument()
165 } else if (opt.equals("-r")) { in runInstrument()
167 } else if (opt.equals("-m")) { in runInstrument()
169 } else if (opt.equals("-f")) { in runInstrument()
173 } else if (opt.equals("-e")) { in runInstrument()
177 } else if (opt.equals("--no_window_animation") in runInstrument()
[all …]
/frameworks/base/cmds/sm/src/com/android/commands/sm/
DSm.java73 if ("list-disks".equals(op)) { in run()
75 } else if ("list-volumes".equals(op)) { in run()
77 } else if ("has-adoptable".equals(op)) { in run()
79 } else if ("get-primary-storage-uuid".equals(op)) { in run()
81 } else if ("set-force-adoptable".equals(op)) { in run()
83 } else if ("set-sdcardfs".equals(op)) { in run()
85 } else if ("partition".equals(op)) { in run()
87 } else if ("mount".equals(op)) { in run()
89 } else if ("unmount".equals(op)) { in run()
91 } else if ("format".equals(op)) { in run()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DDumpHelper.java104 if ("-a".equals(opt)) { in doDump()
106 } else if ("-h".equals(opt)) { in doDump()
109 } else if ("--checkin".equals(opt)) { in doDump()
111 } else if ("--all-components".equals(opt)) { in doDump()
113 } else if ("-f".equals(opt)) { in doDump()
115 } else if ("--include-apex".equals(opt)) { in doDump()
117 } else if ("--proto".equals(opt)) { in doDump()
130 if ("android".equals(cmd) || cmd.contains(".")) { in doDump()
135 } else if ("check-permission".equals(cmd)) { in doDump()
167 } else if ("l".equals(cmd) || "libraries".equals(cmd)) { in doDump()
[all …]
/frameworks/base/core/java/android/view/
DInsetsFlags.java45 equals = APPEARANCE_OPAQUE_STATUS_BARS,
49 equals = APPEARANCE_OPAQUE_NAVIGATION_BARS,
53 equals = APPEARANCE_LOW_PROFILE_BARS,
57 equals = APPEARANCE_LIGHT_STATUS_BARS,
61 equals = APPEARANCE_LIGHT_NAVIGATION_BARS,
65 equals = APPEARANCE_SEMI_TRANSPARENT_STATUS_BARS,
69 equals = APPEARANCE_SEMI_TRANSPARENT_NAVIGATION_BARS,
73 equals = APPEARANCE_FORCE_LIGHT_NAVIGATION_BARS,
77 equals = APPEARANCE_TRANSPARENT_CAPTION_BAR_BACKGROUND,
81 equals = APPEARANCE_LIGHT_CAPTION_BARS,
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecordExtractorData.java86 || !Objects.equals(mChannel, r.getChannel()) in hasDiffForRankingLocked()
87 || !Objects.equals(mGroupKey, r.getGroupKey()) in hasDiffForRankingLocked()
88 || !Objects.equals(mOverridePeople, r.getPeopleOverride()) in hasDiffForRankingLocked()
89 || !Objects.equals(mSnoozeCriteria, r.getSnoozeCriteria()) in hasDiffForRankingLocked()
90 || !Objects.equals(mUserSentiment, r.getUserSentiment()) in hasDiffForRankingLocked()
91 || !Objects.equals(mSuppressVisually, r.getSuppressedVisualEffects()) in hasDiffForRankingLocked()
92 || !Objects.equals(mSystemSmartActions, r.getSystemGeneratedSmartActions()) in hasDiffForRankingLocked()
93 || !Objects.equals(mSmartReplies, r.getSmartReplies()) in hasDiffForRankingLocked()
109 || !Objects.equals(mChannel, r.getChannel()) in hasDiffForLoggingLocked()
110 || !Objects.equals(mGroupKey, r.getGroupKey()) in hasDiffForLoggingLocked()
[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/java/android/hardware/usb/
DAccessoryFilter.java77 if ("manufacturer".equals(name)) { in read()
79 } else if ("model".equals(name)) { in read()
81 } else if ("version".equals(name)) { in read()
103 if (mManufacturer != null && !acc.getManufacturer().equals(mManufacturer)) return false; in matches()
104 if (mModel != null && !acc.getModel().equals(mModel)) return false; in matches()
105 return !(mVersion != null && !mVersion.equals(acc.getVersion())); in matches()
116 if (mManufacturer != null && !Objects.equals(accessory.mManufacturer, mManufacturer)) { in contains()
119 if (mModel != null && !Objects.equals(accessory.mModel, mModel)) return false; in contains()
120 return !(mVersion != null && !Objects.equals(accessory.mVersion, mVersion)); in contains()
124 public boolean equals(@Nullable Object obj) { in equals() method in AccessoryFilter
[all …]
DDeviceFilter.java118 if ("manufacturer-name".equals(name)) { in read()
120 } else if ("product-name".equals(name)) { in read()
122 } else if ("serial-number".equals(name)) { in read()
124 } else if ("interface-name".equals(name)) { in read()
141 if ("vendor-id".equals(name)) { in read()
143 } else if ("product-id".equals(name)) { in read()
145 } else if ("class".equals(name)) { in read()
147 } else if ("subclass".equals(name)) { in read()
149 } else if ("protocol".equals(name)) { in read()
200 && (mInterfaceName == null || mInterfaceName.equals(interfaceName)); in matches()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageUserStateTest.java64 assertThat(testUserState.equals(null), is(false)); in testPackageUserState01()
65 assertThat(testUserState.equals(testUserState), is(true)); in testPackageUserState01()
66 assertThat(testUserState.equals(oldUserState), is(true)); in testPackageUserState01()
70 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
74 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
78 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
82 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
86 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
90 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
95 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
[all …]
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java64 if ("stayon".equals(args[1]) && args.length == 3) { in run()
66 if ("true".equals(args[2])) { in run()
72 else if ("false".equals(args[2])) { in run()
74 } else if ("usb".equals(args[2])) { in run()
76 } else if ("ac".equals(args[2])) { in run()
78 } else if ("wireless".equals(args[2])) { in run()
80 } else if ("dock".equals(args[2])) { in run()
98 } else if ("reboot".equals(args[1])) { in run()
112 } else if ("shutdown".equals(args[1])) { in run()
120 } else if ("forcesuspend".equals(args[1])) { in run()
/frameworks/base/services/core/java/com/android/server/media/
DMediaShellCommand.java88 if (cmd.equals("dispatch")) { in onCommand()
90 } else if (cmd.equals("list-sessions")) { in onCommand()
92 } else if (cmd.equals("monitor")) { in onCommand()
94 } else if (cmd.equals("volume")) { in onCommand()
96 } else if (cmd.equals("expire-temp-engaged-sessions")) { in onCommand()
151 if (controller != null && id.equals(controller.getTag())) { in runMonitor()
173 if ("play".equals(cmd)) { in runDispatch()
175 } else if ("pause".equals(cmd)) { in runDispatch()
177 } else if ("play-pause".equals(cmd)) { in runDispatch()
179 } else if ("mute".equals(cmd)) { in runDispatch()
[all …]
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java359 if (uri.equals(ATOM_NAMESPACE)) { in startElement()
360 if (localName.equals("entry")) { in startElement()
369 if (!localName.equals("id") in startElement()
370 && !localName.equals("published") in startElement()
371 && !localName.equals("name")) { in startElement()
383 if (uri.equals(MEDIA_NAMESPACE)) { in startElement()
384 if (localName.equals("thumbnail")) { in startElement()
392 if (localName.equals("content")) { in startElement()
400 if (localName.equals("player")) { in startElement()
408 if (localName.equals("title") in startElement()
[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.java175 if (ARGUMENT_INSERT.equals(operation)) { in parseCommand()
177 } else if (ARGUMENT_DELETE.equals(operation)) { in parseCommand()
179 } else if (ARGUMENT_UPDATE.equals(operation)) { in parseCommand()
181 } else if (ARGUMENT_QUERY.equals(operation)) { in parseCommand()
183 } else if (ARGUMENT_CALL.equals(operation)) { in parseCommand()
185 } else if (ARGUMENT_READ.equals(operation)) { in parseCommand()
187 } else if (ARGUMENT_WRITE.equals(operation)) { in parseCommand()
189 } else if (ARGUMENT_GET_TYPE.equals(operation)) { in parseCommand()
207 if (ARGUMENT_URI.equals(argument)) { in parseInsertCommand()
209 } else if (ARGUMENT_USER.equals(argument)) { in parseInsertCommand()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDeferredDisplayUpdaterDiffTest.java139 return !firstDeferrableFieldsOnly.equals(secondDeferrableFieldsOnly); in hasDeferrableFieldChange()
165 if (type.equals(int.class)) { in setDifferentFieldValues()
168 } else if (type.equals(double.class)) { in setDifferentFieldValues()
171 } else if (type.equals(short.class)) { in setDifferentFieldValues()
174 } else if (type.equals(long.class)) { in setDifferentFieldValues()
177 } else if (type.equals(char.class)) { in setDifferentFieldValues()
180 } else if (type.equals(byte.class)) { in setDifferentFieldValues()
183 } else if (type.equals(float.class)) { in setDifferentFieldValues()
189 } else if (type.equals(String.class)) { in setDifferentFieldValues()
192 } else if (type.equals(DisplayAddress.class)) { in setDifferentFieldValues()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCharSequencesTest.java47 assertTrue(s.equals(copy)); in testCharSequences()
50 assertTrue(s.equals(copy)); in testCharSequences()
53 assertTrue("Hello".equals(hello)); in testCharSequences()
56 assertTrue("l".equals(l)); in testCharSequences()
59 assertTrue("".equals(empty)); in testCharSequences()
61 assertTrue(CharSequences.equals("bob", "bob")); in testCharSequences()
62 assertFalse(CharSequences.equals("b", "bob")); in testCharSequences()
63 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/core/tests/GameManagerTests/src/android/app/
DGameModeConfigurationTest.java40 assertTrue(config.equals(config)); in testEqualsAndHashCode()
44 assertTrue(config.equals(config1)); in testEqualsAndHashCode()
49 assertFalse(config.equals(config2)); in testEqualsAndHashCode()
54 assertFalse(config.equals(config3)); in testEqualsAndHashCode()
56 assertFalse(config2.equals(config3)); in testEqualsAndHashCode()
61 assertFalse(config.equals(config4)); in testEqualsAndHashCode()
66 assertFalse(config.equals(config5)); in testEqualsAndHashCode()
71 assertFalse(config.equals(config6)); in testEqualsAndHashCode()
73 assertFalse(config2.equals(config6)); in testEqualsAndHashCode()
75 assertFalse(config3.equals(config6)); in testEqualsAndHashCode()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DActiveAdmin.java781 if (TAG_POLICIES.equals(tag)) { in readFromXml()
786 } else if (TAG_PASSWORD_QUALITY.equals(tag)) { in readFromXml()
788 } else if (TAG_MIN_PASSWORD_LENGTH.equals(tag)) { in readFromXml()
790 } else if (TAG_PASSWORD_HISTORY_LENGTH.equals(tag)) { in readFromXml()
792 } else if (TAG_MIN_PASSWORD_UPPERCASE.equals(tag)) { in readFromXml()
794 } else if (TAG_MIN_PASSWORD_LOWERCASE.equals(tag)) { in readFromXml()
796 } else if (TAG_MIN_PASSWORD_LETTERS.equals(tag)) { in readFromXml()
798 } else if (TAG_MIN_PASSWORD_NUMERIC.equals(tag)) { in readFromXml()
800 } else if (TAG_MIN_PASSWORD_SYMBOLS.equals(tag)) { in readFromXml()
802 } else if (TAG_MIN_PASSWORD_NONLETTER.equals(tag)) { in readFromXml()
[all …]
/frameworks/base/core/java/android/app/backup/
DFullBackup.java142 public boolean equals(@Nullable Object object) { in equals() method in FullBackup.BackupSchemeId
150 return Objects.equals(mPackageName, that.mPackageName) && in equals()
151 Objects.equals(mBackupDestination, that.mBackupDestination); in equals()
323 if (domainToken.equals(FullBackup.FILES_TREE_TOKEN)) { in tokenToDirectoryPath()
325 } else if (domainToken.equals(FullBackup.DATABASE_TREE_TOKEN)) { in tokenToDirectoryPath()
327 } else if (domainToken.equals(FullBackup.ROOT_TREE_TOKEN)) { in tokenToDirectoryPath()
329 } else if (domainToken.equals(FullBackup.SHAREDPREFS_TREE_TOKEN)) { in tokenToDirectoryPath()
331 } else if (domainToken.equals(FullBackup.CACHE_TREE_TOKEN)) { in tokenToDirectoryPath()
333 } else if (domainToken.equals(FullBackup.NO_BACKUP_TREE_TOKEN)) { in tokenToDirectoryPath()
335 } else if (domainToken.equals(FullBackup.DEVICE_FILES_TREE_TOKEN)) { in tokenToDirectoryPath()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteArguments.java299 if (arg.equals("--")) { in parseArgs()
323 } else if (arg.equals("--runtime-args")) { in parseArgs()
383 } else if (arg.equals("--invoke-with")) { in parseArgs()
401 } else if (arg.equals("--mount-external-default")) { in parseArgs()
403 } else if (arg.equals("--mount-external-installer")) { in parseArgs()
405 } else if (arg.equals("--mount-external-pass-through")) { in parseArgs()
407 } else if (arg.equals("--mount-external-android-writable")) { in parseArgs()
409 } else if (arg.equals("--query-abi-list")) { in parseArgs()
411 } else if (arg.equals("--get-pid")) { in parseArgs()
413 } else if (arg.equals("--boot-completed")) { in parseArgs()
[all …]

12345678910>>...144