Home
last modified time | relevance | path

Searched refs:getString (Results 1 – 25 of 1049) sorted by relevance

12345678910>>...42

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsParserTest.java30 assertEquals("R", result.fields.getString("st")); in testParsing()
31 assertEquals("0", result.fields.getString("rc")); in testParsing()
32 assertEquals("1", result.fields.getString("srv")); in testParsing()
33 assertEquals("1", result.fields.getString("dn")); in testParsing()
34 assertEquals("1", result.fields.getString("ipt")); in testParsing()
35 assertEquals("0", result.fields.getString("spt")); in testParsing()
36 assertEquals("eg@example.com", result.fields.getString("u")); in testParsing()
37 assertEquals("1", result.fields.getString("pw")); in testParsing()
46 assertEquals("R", result.fields.getString("st")); in testParsing_TrailingSemiColon()
47 assertEquals("0", result.fields.getString("rc")); in testParsing_TrailingSemiColon()
[all …]
/frameworks/base/core/java/android/os/
DBuild.java51 public static final String ID = getString("ro.build.id");
54 public static final String DISPLAY = getString("ro.build.display.id");
57 public static final String PRODUCT = getString("ro.product.name");
60 public static final String DEVICE = getString("ro.product.device");
63 public static final String BOARD = getString("ro.product.board");
82 public static final String MANUFACTURER = getString("ro.product.manufacturer");
85 public static final String BRAND = getString("ro.product.brand");
88 public static final String MODEL = getString("ro.product.model");
91 public static final String BOOTLOADER = getString("ro.bootloader");
102 public static final String RADIO = getString(TelephonyProperties.PROPERTY_BASEBAND_VERSION);
[all …]
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp78 EXPECT_EQ("en-Latn-US", createLocale("en").getString()); in TEST()
79 EXPECT_EQ("en-Latn-US", createLocale("en-Latn").getString()); in TEST()
82 EXPECT_EQ("en-Latn-US", createLocale("EN-LATN").getString()); in TEST()
83 EXPECT_EQ("en-Latn-US", createLocale("EN-latn").getString()); in TEST()
84 EXPECT_EQ("en-Latn-US", createLocale("en-latn").getString()); in TEST()
87 EXPECT_EQ("en-Xyzt-US", createLocale("en-xyzt").getString()); in TEST()
89 EXPECT_EQ("en-Latn-US", createLocale("en-Latn-US").getString()); in TEST()
90 EXPECT_EQ("ja-Jpan-JP", createLocale("ja").getString()); in TEST()
91 EXPECT_EQ("zh-Hant-TW", createLocale("zh-TW").getString()); in TEST()
92 EXPECT_EQ("zh-Hant-HK", createLocale("zh-HK").getString()); in TEST()
[all …]
DLocaleListTest.cpp35 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
39 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
40 EXPECT_EQ("fr-Latn-FR", getLocaleList(langTag)[1].getString()); in TEST()
44 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
45 EXPECT_EQ("fr-Latn-FR", getLocaleList(langTag)[1].getString()); in TEST()
53 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
57 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
/frameworks/base/core/tests/coretests/src/android/database/
DRedactingCursorTest.java44 assertEquals("foo", redacting.getString(0)); in testMissing()
46 assertEquals("/path/to/foo", redacting.getString(2)); in testMissing()
48 assertEquals("bar", redacting.getString(0)); in testMissing()
50 assertEquals("/path/to/bar", redacting.getString(2)); in testMissing()
59 assertEquals(null, redacting.getString(0)); in testSingle()
61 assertEquals("/dev/null", redacting.getString(2)); in testSingle()
70 assertEquals(null, redacting.getString(0)); in testSingle()
72 assertEquals("/dev/null", redacting.getString(2)); in testSingle()
82 assertEquals(null, redacting.getString(0)); in testMultiple()
83 assertEquals("foo", redacting.getString(1)); in testMultiple()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcuts.java183 KeyEvent.KEYCODE_HOME, context.getString(R.string.keyboard_key_home)); in loadResources()
185 KeyEvent.KEYCODE_BACK, context.getString(R.string.keyboard_key_back)); in loadResources()
187 KeyEvent.KEYCODE_DPAD_UP, context.getString(R.string.keyboard_key_dpad_up)); in loadResources()
189 KeyEvent.KEYCODE_DPAD_DOWN, context.getString(R.string.keyboard_key_dpad_down)); in loadResources()
191 KeyEvent.KEYCODE_DPAD_LEFT, context.getString(R.string.keyboard_key_dpad_left)); in loadResources()
193 KeyEvent.KEYCODE_DPAD_RIGHT, context.getString(R.string.keyboard_key_dpad_right)); in loadResources()
195 KeyEvent.KEYCODE_DPAD_CENTER, context.getString(R.string.keyboard_key_dpad_center)); in loadResources()
198 KeyEvent.KEYCODE_TAB, context.getString(R.string.keyboard_key_tab)); in loadResources()
200 KeyEvent.KEYCODE_SPACE, context.getString(R.string.keyboard_key_space)); in loadResources()
202 KeyEvent.KEYCODE_ENTER, context.getString(R.string.keyboard_key_enter)); in loadResources()
[all …]
/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java65 context.getString(R.string.notification_channel_virtual_keyboard), in createAll()
72 context.getString(R.string.notification_channel_physical_keyboard), in createAll()
81 context.getString(R.string.notification_channel_security), in createAll()
87 context.getString(R.string.notification_channel_car_mode), in createAll()
96 context.getString(R.string.notification_channel_developer), in createAll()
103 context.getString(R.string.notification_channel_updates), in createAll()
109 context.getString(R.string.notification_channel_network_status), in createAll()
115 context.getString(R.string.notification_channel_network_alerts), in createAll()
122 context.getString(R.string.notification_channel_network_available), in createAll()
129 context.getString(R.string.notification_channel_vpn), in createAll()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestRunner.java86 String val = arguments.getString("enable_iterations"); in onCreate()
95 val = arguments.getString("discoverable_iterations"); in onCreate()
104 val = arguments.getString("scan_iterations"); in onCreate()
113 val = arguments.getString("enable_pan_iterations"); in onCreate()
122 val = arguments.getString("pair_iterations"); in onCreate()
131 val = arguments.getString("connect_a2dp_iterations"); in onCreate()
140 val = arguments.getString("connect_headset_iterations"); in onCreate()
149 val = arguments.getString("connect_input_iterations"); in onCreate()
158 val = arguments.getString("connect_pan_iterations"); in onCreate()
167 val = arguments.getString("start_stop_sco_iterations"); in onCreate()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java109 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management), in testManagedNoOwnerName()
125 assertEquals(mContext.getString(R.string.quick_settings_disclosure_named_management, in testManagedOwnerName()
156 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_monitoring), in testNetworkLoggingEnabled()
168 assertEquals(mContext.getString( in testNetworkLoggingEnabled()
181 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_monitoring), in testManagedCACertsInstalled()
193 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_named_vpn, in testManagedOneVpnEnabled()
205 assertEquals(mContext.getString( in testManagedOneVpnEnabled()
220 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_vpns), in testManagedTwoVpnsEnabled()
231 assertEquals(mContext.getString(R.string.quick_settings_disclosure_named_management_vpns, in testManagedTwoVpnsEnabled()
247 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_monitoring), in testNetworkLoggingAndVpnEnabled()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java182 return mContext.getString( in getFooterText()
185 return mContext.getString( in getFooterText()
191 return mContext.getString(R.string.quick_settings_disclosure_management_vpns); in getFooterText()
193 return mContext.getString(R.string.quick_settings_disclosure_named_management_vpns, in getFooterText()
198 return mContext.getString( in getFooterText()
202 return mContext.getString( in getFooterText()
208 return mContext.getString(R.string.quick_settings_disclosure_management); in getFooterText()
210 return mContext.getString(R.string.quick_settings_disclosure_named_management, in getFooterText()
215 return mContext.getString( in getFooterText()
218 return mContext.getString( in getFooterText()
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/registry/
DBenchmarkRegistry.java126 groupName = groupAttribs.getString(R.styleable.BenchmarkGroup_name); in parseBenchmarkGroup()
127 groupDescription = groupAttribs.getString(R.styleable.BenchmarkGroup_description); in parseBenchmarkGroup()
135 String testName = benchAttribs.getString(R.styleable.Benchmark_name); in parseBenchmarkGroup()
136 String testDescription = benchAttribs.getString(R.styleable.Benchmark_description); in parseBenchmarkGroup()
209 return context.getString(R.string.list_view_scroll_name); in getBenchmarkName()
211 return context.getString(R.string.image_list_view_scroll_name); in getBenchmarkName()
213 return context.getString(R.string.shadow_grid_name); in getBenchmarkName()
215 return context.getString(R.string.text_high_hitrate_name); in getBenchmarkName()
217 return context.getString(R.string.text_low_hitrate_name); in getBenchmarkName()
219 return context.getString(R.string.edit_text_input_name); in getBenchmarkName()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DMDnsUtils.java37 String product = getString(attributes.get(ATTRIBUTE__PRODUCT)); in isVendorPrinter()
38 String ty = getString(attributes.get(ATTRIBUTE__TY)); in isVendorPrinter()
39 String usbMfg = getString(attributes.get(ATTRIBUTE__USB_MFG)); in isVendorPrinter()
40 String usbMdl = getString(attributes.get(ATTRIBUTE__USB_MDL)); in isVendorPrinter()
41 String mfg = getString(attributes.get(ATTRIBUTE__MFG)); in isVendorPrinter()
52 vendor = getString(attributes.get(ATTRIBUTE__MFG)); in getVendor()
54 vendor = getString(attributes.get(ATTRIBUTE__USB_MFG)); in getVendor()
63 String pdls = MDnsUtils.getString(networkDevice.getAttributes().get(PDL_ATTRIBUTE)); in checkPDLSupport()
85 private static String getString(byte[] value) { in getString() method in MDnsUtils
/frameworks/base/core/java/android/view/textclassifier/intent/
DLegacyClassificationIntentFactory.java109 context.getString(com.android.internal.R.string.email), in createForEmail()
111 context.getString(com.android.internal.R.string.email_desc), in createForEmail()
117 context.getString(com.android.internal.R.string.add_contact), in createForEmail()
119 context.getString(com.android.internal.R.string.add_contact_desc), in createForEmail()
136 context.getString(com.android.internal.R.string.dial), in createForPhone()
138 context.getString(com.android.internal.R.string.dial_desc), in createForPhone()
145 context.getString(com.android.internal.R.string.add_contact), in createForPhone()
147 context.getString(com.android.internal.R.string.add_contact_desc), in createForPhone()
155 context.getString(com.android.internal.R.string.sms), in createForPhone()
157 context.getString(com.android.internal.R.string.sms_desc), in createForPhone()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java78 private static String getString(Cursor cursor, String columnName) { in getString() method in MtpDatabaseTest
79 return cursor.getString(cursor.getColumnIndex(columnName)); in getString()
101 DocumentsContract.Document.MIME_TYPE_DIR, getString(cursor, COLUMN_MIME_TYPE)); in testPutSingleStorageDocuments()
102 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutSingleStorageDocuments()
134 assertEquals("Device Storage", getString(cursor, Root.COLUMN_TITLE)); in testPutSingleStorageDocuments()
163 … assertEquals(DocumentsContract.Document.MIME_TYPE_DIR, getString(cursor, COLUMN_MIME_TYPE)); in testPutStorageDocuments()
164 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutStorageDocuments()
175 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutStorageDocuments()
179 assertEquals("/@#%&<>Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutStorageDocuments()
213 assertEquals("text/plain", getString(cursor, COLUMN_MIME_TYPE)); in testPutChildDocuments()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java278 ssid = savedState.getString(KEY_SSID); in AccessPoint()
311 mFqdn = savedState.getString(KEY_FQDN); in AccessPoint()
314 mProviderFriendlyName = savedState.getString(KEY_PROVIDER_FRIENDLY_NAME); in AccessPoint()
323 mCarrierName = savedState.getString(KEY_CARRIER_NAME); in AccessPoint()
858 return concise ? context.getString(R.string.wifi_security_short_eap) : in getSecurityString()
859 context.getString(R.string.wifi_security_eap); in getSecurityString()
865 return concise ? context.getString(R.string.wifi_security_short_eap_wpa) : in getSecurityString()
866 context.getString(R.string.wifi_security_eap_wpa); in getSecurityString()
869 ? context.getString(R.string.wifi_security_short_eap_wpa2_wpa3) : in getSecurityString()
870 context.getString(R.string.wifi_security_eap_wpa2_wpa3); in getSecurityString()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java192 String ssid = jsonConfig.getString("ssid"); in getWifiConfiguration()
196 int securityType = getSecurityType(jsonConfig.getString("security")); in getWifiConfiguration()
202 password = jsonConfig.getString("password"); in getWifiConfiguration()
206 password = jsonConfig.getString("password"); in getWifiConfiguration()
210 password = jsonConfig.getString("password"); in getWifiConfiguration()
211 int eapMethod = getEapMethod(jsonConfig.getString("eap")); in getWifiConfiguration()
214 phase2 = getPhase2(jsonConfig.getString("phase2")); in getWifiConfiguration()
218 identity = jsonConfig.getString("identity"); in getWifiConfiguration()
222 anonymousIdentity = jsonConfig.getString("anonymous_identity"); in getWifiConfiguration()
226 caCert = (jsonConfig.getString("ca_cert")); in getWifiConfiguration()
[all …]
DConnectivityManagerStressTestRunner.java62 String scanIterationStr = icicle.getString("scan_iterations"); in onCreate()
70 String ssidStr= icicle.getString("reconnect_ssid"); in onCreate()
75 String passwordStr = icicle.getString("reconnect_password"); in onCreate()
80 String reconnectStr = icicle.getString("reconnect_iterations"); in onCreate()
88 String sleepTimeStr = icicle.getString("sleep_time"); in onCreate()
96 String wifiOnlyFlag = icicle.getString("wifi-only"); in onCreate()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DMDnsUtils.java32 public static String getString(byte[] value) { in getString() method in MDnsUtils
40 String product = getString(attributes.get(ATTRIBUTE__PRODUCT)); in isVendorPrinter()
41 String ty = getString(attributes.get(ATTRIBUTE__TY)); in isVendorPrinter()
42 String usbMfg = getString(attributes.get(ATTRIBUTE__USB_MFG)); in isVendorPrinter()
43 String mfg = getString(attributes.get(ATTRIBUTE__MFG)); in isVendorPrinter()
52 vendor = getString(attributes.get(ATTRIBUTE__MFG)); in getVendor()
54 vendor = getString(attributes.get(ATTRIBUTE__USB_MFG)); in getVendor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java122 return context.getString(R.string.power_suggestion_extend_battery, in getBatteryTipStringFormatted()
132 ? context.getString(R.string.power_remaining_duration_only_shutdown_imminent) in getShutdownImminentString()
133 : context.getString( in getShutdownImminentString()
141 ? context.getString(R.string.power_remaining_less_than_duration_only, timeString) in getUnderFifteenString()
142 : context.getString( in getUnderFifteenString()
160 return context.getString(id, timeString); in getMoreThanOneDayString()
165 return context.getString(id, timeString, percentageString); in getMoreThanOneDayString()
175 return context.getString(resId, timeString); in getMoreThanOneDayShortString()
185 ? context.getString(R.string.power_remaining_only_more_than_subtext, in getMoreThanTwoDaysString()
187 : context.getString( in getMoreThanTwoDaysString()
[all …]
/frameworks/base/core/tests/overlaytests/host/test-apps/UpdateOverlay/src/com/android/server/om/hosttest/update_overlay_test/
DUpdateOverlayTest.java51 assertEquals("App Resource", mResources.getString(R.string.app_resource)); in expectAppResource()
56 assertEquals("App Resource Overlay V1", mResources.getString(R.string.app_resource)); in expectAppOverlayV1Resource()
61 assertEquals("App Resource Overlay V2", mResources.getString(R.string.app_resource)); in expectAppOverlayV2Resource()
66 assertEquals("OK", mResources.getString(android.R.string.ok)); in expectFrameworkResource()
71 assertEquals("Framework Overlay V1", mResources.getString(android.R.string.ok)); in expectFrameworkOverlayV1Resource()
76 assertEquals("Framework Overlay V2", mResources.getString(android.R.string.ok)); in expectFrameworkOverlayV2Resource()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableSettingsProviderTest.java54 String value = Secure.getString(mContentResolver, NONEXISTENT_SETTING); in testInitialValueSecure()
60 String value = Global.getString(mContentResolver, NONEXISTENT_SETTING); in testInitialValueGlobal()
68 assertEquals("something", Secure.getString(mContentResolver, NONEXISTENT_SETTING)); in testSeparateTables()
69 assertEquals("else", Global.getString(mContentResolver, NONEXISTENT_SETTING)); in testSeparateTables()
92 assertNull(Global.getString(mContentResolver, Global.DEVICE_PROVISIONED)); in testOverrideExisting()
98 assertNull(Global.getString(mContentResolver, Global.DEVICE_PROVISIONED)); in testRelease()
101 assertEquals("1", Global.getString(mContentResolver, Global.DEVICE_PROVISIONED)); in testRelease()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java117 return mContext.getString(R.string.quick_settings_bluetooth_label); in getTileLabel()
134 state.label = mContext.getString(R.string.quick_settings_bluetooth_label); in handleUpdateState()
144 mContext.getString(R.string.accessibility_bluetooth_name, state.label) in handleUpdateState()
153 state.contentDescription = mContext.getString( in handleUpdateState()
155 + mContext.getString(R.string.accessibility_not_connected); in handleUpdateState()
160 state.contentDescription = mContext.getString( in handleUpdateState()
165 state.dualLabelContentDescription = mContext.getResources().getString( in handleUpdateState()
183 return mContext.getString(R.string.quick_settings_connecting); in getSecondaryLabel()
186 return mContext.getString(R.string.quick_settings_bluetooth_secondary_label_transient); in getSecondaryLabel()
203 return mContext.getString( in getSecondaryLabel()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java53 assertEquals("Value", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
57 assertEquals("New", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
61 assertEquals(null, Settings.Secure.getString(r, "test_service")); in testNameValueCache()
96 Settings.System.getString(getContext().getContentResolver(), testKey); in testRowNameContentUriForSystem()
124 assertEquals(testKey, c.getString(c.getColumnIndex(nameField))); in testRowNameContentUri()
125 assertEquals(testValue, c.getString(c.getColumnIndex(valueField))); in testRowNameContentUri()
143 assertEquals(testKey, c.getString(c.getColumnIndex(nameField))); in testRowNameContentUri()
144 assertEquals(testValue, c.getString(c.getColumnIndex(valueField))); in testRowNameContentUri()
159 assertEquals(testKey, c.getString(c.getColumnIndex(nameField))); in testRowNameContentUri()
160 assertEquals(secondTestValue, c.getString(c.getColumnIndex(valueField))); in testRowNameContentUri()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java149 mSlotCast = context.getString(com.android.internal.R.string.status_bar_cast); in PhoneStatusBarPolicy()
150 mSlotHotspot = context.getString(com.android.internal.R.string.status_bar_hotspot); in PhoneStatusBarPolicy()
151 mSlotBluetooth = context.getString(com.android.internal.R.string.status_bar_bluetooth); in PhoneStatusBarPolicy()
152 mSlotTty = context.getString(com.android.internal.R.string.status_bar_tty); in PhoneStatusBarPolicy()
153 mSlotZen = context.getString(com.android.internal.R.string.status_bar_zen); in PhoneStatusBarPolicy()
154 mSlotVolume = context.getString(com.android.internal.R.string.status_bar_volume); in PhoneStatusBarPolicy()
155 mSlotAlarmClock = context.getString(com.android.internal.R.string.status_bar_alarm_clock); in PhoneStatusBarPolicy()
156 mSlotManagedProfile = context.getString( in PhoneStatusBarPolicy()
158 mSlotRotate = context.getString(com.android.internal.R.string.status_bar_rotate); in PhoneStatusBarPolicy()
159 mSlotHeadset = context.getString(com.android.internal.R.string.status_bar_headset); in PhoneStatusBarPolicy()
[all …]
/frameworks/base/core/java/android/hardware/face/
DFaceManager.java609 return context.getString( in getErrorString()
612 return context.getString( in getErrorString()
615 return context.getString(com.android.internal.R.string.face_error_timeout); in getErrorString()
617 return context.getString(com.android.internal.R.string.face_error_no_space); in getErrorString()
619 return context.getString(com.android.internal.R.string.face_error_canceled); in getErrorString()
621 return context.getString(com.android.internal.R.string.face_error_lockout); in getErrorString()
623 return context.getString( in getErrorString()
626 return context.getString(com.android.internal.R.string.face_error_user_canceled); in getErrorString()
628 return context.getString(com.android.internal.R.string.face_error_not_enrolled); in getErrorString()
630 return context.getString(com.android.internal.R.string.face_error_hw_not_present); in getErrorString()
[all …]

12345678910>>...42