/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/ |
D | RequestSync.java | 138 if (opt.equals("-h") || opt.equals("--help")) { in parseArgs() 141 } else if (opt.equals("-n") || opt.equals("--account-name")) { in parseArgs() 143 } else if (opt.equals("-t") || opt.equals("--account-type")) { in parseArgs() 145 } else if (opt.equals("-a") || opt.equals("--authority")) { in parseArgs() 147 } else if (opt.equals("--is") || opt.equals("--ignore-settings")) { in parseArgs() 149 } else if (opt.equals("--ib") || opt.equals("--ignore-backoff")) { in parseArgs() 151 } else if (opt.equals("--dd") || opt.equals("--discard-deletions")) { in parseArgs() 153 } else if (opt.equals("--nr") || opt.equals("--no-retry")) { in parseArgs() 155 } else if (opt.equals("--ex") || opt.equals("--expedited")) { in parseArgs() 157 } else if (opt.equals("-i") || opt.equals("--initialize")) { in parseArgs() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageUserStateTest.java | 43 assertThat(testUserState.equals(null), is(false)); in testPackageUserState01() 44 assertThat(testUserState.equals(testUserState), is(true)); in testPackageUserState01() 45 assertThat(testUserState.equals(oldUserState), is(true)); in testPackageUserState01() 49 assertThat(testUserState.equals(oldUserState), is(false)); 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() [all …]
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/ |
D | JavaClass.java | 74 return boolean.class.equals(mClass); in isBoolean() 79 return char.class.equals(mClass); in isChar() 84 return byte.class.equals(mClass); in isByte() 89 return short.class.equals(mClass); in isShort() 94 return int.class.equals(mClass); in isInt() 99 return long.class.equals(mClass); in isLong() 104 return float.class.equals(mClass); in isFloat() 109 return double.class.equals(mClass); in isDouble() 139 return void.class.equals(mClass); in isVoid() 147 if (Integer.class.equals(mClass)) { in unbox() [all …]
|
D | JavaTypeUtil.java | 49 if (boolean.class.equals(klass)) { in getDescription() 52 if (byte.class.equals(klass)) { in getDescription() 55 if (short.class.equals(klass)) { in getDescription() 58 if (int.class.equals(klass)) { in getDescription() 61 if (long.class.equals(klass)) { in getDescription() 64 if (char.class.equals(klass)) { in getDescription() 67 if (float.class.equals(klass)) { in getDescription() 70 if (double.class.equals(klass)) { in getDescription() 73 if (void.class.equals(klass)) { in getDescription()
|
/frameworks/opt/net/lowpan/command/java/com/android/commands/lowpan/ |
D | LowpanCtl.java | 139 if (op.equals("-I") || op.equals("--interface")) { in onRun() 143 } else if (op.equals("status") || op.equals("stat")) { in onRun() 146 } else if (op.equals("scan") || op.equals("netscan") || op.equals("ns")) { in onRun() 149 } else if (op.equals("attach")) { in onRun() 152 } else if (op.equals("enable")) { in onRun() 155 } else if (op.equals("disable")) { in onRun() 158 } else if (op.equals("show-credential")) { in onRun() 161 } else if (op.equals("join")) { in onRun() 164 } else if (op.equals("form")) { in onRun() 167 } else if (op.equals("leave")) { in onRun() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | RetryManagerTest.java | 182 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnNoRetry() 204 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 209 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 214 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 221 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 226 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 231 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 236 assertTrue(nextApn.equals(mApn1)); in testRetryManagerOneApnTwoRetries() 259 assertTrue(nextApn.equals(mApn1)); in testRetryManagerTwoApnsOneRetry() 264 assertTrue(nextApn.equals(mApn2)); in testRetryManagerTwoApnsOneRetry() [all …]
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
D | ResourceExpr.java | 56 if ("android".equals(packageName)) { in ResourceExpr() 111 if ("plurals".equals(mResourceType)) { in resolveType() 159 return !mTarget.isBinder() && !("anim".equals(mResourceType) || in requiresView() 160 "animator".equals(mResourceType) || in requiresView() 161 "id".equals(mResourceType) || in requiresView() 162 "interpolator".equals(mResourceType) || in requiresView() 163 "layout".equals(mResourceType) || in requiresView() 164 "stateListAnimator".equals(mResourceType) || in requiresView() 165 "transition".equals(mResourceType)); in requiresView() 174 …if ("anim".equals(mResourceType)) return "android.view.animation.AnimationUtils.loadAnimation(" + … in toJava() [all …]
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCameraCapabilities.java | 132 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/base/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 67 if ("list-disks".equals(op)) { in run() 69 } else if ("list-volumes".equals(op)) { in run() 71 } else if ("has-adoptable".equals(op)) { in run() 73 } else if ("get-primary-storage-uuid".equals(op)) { in run() 75 } else if ("set-force-adoptable".equals(op)) { in run() 77 } else if ("set-sdcardfs".equals(op)) { in run() 79 } else if ("partition".equals(op)) { in run() 81 } else if ("mount".equals(op)) { in run() 83 } else if ("unmount".equals(op)) { in run() 85 } else if ("format".equals(op)) { in run() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | ReplaceMethodCallsAdapter.java | 66 return JAVA_LANG_SYSTEM.equals(owner) && "arraycopy".equals(name) && in METHOD_REPLACERS.add() 84 return JAVA_LOCALE_CLASS.equals(owner) && "()Ljava/lang/String;".equals(desc) && in METHOD_REPLACERS.add() 85 ("toLanguageTag".equals(name) || "getScript".equals(name)); in METHOD_REPLACERS.add() 108 return JAVA_LOCALE_CLASS.equals(owner) && in METHOD_REPLACERS.add() 109 ("adjustLanguageCode".equals(name) && desc.equals(STRING_TO_STRING) || in METHOD_REPLACERS.add() 110 "forLanguageTag".equals(name) && desc.equals(STRING_TO_LOCALE) || in METHOD_REPLACERS.add() 111 "getDefault".equals(name) && desc.equals(VOID_TO_LOCALE)); in METHOD_REPLACERS.add() 124 return JAVA_LANG_SYSTEM.equals(owner) && name.length() == 4 in METHOD_REPLACERS.add() 130 assert mi.desc.equals("(Ljava/lang/String;Ljava/lang/Throwable;)V") in METHOD_REPLACERS.add() 131 || mi.desc.equals("(Ljava/lang/String;)V"); in METHOD_REPLACERS.add() [all …]
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
D | BluetoothMapBmessageParser.java | 124 if (!prop.equals(BEGIN_BMSG)) { in parse() 130 while (prop.equals(BEGIN_VCARD)) { in parse() 141 if (!prop.equals(BEGIN_BENV)) { in parse() 147 if (!prop.equals(END_BMSG)) { in parse() 176 if (prop.name.equals("VERSION")) { in parseProperties() 179 } else if (prop.name.equals("STATUS")) { in parseProperties() 181 if (prop.value.equals(s.toString())) { in parseProperties() 187 } else if (prop.name.equals("TYPE")) { in parseProperties() 189 if (prop.value.equals(t.toString())) { in parseProperties() 195 } else if (prop.name.equals("FOLDER")) { in parseProperties() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSFactoryImpl.java | 55 if (tileSpec.equals("wifi")) return new WifiTile(mHost); in createTile() 56 else if (tileSpec.equals("bt")) return new BluetoothTile(mHost); in createTile() 57 else if (tileSpec.equals("cell")) return new CellularTile(mHost); in createTile() 58 else if (tileSpec.equals("dnd")) return new DndTile(mHost); in createTile() 59 else if (tileSpec.equals("inversion")) return new ColorInversionTile(mHost); in createTile() 60 else if (tileSpec.equals("airplane")) return new AirplaneModeTile(mHost); in createTile() 61 else if (tileSpec.equals("work")) return new WorkModeTile(mHost); in createTile() 62 else if (tileSpec.equals("rotation")) return new RotationLockTile(mHost); in createTile() 63 else if (tileSpec.equals("flashlight")) return new FlashlightTile(mHost); in createTile() 64 else if (tileSpec.equals("location")) return new LocationTile(mHost); in createTile() [all …]
|
/frameworks/base/cmds/bu/src/com/android/commands/bu/ |
D | Backup.java | 55 if (arg.equals("backup")) { in run() 57 } else if (arg.equals("restore")) { in run() 78 if ("-apk".equals(arg)) { in doBackup() 80 } else if ("-noapk".equals(arg)) { in doBackup() 82 } else if ("-obb".equals(arg)) { in doBackup() 84 } else if ("-noobb".equals(arg)) { in doBackup() 86 } else if ("-shared".equals(arg)) { in doBackup() 88 } else if ("-noshared".equals(arg)) { in doBackup() 90 } else if ("-system".equals(arg)) { in doBackup() 92 } else if ("-nosystem".equals(arg)) { in doBackup() [all …]
|
/frameworks/native/opengl/tools/glgen/src/ |
D | CType.java | 57 if(baseType.equals("EGLContext") in isEGLHandle() 58 || baseType.equals("EGLConfig") in isEGLHandle() 59 || baseType.equals("EGLSurface") in isEGLHandle() 60 || baseType.equals("EGLDisplay")) { in isEGLHandle() 68 return baseType.equals("GLvoid") || in isVoid() 69 baseType.equals("void"); in isVoid() 74 (baseType.equals("char") || baseType.equals("GLchar")); in isConstCharPointer() 109 public boolean equals(Object o) { in equals() method in CType 112 return baseType.equals(c.baseType) && in equals()
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | Objects.java | 56 return Arrays.equals((boolean[]) a, (boolean[]) b); in deepEquals() 58 return Arrays.equals((byte[]) a, (byte[]) b); in deepEquals() 60 return Arrays.equals((char[]) a, (char[]) b); in deepEquals() 62 return Arrays.equals((double[]) a, (double[]) b); in deepEquals() 64 return Arrays.equals((float[]) a, (float[]) b); in deepEquals() 66 return Arrays.equals((int[]) a, (int[]) b); in deepEquals() 68 return Arrays.equals((long[]) a, (long[]) b); in deepEquals() 70 return Arrays.equals((short[]) a, (short[]) b); in deepEquals() 72 return a.equals(b); in deepEquals() 78 public static boolean equals(Object a, Object b) { in equals() method in Objects [all …]
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | Media.java | 91 if (op.equals("dispatch")) { in onRun() 93 } else if (op.equals("list-sessions")) { in onRun() 95 } else if (op.equals("monitor")) { in onRun() 97 } else if (op.equals("volume")) { in onRun() 125 if (controller != null && id.equals(controller.getTag())) { in runMonitor() 146 if ("play".equals(cmd)) { in runDispatch() 148 } else if ("pause".equals(cmd)) { in runDispatch() 150 } else if ("play-pause".equals(cmd)) { in runDispatch() 152 } else if ("mute".equals(cmd)) { in runDispatch() 154 } else if ("headsethook".equals(cmd)) { in runDispatch() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | FullBackup.java | 240 if (domainToken.equals(FullBackup.FILES_TREE_TOKEN)) { in tokenToDirectoryPath() 242 } else if (domainToken.equals(FullBackup.DATABASE_TREE_TOKEN)) { in tokenToDirectoryPath() 244 } else if (domainToken.equals(FullBackup.ROOT_TREE_TOKEN)) { in tokenToDirectoryPath() 246 } else if (domainToken.equals(FullBackup.SHAREDPREFS_TREE_TOKEN)) { in tokenToDirectoryPath() 248 } else if (domainToken.equals(FullBackup.CACHE_TREE_TOKEN)) { in tokenToDirectoryPath() 250 } else if (domainToken.equals(FullBackup.NO_BACKUP_TREE_TOKEN)) { in tokenToDirectoryPath() 252 } else if (domainToken.equals(FullBackup.DEVICE_FILES_TREE_TOKEN)) { in tokenToDirectoryPath() 254 } else if (domainToken.equals(FullBackup.DEVICE_DATABASE_TREE_TOKEN)) { in tokenToDirectoryPath() 256 } else if (domainToken.equals(FullBackup.DEVICE_ROOT_TREE_TOKEN)) { in tokenToDirectoryPath() 258 } else if (domainToken.equals(FullBackup.DEVICE_SHAREDPREFS_TREE_TOKEN)) { in tokenToDirectoryPath() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DemoStatusIcons.java | 53 if (!mDemoMode && command.equals(COMMAND_ENTER)) { in dispatchDemoCommand() 57 } else if (mDemoMode && command.equals(COMMAND_EXIT)) { in dispatchDemoCommand() 61 } else if (mDemoMode && command.equals(COMMAND_STATUS)) { in dispatchDemoCommand() 64 int iconId = volume.equals("vibrate") ? R.drawable.stat_sys_ringer_vibrate in dispatchDemoCommand() 70 int iconId = zen.equals("important") ? R.drawable.stat_sys_zen_important in dispatchDemoCommand() 71 : zen.equals("none") ? R.drawable.stat_sys_zen_none in dispatchDemoCommand() 77 int iconId = bt.equals("disconnected") ? R.drawable.stat_sys_data_bluetooth in dispatchDemoCommand() 78 : bt.equals("connected") ? R.drawable.stat_sys_data_bluetooth_connected in dispatchDemoCommand() 84 int iconId = location.equals("show") ? PhoneStatusBarPolicy.LOCATION_STATUS_ICON_ID in dispatchDemoCommand() 90 int iconId = alarm.equals("show") ? R.drawable.stat_sys_alarm in dispatchDemoCommand() [all …]
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | SystemProperties_Delegate.java | 82 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/core/tests/utiltests/src/com/android/internal/util/ |
D | CharSequencesTest.java | 32 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/ |
D | SafeSaxTest.java | 364 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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | ApnSetting.java | 478 } else if (type.equals(PhoneConstants.APN_TYPE_ALL)) { in isMeteredApnType() 514 public boolean equals(Object o) { in equals() method in ApnSetting 521 return carrier.equals(other.carrier) in equals() 523 && numeric.equals(other.numeric) in equals() 524 && apn.equals(other.apn) in equals() 525 && proxy.equals(other.proxy) in equals() 526 && mmsc.equals(other.mmsc) in equals() 527 && mmsProxy.equals(other.mmsProxy) in equals() 528 && TextUtils.equals(mmsPort, other.mmsPort) in equals() 529 && port.equals(other.port) in equals() [all …]
|
/frameworks/base/telephony/java/com/android/ims/ |
D | ImsConferenceState.java | 154 if (status.equals(STATUS_PENDING)) { in getConnectionStateForStatus() 156 } else if (status.equals(STATUS_DIALING_IN)) { in getConnectionStateForStatus() 158 } else if (status.equals(STATUS_ALERTING) || in getConnectionStateForStatus() 159 status.equals(STATUS_DIALING_OUT)) { in getConnectionStateForStatus() 161 } else if (status.equals(STATUS_ON_HOLD) || in getConnectionStateForStatus() 162 status.equals(STATUS_SEND_ONLY)) { in getConnectionStateForStatus() 164 } else if (status.equals(STATUS_CONNECTED) || in getConnectionStateForStatus() 165 status.equals(STATUS_MUTED_VIA_FOCUS) || in getConnectionStateForStatus() 166 status.equals(STATUS_DISCONNECTING) || in getConnectionStateForStatus() 167 status.equals(STATUS_SEND_RECV)) { in getConnectionStateForStatus() [all …]
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
D | Content.java | 170 if (ARGUMENT_INSERT.equals(operation)) { in parseCommand() 172 } else if (ARGUMENT_DELETE.equals(operation)) { in parseCommand() 174 } else if (ARGUMENT_UPDATE.equals(operation)) { in parseCommand() 176 } else if (ARGUMENT_QUERY.equals(operation)) { in parseCommand() 178 } else if (ARGUMENT_CALL.equals(operation)) { in parseCommand() 180 } else if (ARGUMENT_READ.equals(operation)) { in parseCommand() 182 } else if (ARGUMENT_GET_TYPE.equals(operation)) { in parseCommand() 199 if (ARGUMENT_URI.equals(argument)) { in parseInsertCommand() 201 } else if (ARGUMENT_USER.equals(argument)) { in parseInsertCommand() 203 } else if (ARGUMENT_BIND.equals(argument)) { in parseInsertCommand() [all …]
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
D | Am.java | 79 if (op.equals("instrument")) { in onRun() 88 if ("all".equals(arg)) { in parseUserArg() 90 } else if ("current".equals(arg) || "cur".equals(arg)) { in parseUserArg() 155 if (opt.equals("-p")) { in runInstrument() 157 } else if (opt.equals("-w")) { in runInstrument() 159 } else if (opt.equals("-r")) { in runInstrument() 161 } else if (opt.equals("-m")) { in runInstrument() 163 } else if (opt.equals("-e")) { in runInstrument() 167 } else if (opt.equals("--no_window_animation") in runInstrument() 168 || opt.equals("--no-window-animation")) { in runInstrument() [all …]
|