/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 39 private static int parseImm(String line, String arg) { in parseImm() argument 40 if (!arg.startsWith("#0x")) { in parseImm() 43 final long val_long = Long.parseLong(arg.substring(3), 16); in parseImm() 63 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine() local 72 if (arg.equals("4*([14]&0xf)")) { in convertLine() 79 if (arg.equals("#pktlen")) { in convertLine() 86 if (arg.startsWith("#0x")) { in convertLine() 90 gen.addLoadImmediate(dest, parseImm(line, arg)); in convertLine() 93 if (arg.startsWith("M[")) { in convertLine() 97 int memory_slot = Integer.parseInt(arg.substring(2, arg.length() - 1)); in convertLine() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 572 String[] arg = line.split(":"); in parse() local 573 if (arg != null && arg.length == 2) { in parse() 574 if (arg[1].trim().equals("READ")) { in parse() 576 } else if (arg[1].trim().equals("UNREAD")) { in parse() 579 throw new IllegalArgumentException("Wrong value in 'STATUS': " + arg[1]); in parse() 586 String[] arg = line.split(":"); in parse() local 587 if (arg != null && arg.length == 2) { in parse() 588 String value = arg[1].trim(); in parse() 594 String[] arg = line.split(":"); in parse() local 595 if (arg != null && arg.length == 2) { in parse() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | DictionaryMaker.java | 128 final String arg = args.get(0); in Arguments() local 130 if (arg.charAt(0) == '-') { in Arguments() 131 if (OPTION_VERSION_2.equals(arg)) { in Arguments() 133 } else if (OPTION_VERSION_4.equals(arg)) { in Arguments() 135 } else if (OPTION_HELP.equals(arg)) { in Arguments() 140 throw new IllegalArgumentException("Option " + arg + " is unknown or " in Arguments() 145 if (OPTION_INPUT_SOURCE.equals(arg)) { in Arguments() 154 } else if (OPTION_OUTPUT_BINARY.equals(arg)) { in Arguments() 156 } else if (OPTION_OUTPUT_COMBINED.equals(arg)) { in Arguments() 158 } else if (OPTION_CODE_POINT_TABLE.equals(arg)) { in Arguments() [all …]
|
D | Test.java | 92 final String arg = mArgs[i++]; in run() local 93 if ("-s".equals(arg)) { in run() 95 } else if ("-m".equals(arg)) { in run() 97 } else if ("-n".equals(arg)) { in run() 100 mUsedTestMethods.add(arg); in run()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | DynamicShortcutsTests.java | 160 final List<ShortcutInfo> arg = updateArgs.getValue(); in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() local 161 assertThat(arg.size(), equalTo(3)); in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 162 assertThat(arg.get(0), in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 164 assertThat(arg.get(1), in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 166 assertThat(arg.get(2), in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 187 final List<ShortcutInfo> arg = updateArgs.getValue(); in test_refresh_setsDynamicShortcutsToStrequentContacts() local 188 assertThat(arg.size(), equalTo(3)); in test_refresh_setsDynamicShortcutsToStrequentContacts() 189 assertThat(arg.get(0), isShortcutForContact(1l, "starred_key", "starred name")); in test_refresh_setsDynamicShortcutsToStrequentContacts() 190 assertThat(arg.get(1), isShortcutForContact(2l, "freq_key", "freq name")); in test_refresh_setsDynamicShortcutsToStrequentContacts() 191 assertThat(arg.get(2), isShortcutForContact(3l, "starred_2", "Starred Two")); in test_refresh_setsDynamicShortcutsToStrequentContacts() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | LeaveBehindData.java | 41 public void writeToParcel(Parcel arg, int flags) { in writeToParcel() argument 42 arg.writeParcelable(data, 0); in writeToParcel() 43 arg.writeParcelable(op, 0); in writeToParcel() 44 arg.writeInt(height); in writeToParcel() 47 private LeaveBehindData(Parcel arg, ClassLoader loader) { in LeaveBehindData() argument 48 data = arg.readParcelable(loader); in LeaveBehindData() 49 op = arg.readParcelable(loader); in LeaveBehindData() 50 height = arg.readInt(); in LeaveBehindData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | NetworkScorerPickerTest.java | 110 ArgumentCaptor<RadioButtonPreference> arg = in testUpdateCandidates_noValidScorers_nonePreference() local 115 verify(mPreferenceScreen).addPreference(arg.capture()); in testUpdateCandidates_noValidScorers_nonePreference() 116 assertThat(arg.getValue().getTitle()) in testUpdateCandidates_noValidScorers_nonePreference() 118 assertThat(arg.getValue().isChecked()).isTrue(); in testUpdateCandidates_noValidScorers_nonePreference() 131 ArgumentCaptor<RadioButtonPreference> arg = in testUpdateCandidates_validScorers_noActiveScorer() local 136 verify(mPreferenceScreen, times(2)).addPreference(arg.capture()); in testUpdateCandidates_validScorers_noActiveScorer() 138 final RadioButtonPreference nonePref = arg.getAllValues().get(0); in testUpdateCandidates_validScorers_noActiveScorer() 142 final RadioButtonPreference testScorerPref = arg.getAllValues().get(1); in testUpdateCandidates_validScorers_noActiveScorer() 156 ArgumentCaptor<RadioButtonPreference> arg = in testUpdateCandidates_validScorer() local 163 verify(mPreferenceScreen, times(2)).addPreference(arg.capture()); in testUpdateCandidates_validScorer() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 91 ArgumentCaptor<String[]> arg = ArgumentCaptor.forClass(String[].class); in testUpdateState() local 92 verify(pref).setEntries(arg.capture()); in testUpdateState() 95 CharSequence[] entries = arg.getValue(); in testUpdateState() 98 verify(pref).setEntryValues(arg.capture()); in testUpdateState() 99 CharSequence[] entryValues = arg.getValue(); in testUpdateState() 130 ArgumentCaptor<String[]> arg = ArgumentCaptor.forClass(String[].class); in testUpdateState_withStaticOverlay() local 131 verify(pref).setEntries(arg.capture()); in testUpdateState_withStaticOverlay() 134 CharSequence[] entries = arg.getValue(); in testUpdateState_withStaticOverlay() 137 verify(pref).setEntryValues(arg.capture()); in testUpdateState_withStaticOverlay() 138 CharSequence[] entryValues = arg.getValue(); in testUpdateState_withStaticOverlay()
|
/packages/services/Telephony/src/com/android/phone/ |
D | TelephonyShellCommand.java | 174 String arg = getNextArg(); in handleImsCommand() local 175 if (arg == null) { in handleImsCommand() 180 switch (arg) { in handleImsCommand() 284 String arg = getNextArg(); in handleNumberVerificationCommand() local 285 if (arg == null) { in handleNumberVerificationCommand() 294 switch (arg) { in handleNumberVerificationCommand() 480 String arg = getNextArg(); in handleSmsCommand() local 481 if (arg == null) { in handleSmsCommand() 487 switch (arg) { in handleSmsCommand() 498 getErrPrintWriter().println("Unknown command " + arg); in handleSmsCommand()
|
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/ |
D | LiveDataFunctionsTest.java | 357 testOperator(arg -> () -> in testIfThenElse_liveDataParams_truthTable() 358 ifThenElse(arg.mPredicate, Boolean::booleanValue, arg.mTrueData, in testIfThenElse_liveDataParams_truthTable() 359 arg.mFalseData), in testIfThenElse_liveDataParams_truthTable() 483 testOperator(arg -> () -> ifThenElse(arg.mPredicate, Boolean::booleanValue, arg.mTrueValue, in testIfThenElse_valueParams_truthTable() 484 arg.mFalseValue), in testIfThenElse_valueParams_truthTable() 827 for (Pair<P, R> arg : args) { in testOperator() 828 testOperator(ops.apply(arg.first), arg.second); in testOperator() 835 testOperator(arg -> () -> op.apply(arg), args); in testUnaryOperator() 842 testOperator(arg -> () -> op.apply(arg.first, arg.second), args); in testBinaryOperator() 862 for (Pair<LiveData<A>, LiveData<B>> arg : args) { in checkUninitializedBinary() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | ConfirmFragment.java | 64 Bundle arg = (getArguments() != null) ? getArguments() : savedInstanceState; in onCreateDialog() local 66 mTarget = arg.getParcelable(Shared.EXTRA_DOC); in onCreateDialog() 67 mType = arg.getInt(CONFIRM_TYPE); in onCreateDialog() 138 Bundle arg = new Bundle(); in show() local 139 arg.putParcelable(Shared.EXTRA_DOC, overwriteTarget); in show() 140 arg.putInt(CONFIRM_TYPE, type); in show() 144 f.setArguments(arg); in show()
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | MakeKeyboardText.java | 40 String arg = null; in Options() local 44 arg = args.removeFirst(); in Options() 45 if (arg.equals(OPTION_JAVA)) { in Options() 48 usage("Unknown option: " + arg); in Options() 52 usage("Option " + arg + " needs argument"); in Options()
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/instrument/ |
D | TestSetupInstrumentation.java | 116 private int getArgumentAsInt(String arg, int defaultValue) { in getArgumentAsInt() argument 117 String stringValue = mArguments.getString(arg); in getArgumentAsInt() 125 + arg in getArgumentAsInt() 140 public static TestSetupException fromMissingArg(String arg) { in fromMissingArg() argument 142 String.format("Error: missing mandatory argument '%s'", arg)); in fromMissingArg()
|
/packages/inputmethods/LatinIME/ |
D | gradlew | 128 for arg in "$@" ; do 129 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 133 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 135 eval `echo args$i`="\"$arg\""
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | TestCommandReceiver.java | 83 public Bundle call(String method, String arg, Bundle extras) { in call() argument 99 killBackgroundProcesses(arg); in call() 103 return super.call(method, arg, extras); in call() 110 public static Bundle callCommand(String command, String arg) { in callCommand() argument 113 return inst.getTargetContext().getContentResolver().call(uri, command, arg, null); in callCommand()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsPackageMonitor.java | 69 public void onPerformTask(int taskId, Object arg) { in ContactsPackageMonitor() 72 onPackageChanged((PackageEventArg) arg); in ContactsPackageMonitor() 119 private void onPackageChanged(PackageEventArg arg) { in onPackageChanged() argument 121 final String packageName = arg.packageName; in onPackageChanged() 138 arg.broadcastPendingResult.finish(); in onPackageChanged()
|
D | ContactsTaskScheduler.java | 101 public void scheduleTask(int taskId, Object arg) { in scheduleTask() argument 112 if (arg == null) { in scheduleTask() 115 mHandler.sendMessage(mHandler.obtainMessage(taskId, arg)); in scheduleTask() 124 public abstract void onPerformTask(int taskId, Object arg); in onPerformTask() argument
|
D | VoicemailContentProvider.java | 105 public void onPerformTask(int taskId, Object arg) { in onCreate() 106 performBackgroundTask(taskId, arg); in onCreate() 147 void scheduleTask(int taskId, Object arg) { in scheduleTask() argument 148 mTaskScheduler.scheduleTask(taskId, arg); in scheduleTask() 518 void performBackgroundTask(int task, Object arg) { in performBackgroundTask() argument
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreDatabase.java | 531 for (final Object arg : mArgs) { in newCursor() 532 if (arg instanceof String) { in newCursor() 533 query.bindString(index++, (String) arg); in newCursor() 534 } else if (arg instanceof Long) { in newCursor() 535 query.bindLong(index++, (Long) arg); in newCursor() 536 } else if (arg instanceof Integer) { in newCursor() 537 query.bindLong(index++, Long.valueOf((Integer) arg)); in newCursor() 538 } else if (arg instanceof byte[]) { in newCursor() 539 query.bindBlob(index++, (byte[]) arg); in newCursor() 542 + arg.getClass().toString()); in newCursor()
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
D | arguments_parser.cpp | 111 const std::string arg = argv[i]; in parseArguments() local 112 if (arg.length() > 1 && arg[0] == '-') { in parseArguments() 114 const std::string optionName = arg.substr(1); in parseArguments() 142 arguments[argumentSpecIt->getName()].push_back(arg); in parseArguments()
|
/packages/services/Car/car-lib/src/android/car/vms/ |
D | VmsOperationRecorder.java | 148 private void recordOp(String operation, String intArgName, int arg) { in recordOp() argument 151 recordOp(operation, new JSONObject().put(intArgName, arg)); in recordOp() 158 private void recordOp(String operation, String intArgName, int arg, VmsLayer layer) { in recordOp() argument 162 new JSONObject().put(intArgName, arg).put("layer", toJson(layer))); in recordOp()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | PreferenceListTest.java | 143 final ArgumentMatcher<VpnProfile> equalsFake = arg -> { in testConnectedLegacyVpnShownExactlyOnce() 144 if (arg == vpnProfile) return true; in testConnectedLegacyVpnShownExactlyOnce() 145 if (arg == null) return false; in testConnectedLegacyVpnShownExactlyOnce() 146 return TextUtils.equals(arg.key, vpnProfile.key); in testConnectedLegacyVpnShownExactlyOnce()
|
/packages/services/Car/tools/emulator/ |
D | diagnostic_injector.py | 117 for arg in args.jsondoc: 118 print("Injecting %s" % arg) 119 halWrapper.inject(arg)
|
/packages/modules/ExtServices/src/android/ext/services/autofill/ |
D | AutofillFieldClassificationServiceImpl.java | 68 Bundle arg = defaultArgs; in calculateScores() local 73 arg = args.get(categoryId); in calculateScores() 89 userDataValues.get(j), arg); in calculateScores()
|
/packages/services/Car/service/src/com/android/car/ |
D | ICarImpl.java | 582 String arg = args[0]; in exec() local 583 switch (arg) { in exec() 706 writer.println("Unknown command: \"" + arg + "\""); in exec() 711 private void forceDayNightMode(String arg, PrintWriter writer) { 713 switch (arg) { 744 private void forceGarageMode(String arg, PrintWriter writer) { 745 switch (arg) {
|