Searched refs:strings (Results 26 - 50 of 86) sorted by relevance

1234

/frameworks/base/core/java/android/preference/
H A DMultiSelectListPreference.java35 * This preference will store a set of strings into the SharedPreferences.
257 String[] strings = source.readStringArray();
259 final int stringCount = strings.length;
261 values.add(strings[i]);
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DLineBreakBufferedWriterTest.java65 // Expect two strings.
67 // Expect the strings to sum up to the original input.
86 // Expect two strings.
88 // Expect the strings to sum up to the original input.
215 private List<String> strings = new ArrayList<String>(); field in class:LineBreakBufferedWriterTest.RecordingWriter
221 return strings;
226 strings.add(new String(cbuf, off, len));
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DMultiSelectListPreference.java39 * This preference will store a set of strings into the SharedPreferences.
88 * the {@link android.preference.PreferenceManager}, put in the strings, and check if we should
299 String[] strings = new String[size];
300 source.readStringArray(strings);
302 Collections.addAll(values, strings);
/frameworks/base/tools/aapt/
H A DStringPool.cpp72 printf("String pool of " ZD " unique %s %s strings, " ZD " entries and "
101 // We don't care about the relative order of these strings.
109 // Sort unstyled strings by type, then by logical configuration.
416 // our client placed their own strings in it.
438 // Now build the pool of unique strings.
480 uint8_t* strings = (uint8_t*)dat;
482 ENCODE_LENGTH(strings, sizeof(uint8_t), strSize)
484 ENCODE_LENGTH(strings, sizeof(uint8_t), encSize)
486 strncpy((char*)strings, encStr, encSize+1);
488 char16_t* strings
[all...]
H A DXMLNode.cpp158 * This is a shortcut to detect strings that are going to Time.format()
1095 StringPool strings(mUTF8);
1098 // First collect just the strings for attribute names that have a
1102 collect_resid_strings(&strings, &resids);
1104 // Next collect all remainibng strings.
1105 collect_strings(&strings, &resids, stripComments, stripRawValues);
1107 sp<AaptFile> stringPool = strings.createStringBlock();
1134 flatten_node(strings, dest, stripComments, stripRawValues);
1141 fprintf(stderr, "**** total xml size: %zu / %zu%% strings (in %s)\n",
1416 // Just ignore strings tha
[all...]
H A DXMLNode.h192 status_t flatten_node(const StringPool& strings, const sp<AaptFile>& dest,
H A DResourceTable.h385 status_t prepareFlatten(StringPool* strings, ResourceTable* table,
388 status_t remapStringValue(StringPool* strings);
557 ResStringPool* strings,
/frameworks/av/drm/common/
H A DDrmSupportInfo.cpp18 #include <strings.h>
/frameworks/wilhelm/tools/hashgen/
H A DMakefile40 gperf --null-strings --readonly-tables --no-strlen part23in.gperf > part23in.c
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java218 List<String> strings = Lists.newArrayList();
220 strings.add(s);
222 MoreAsserts.assertEquals(expectedStrings, strings.toArray(new String[]{}));
227 String[] strings = { "abc", " abc", " abc", "abc ", "abc ",
230 for (String s : strings) {
307 // Are all normal output strings identical?
311 // Are preserved output strings identical?
318 // Did preserved output strings preserve length?
/frameworks/base/core/java/android/content/
H A DIntent.java189 * These strings use Java-style scoping, to ensure they are unique -- for
3181 * represented as strings.
5467 String[] strings = value.split(",");
5468 int[] list = new int[strings.length];
5469 for (int i = 0; i < strings.length; i++) {
5470 list[i] = Integer.decode(strings[i]);
5478 String[] strings = value.split(",");
5479 ArrayList<Integer> list = new ArrayList<>(strings.length);
5480 for (int i = 0; i < strings.length; i++) {
5481 list.add(Integer.decode(strings[
[all...]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DMtpDocumentsProviderTest.java39 import static com.android.mtp.MtpDatabase.strings;
628 final String[] names = strings("Directory A", "Directory B", "Directory C");
652 strings(Document.COLUMN_DOCUMENT_ID, Document.COLUMN_DISPLAY_NAME),
673 strings(Document.COLUMN_DOCUMENT_ID),
725 "1", strings(Document.COLUMN_DOCUMENT_ID), null)) {
797 return getStrings(mProvider.queryRoots(strings(DocumentsContract.Root.COLUMN_ROOT_ID)));
814 parentDocumentId, strings(DocumentsContract.Document.COLUMN_DOCUMENT_ID), null));
/frameworks/base/services/core/java/com/android/server/pm/
H A DUserRestrictionsUtils.java60 private static Set<String> newSetWithUniqueCheck(String[] strings) { argument
61 final Set<String> ret = Sets.newArraySet(strings);
64 Preconditions.checkState(ret.size() == strings.length);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNetworkHistory.java251 WifiConfiguration.KeyMgmt.strings);
579 private static String makeString(BitSet set, String[] strings) { argument
583 /* Make sure all set bits are in [0, strings.length) to avoid
584 * going out of bounds on strings. (Shouldn't happen, but...) */
585 set = set.get(0, strings.length);
588 buf.append(strings[nextSetBit].replace('_', '-')).append(' ');
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java472 final CharSequence[] strings = context.getResources().getTextArray(textArrayResId);
473 return new ArrayAdapter<>(context, textViewResId, strings);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConfigManagerTest.java933 eap = Eap.strings[eapMethod];
937 phase2 = "auth=" + Phase2.strings[phase2Method];
1259 WifiConfiguration.KeyMgmt.strings);
1290 WifiConfiguration.Protocol.strings);
1321 WifiConfiguration.AuthAlgorithm.strings);
1352 WifiConfiguration.PairwiseCipher.strings);
1383 WifiConfiguration.GroupCipher.strings);
1610 private static String makeString(BitSet set, String[] strings) { argument
1614 /* Make sure all set bits are in [0, strings.length) to avoid
1615 * going out of bounds on strings
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
H A DCredential.java228 if (eapMethod >= 0 && eapMethod < WifiEnterpriseConfig.Eap.strings.length) {
229 methodName = WifiEnterpriseConfig.Eap.strings[eapMethod];
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES31.spec14 GLuint glCreateShaderProgramv ( GLenum type, GLsizei count, const GLchar *const *strings )
/frameworks/opt/net/wifi/tests/wifitests/
H A DAndroid.mk25 -Wunused-variable -Winit-self -Wwrite-strings -Wshadow
/frameworks/wilhelm/src/
H A Dsles_allinclusive.h29 #include <strings.h>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRIL.java1990 // count strings
2021 // count strings
2091 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
2097 rr.mParcel.writeStringArray(strings);
2951 String[] strings = (String[]) ret;
2952 length = strings.length;
2956 sb.append(strings[i++]);
2958 sb.append(", ").append(strings[i++]);
3922 String strings[] = (String [])responseStrings(p);
3925 if (strings
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp532 // check invariant: styles follow the strings
534 ALOGW("Bad style block: style block starts at %d, before strings at %d\n",
555 const uint16_t* strings = (const uint16_t*)mStrings; local
556 uint16_t* s = const_cast<uint16_t*>(strings);
558 s[i] = dtohs(strings[i]);
704 const uint16_t* strings = (uint16_t*)mStrings; local
705 const uint16_t* str = strings+off;
708 if ((uint32_t)(str+*u16len-strings) < mStringPoolSize) {
709 // Reject malformed (non null-terminated) strings
718 (int)idx, (int)(str+*u16len-strings), (in
721 const uint8_t* strings = (uint8_t*)mStrings; local
805 const uint8_t* strings = (uint8_t*)mStrings; local
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java261 // strings here are the standard values permitted in wpa_supplicant.conf.
280 key = bareSsid + KeyMgmt.strings[KeyMgmt.WPA_PSK];
282 key = bareSsid + KeyMgmt.strings[KeyMgmt.WPA_EAP];
286 key = bareSsid + KeyMgmt.strings[KeyMgmt.NONE];
/frameworks/native/vulkan/libvulkan/
H A Dlayers_extensions.cpp28 #include <android-base/strings.h>
48 // probably want to intern strings, etc., and will need some custom/manual data
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneCommandInterface.java388 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument

Completed in 713 milliseconds

1234