Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 163) sorted by relevance

1234567

/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceFromCodeActivity.java46 prefCat.setTitle(R.string.inline_preferences); in addPreferenceCategory()
54 checkboxPref.setTitle(R.string.title_checkbox_preference); in addPreferenceCategory()
55 checkboxPref.setSummary(R.string.summary_checkbox_preference); in addPreferenceCategory()
56 checkboxPref.setSummaryOn(R.string.summary_on_checkbox_preference); in addPreferenceCategory()
57 checkboxPref.setSummaryOff(R.string.summary_off_checkbox_preference); in addPreferenceCategory()
65 switchPref.setTitle(R.string.title_switch_preference); in addPreferenceCategory()
66 switchPref.setSummary(R.string.summary_switch_preference); in addPreferenceCategory()
67 switchPref.setSummaryOn(R.string.summary_on_switch_preference); in addPreferenceCategory()
68 switchPref.setSummaryOff(R.string.summary_off_switch_preference); in addPreferenceCategory()
69 switchPref.setSwitchTextOff(R.string.switchtext_off); in addPreferenceCategory()
[all …]
DSwitchPreferenceTest.java47 String titleExp = mResources.getString(R.string.title_switch_preference); in testGetTitle()
53 String summaryExp = mResources.getString(R.string.summary_switch_preference); in testGetSummary()
60 R.string.summary_on_switch_preference); in testGetSummaryOn()
67 R.string.summary_off_switch_preference); in testSummaryOff()
84 R.string.switchtext_off); in testSetSwitchTextOff_Two()
102 R.string.switchtext_on); in testSetSwitchTextOn_Two()
DDialogPreferenceTest.java45 String titleExp = mActivity.getResources().getString(R.string.title_dialog_preference); in testGetTitle()
52 R.string.dialogtitle_dialog_preference); in testGetDialogTitle()
65 R.string.dialog_message); in testGetDialogMessage()
72 R.string.positive_button_text); in testGetPositiveButtonText()
79 R.string.negative_button_text); in testGetNegativeButtonText()
/cts/tests/tests/holo/src/android/holo/cts/
DLayoutAdapter.java108 addLayout(R.string.button, "button", in LayoutAdapter()
111 addLayout(R.string.button_pressed, "button_pressed", in LayoutAdapter()
116 addLayout(R.string.checkbox, "checkbox", in LayoutAdapter()
119 addLayout(R.string.checkbox_checked, "checkbox_checked", in LayoutAdapter()
122 addLayout(R.string.chronometer, "chronometer", in LayoutAdapter()
129 addLayout(R.string.edittext, "edittext", in LayoutAdapter()
132 addLayout(R.string.progressbar, "progressbar", in LayoutAdapter()
135 addLayout(R.string.progressbar_small, "progressbar_small", in LayoutAdapter()
138 addLayout(R.string.progressbar_large, "progressbar_large", in LayoutAdapter()
141 addLayout(R.string.progressbar_horizontal_0, "progressbar_horizontal_0", in LayoutAdapter()
[all …]
DHoloTestUtilitiesActivity.java49 taskAdapter.add(new Task(R.string.task_view_display_info, TASK_VIEW_DISPLAY_INFO)); in onCreate()
50 taskAdapter.add(new Task(R.string.task_view_tests, TASK_VIEW_TESTS)); in onCreate()
51 taskAdapter.add(new Task(R.string.task_generate_one_bitmap, TASK_GENERATE_ONE_BITMAP)); in onCreate()
52 taskAdapter.add(new Task(R.string.task_generate_all_bitmaps, TASK_GENERATE_ALL_BITMAPS)); in onCreate()
53 taskAdapter.add(new Task(R.string.task_clear_reference_bitmaps, in onCreate()
55 taskAdapter.add(new Task(R.string.task_clear_failure_bitmaps, in onCreate()
57 taskAdapter.add(new Task(R.string.task_clear_diff_bitmaps, in onCreate()
/cts/tests/tests/content/src/android/content/res/cts/
DPrimitiveTest.java94 expected, v.string); in tryString()
99 tryString(R.string.coerceIntegerToString, "100"); in testStringCoerce()
100 tryString(R.string.coerceBooleanToString, "true"); in testStringCoerce()
101 tryString(R.string.coerceColorToString, "#fff"); in testStringCoerce()
102 tryString(R.string.coerceFloatToString, "100.0"); in testStringCoerce()
103 tryString(R.string.coerceDimensionToString, "100px"); in testStringCoerce()
104 tryString(R.string.coerceFractionToString, "100%"); in testStringCoerce()
116 checkString(R.string.formattedStringNone, in testFormattedString()
117 mResources.getString(R.string.formattedStringNone), in testFormattedString()
119 checkString(R.string.formattedStringOne, in testFormattedString()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DConnectReqTestCase.java69 notifyTestMsg(R.string.p2p_searching_target); in connectTest()
77 mReason = mContext.getString(R.string.p2p_discover_peers_error); in connectTest()
83 mReason = mContext.getString(R.string.p2p_target_not_found_error); in connectTest()
89 mReason = mContext.getString(R.string.p2p_target_invalid_role_error); in connectTest()
93 mReason = mContext.getString(R.string.p2p_target_invalid_role_error2); in connectTest()
98 notifyTestMsg(R.string.p2p_connecting_with_pbc); in connectTest()
100 notifyTestMsg(R.string.p2p_connecting_with_pin); in connectTest()
111 mReason = mContext.getString(R.string.p2p_connect_error); in connectTest()
120 mReason = mContext.getString(R.string.p2p_connection_error); in connectTest()
127 notifyTestMsg(R.string.p2p_waiting_for_peer_to_connect); in connectTest()
[all …]
DServReqClearRequestTestCase.java36 notifyTestMsg(R.string.p2p_checking_serv_capab); in executeTest()
57 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
62 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
67 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
72 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
81 mReason = mContext.getString(R.string.p2p_clear_service_requests_error); in executeTest()
90 mReason = mContext.getString(R.string.p2p_no_service_requests_error); in executeTest()
DServReqRemoveRequestTestCase.java36 notifyTestMsg(R.string.p2p_checking_serv_capab); in executeTest()
57 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
62 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
67 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
72 mReason = mContext.getString(R.string.p2p_add_service_request_error); in executeTest()
81 mReason = mContext.getString(R.string.p2p_remove_service_request_error); in executeTest()
86 mReason = mContext.getString(R.string.p2p_remove_service_request_error); in executeTest()
91 mReason = mContext.getString(R.string.p2p_remove_service_request_error); in executeTest()
113 mReason = mContext.getString(R.string.p2p_discover_services_error); in executeTest()
DGoTestCase.java54 mReason = mContext.getString(R.string.p2p_add_local_service_error); in executeTest()
64 mReason = mContext.getString(R.string.p2p_add_local_service_error); in executeTest()
74 mReason = mContext.getString(R.string.p2p_add_local_service_error); in executeTest()
83 mReason = mContext.getString(R.string.p2p_ceate_group_error); in executeTest()
92 mReason = mContext.getString(R.string.p2p_ceate_group_error); in executeTest()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/
DT_return_object_6.d30 const-string v0, "aaa"
31 const-string v1, "bbb"
32 const-string v2, "ccc"
33 const-string v3, "ddd"
39 const-string v1, "a"
40 const-string v2, "b"
41 const-string v3, "c"
45 const-string v8, "ddd"
48 const-string v7, "a"
51 const-string v7, "b"
[all …]
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityViewTreeReportingTest.java48 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstFrameLayout)); in testDescendantsOfNotImportantViewReportedInOrder1()
54 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstTextView)); in testDescendantsOfNotImportantViewReportedInOrder1()
59 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstEditText)); in testDescendantsOfNotImportantViewReportedInOrder1()
64 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstButton)); in testDescendantsOfNotImportantViewReportedInOrder1()
71 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.secondFrameLayout)); in testDescendantsOfNotImportantViewReportedInOrder2()
77 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.secondTextView)); in testDescendantsOfNotImportantViewReportedInOrder2()
82 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.secondEditText)); in testDescendantsOfNotImportantViewReportedInOrder2()
87 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.secondButton)); in testDescendantsOfNotImportantViewReportedInOrder2()
94 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.rootLinearLayout)); in testDescendantsOfNotImportantViewReportedInOrder3()
100 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstFrameLayout)); in testDescendantsOfNotImportantViewReportedInOrder3()
[all …]
DAccessibilityDirectionalFocusTest.java51 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button5)); in testAccessibilityFocusSearchUp()
56 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button2)); in testAccessibilityFocusSearchUp()
75 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button5)); in testAccessibilityFocusSearchDown()
80 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button8)); in testAccessibilityFocusSearchDown()
99 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button5)); in testAccessibilityFocusSearchLeft()
104 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button4)); in testAccessibilityFocusSearchLeft()
123 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button5)); in testAccessibilityFocusSearchRight()
128 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.button6)); in testAccessibilityFocusSearchRight()
DAccessibilityFocusAndInputFocusSyncTest.java57 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstEditText)); in testFindAccessibilityFocus()
87 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.rootLinearLayout)); in testActionAccessibilityFocus()
97 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.rootLinearLayout)); in testActionAccessibilityFocus()
108 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.rootLinearLayout)); in testActionClearAccessibilityFocus()
117 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.rootLinearLayout)); in testActionClearAccessibilityFocus()
129 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.rootLinearLayout)); in testActionClearAccessibilityFocus()
139 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.firstEditText)); in testOnlyOneNodeHasAccessibilityFocus()
154 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.secondEditText)); in testOnlyOneNodeHasAccessibilityFocus()
169 .findAccessibilityNodeInfoByTextFromRoot(getString(R.string.secondEditText)); in testOnlyOneNodeHasAccessibilityFocus()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DP2pTestListActivity.java60 setInfoResources(R.string.p2p_test, R.string.p2p_test_info, 0); in onCreate()
70 adapter.add(TestListItem.newCategory(this, R.string.p2p_group_formation)); in onCreate()
72 R.string.p2p_go_neg_responder_test, in onCreate()
76 R.string.p2p_go_neg_requester_test, in onCreate()
80 adapter.add(TestListItem.newCategory(this, R.string.p2p_join)); in onCreate()
82 R.string.p2p_group_owner_test, in onCreate()
86 R.string.p2p_group_client_test, in onCreate()
90 adapter.add(TestListItem.newCategory(this, R.string.p2p_service_discovery)); in onCreate()
92 R.string.p2p_service_discovery_responder_test, in onCreate()
96 R.string.p2p_service_discovery_requester_test, in onCreate()
[all …]
/cts/suite/audio_quality/lib/src/
DAdb.cpp47 if (command.appendFormat("install -r %s", clientBinary.string()) != 0) { in launchClient()
54 if (command.appendFormat("shell am start -W -n %s", component.string()) != 0) { in launchClient()
68 if (adbCommand.appendFormat("adb %s", command.string()) != 0) { in executeCommand()
72 if (adbCommand.appendFormat("adb -s %s %s", mDevice.string(), in executeCommand()
73 command.string()) != 0) { in executeCommand()
77 return system(adbCommand.string()); in executeCommand()
DSimpleScriptExec.cpp47 LOGV("re match %s", match.string()); in checkIfPassed()
53 if (regcomp(&re, match.string(), cflags) != 0) { in checkIfPassed()
58 if (regexec(&re, str.string(), nmatch, pmatch, 0) == 0) { in checkIfPassed()
71 command.appendFormat("%s %s %s", PYTHON_PATH, script.string(), param.string()); in runScript()
76 if ( !(fpipe = (FILE*)popen(command.string(),"r")) ) { in runScript()
/cts/suite/audio_quality/lib/src/task/
DTaskSound.cpp56 LOGE("TaskSound::run %s string not found", STR_ID.string()); in run()
61 LOGE("TaskSound::run %s string not found", STR_TYPE.string()); in run()
79 int amplitude = atoi(tokens->at(1).string()); in run()
80 int freq = atoi(tokens->at(2).string()); in run()
81 int time = atoi(tokens->at(3).string()); in run()
90 int amplitude = atoi(tokens->at(1).string()); in run()
91 int time = atoi(tokens->at(2).string()); in run()
96 LOGE("TaskSound::run unknown word in type %s", type.string()); in run()
104 LOGE("TaskSound::run registering buffer %s failed", id.string()); in run()
112 LOGI("Downloaded buffer %s to DUT with id %d", id.string(), downloadId); in run()
DTaskCase.cpp74 LOGV("registerGeneric key %s already registered", name.string()); in registerGeneric()
77 LOGD("registerGeneric registered key %s", name.string()); in registerGeneric()
85 LOGD("findGeneric key %s", name.string()); in findGeneric()
98 LOGD("updateGeneric key %s", name.string()); in updateGeneric()
173 return findAllGeneric<android::sp<Buffer> >(mBufferList, translated.string()); in findAllBuffers()
183 LOGD("str %x", translated.string()); in registerValue()
211 return findAllGeneric<Value>(mValueList, translated.string()); in findAllValues()
235 return findAllGeneric<int>(mIndexList, translated.string()); in findAllIndices()
240 const char* src = orig.string(); in translateVarName()
261 LOGE("TaskCase::translateVarName no index with name %s", indexName.string()); in translateVarName()
[all …]
DTaskProcess.cpp117 LOGE("find %s failed", list[i].getParamString().string()); in prepareParams()
156 LOGE("TaskProcess::runBuiltin no match for %s", mName.string()); in doRun()
219 i, mName.string()); in doRun()
229 i, mName.string()); in doRun()
268 LOGD(" id %s", param.getParamString().string()); in parseParams()
272 LOGD(" val %s", param.getParamString().string()); in parseParams()
274 long long value = atoll(item[1].string()); in parseParams()
280 double value = atof(item[1].string()); in parseParams()
286 LOGE("unrecognized word %s", item[0].string()); in parseParams()
304 LOGE("cannot parse attr %s %s", name.string(), value.string()); in parseAttribute()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNfcTestActivity.java43 setInfoResources(R.string.nfc_test, R.string.nfc_test_info, 0); in onCreate()
48 adapter.add(TestListItem.newCategory(this, R.string.nfc_pee_2_pee)); in onCreate()
49 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_sender, in onCreate()
52 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_receiver, in onCreate()
56 adapter.add(TestListItem.newCategory(this, R.string.nfc_tag_verification)); in onCreate()
57 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef, in onCreate()
59 adapter.add(TestListItem.newTest(this, R.string.nfc_mifare_ultralight, in onCreate()
DNfcDialogs.java33 .setTitle(R.string.nfc_not_enabled) in createNotEnabledDialog()
34 .setMessage(R.string.nfc_not_enabled_message) in createNotEnabledDialog()
35 .setPositiveButton(R.string.nfc_settings, new DialogInterface.OnClickListener() { in createNotEnabledDialog()
48 .setTitle(R.string.ndef_push_not_enabled)
49 .setMessage(R.string.ndef_push_not_enabled_message)
50 … .setPositiveButton(R.string.ndef_push_settings, new DialogInterface.OnClickListener() {
DTagVerifierActivity.java89 setInfoResources(R.string.nfc_tag_verifier, R.string.nfc_tag_verifier_info, 0); in onCreate()
191 mEmptyText.setText(R.string.nfc_no_tech); in updateTechListAdapter()
224 Toast.makeText(TagVerifierActivity.this, R.string.nfc_writing_tag_error, in onPostExecute()
233 mEmptyText.setText(getString(R.string.nfc_scan_tag, mTechClass.getSimpleName())); in goToWriteStep()
239 mEmptyText.setText(getString(R.string.nfc_scan_tag_again, mTechClass.getSimpleName())); in goToVerifyStep()
277 Toast.makeText(TagVerifierActivity.this, R.string.nfc_reading_tag_error, in onPostExecute()
313 .setTitle(R.string.nfc_write_tag_title) in createTestableTagDiscoveredDialog()
314 .setMessage(R.string.nfc_write_tag_message) in createTestableTagDiscoveredDialog()
315 .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { in createTestableTagDiscoveredDialog()
333 .setTitle(R.string.nfc_wrong_tag_title)
[all …]
DNdefPushReceiverActivity.java53 setInfoResources(R.string.nfc_ndef_push_receiver, R.string.nfc_ndef_push_receiver_info, 0); in onCreate()
58 text.setText(R.string.nfc_ndef_push_receiver_instructions); in onCreate()
126 .setTitle(R.string.nfc_result_failure) in onCreateDialog()
128 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()
143 ? R.string.nfc_result_success in onPrepareDialog()
144 : R.string.nfc_result_failure); in onPrepareDialog()
146 ? getString(R.string.nfc_ndef_push_receive_success) in onPrepareDialog()
147 : getString(R.string.nfc_ndef_push_receive_failure)); in onPrepareDialog()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DMessageTestActivity.java97 setTitle(mSecure ? R.string.bt_secure_server : R.string.bt_insecure_server); in onCreate()
99 setTitle(mSecure ? R.string.bt_secure_client : R.string.bt_insecure_client); in onCreate()
116 setEmptyViewText(R.string.bt_no_messages); in onCreate()
219 setEmptyViewText(R.string.bt_waiting); in handleStateChange()
225 setEmptyViewText(R.string.bt_connecting); in handleStateChange()
230 setEmptyViewText(R.string.bt_no_messages); in handleStateChange()
238 setEmptyViewText(R.string.bt_no_messages); in handleStateChange()
253 .setTitle(getString(R.string.bt_waiting)) in showInstructionsDialog()
255 ? R.string.bt_secure_server_instructions in showInstructionsDialog()
256 : R.string.bt_insecure_server_instructions)) in showInstructionsDialog()
[all …]

1234567