HomeSort by relevance Sort by last modified time
    Searched defs:string (Results 601 - 625 of 2901) sorted by null

<<21222324252627282930>>

  /system/bt/vendor_libs/test_vendor_lib/scripts/
test_channel.py 43 import string namespace
52 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
53 string.digits) for _ in range(DEVICE_NAME_LENGTH))
56 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
135 explicit name or address is not provided, a random string of characters
  /system/core/include/utils/
String8.h 24 #include <string.h> // for strcmp
34 //! This is a string holding UTF-8 characters. Does not allow the value more
65 inline const char* string() const;
131 // return true if this string contains the specified substring
145 * These methods operate on the string as if it were a path name.
213 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
216 * Like appendPath(), but does not affect this string. Returns a new one instead.
220 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); }
223 * Converts all separators in this string to /, the default path separator.
259 inline const char* String8::string() cons function in class:android::String8
    [all...]
  /system/extras/tests/net_test/
cstruct.py 50 import string namespace
116 # Initializing from a string.
119 raise TypeError("%s requires string of length %d, got %d" %
169 c not in string.printable for c in value):
  /toolchain/binutils/binutils-2.25/bfd/
cpu-arm.c 100 scan (const struct bfd_arch_info *info, const char *string)
105 if (strcasecmp (string, info->printable_name) == 0)
111 if (strcasecmp (string, processors [i].name) == 0)
119 if (strcasecmp (string, "arm") == 0)
216 unsigned char namesz[4]; /* Size of entry's owner string. */
285 string encoded in it, and set it to the current architecture if it is
351 const char * string; member in struct:__anon74843
382 string encoded in it, and set it to the current architecture if it is
400 /* Interpret the architecture string. */
402 if (strcmp (arch_string, architectures[i].string) == 0
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
ByodPresentMediaDialog.java 51 static final String TAG = "ByodPresentMediaDialog";
53 private static final String KEY_VIDEO_URI = "video";
54 private static final String KEY_IMAGE_FILE = "image_file";
55 private static final String KEY_AUDIO_URI = "audio";
119 dialog.setTitle(getString(R.string.provisioning_byod_verify_video_title));
136 dialog.setTitle(getString(R.string.provisioning_byod_verify_image_title));
172 Toast.makeText(getActivity(), R.string.provisioning_byod_capture_image_error,
179 dialog.setTitle(getString(R.string.provisioning_byod_verify_audio_title));
193 Toast.makeText(getActivity(), R.string.provisioning_byod_capture_media_error,
  /cts/tests/tests/widget/src/android/widget/cts/
EditTextTest.java 94 String string = "android"; local
95 editText.setText(string, BufferType.EDITABLE);
114 editText.setSelection(string.length() + 1);
124 String string = "android"; local
125 editText.setText(string, BufferType.EDITABLE);
152 editText.setSelection(5, string.length() + 1);
162 String string = "android" local
    [all...]
  /developers/build/prebuilts/gradle/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
BluetoothChatFragment.java 52 private static final String TAG = "BluetoothChatFragment";
67 private String mConnectedDeviceName = null;
72 private ArrayAdapter<String> mConversationArrayAdapter;
75 * String buffer for outgoing messages
163 mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);
177 String message = textView.getText().toString();
205 * @param message A string of text to send.
207 private void sendMessage(String message) {
210 Toast.makeText(getActivity(), R.string.not_connected, Toast.LENGTH_SHORT).show();
220 // Reset out string buffer to zero and clear the edit text fiel
    [all...]
  /developers/samples/android/connectivity/bluetooth/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
BluetoothChatFragment.java 52 private static final String TAG = "BluetoothChatFragment";
67 private String mConnectedDeviceName = null;
72 private ArrayAdapter<String> mConversationArrayAdapter;
75 * String buffer for outgoing messages
163 mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);
177 String message = textView.getText().toString();
205 * @param message A string of text to send.
207 private void sendMessage(String message) {
210 Toast.makeText(getActivity(), R.string.not_connected, Toast.LENGTH_SHORT).show();
220 // Reset out string buffer to zero and clear the edit text fiel
    [all...]
  /development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
BluetoothChatFragment.java 52 private static final String TAG = "BluetoothChatFragment";
67 private String mConnectedDeviceName = null;
72 private ArrayAdapter<String> mConversationArrayAdapter;
75 * String buffer for outgoing messages
163 mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);
177 String message = textView.getText().toString();
205 * @param message A string of text to send.
207 private void sendMessage(String message) {
210 Toast.makeText(getActivity(), R.string.not_connected, Toast.LENGTH_SHORT).show();
220 // Reset out string buffer to zero and clear the edit text fiel
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/
ImportExportDialogFragment.java 65 public static final String TAG = "ImportExportDialogFragment";
71 private static final String KEY_RES_ID = "resourceId";
72 private static final String KEY_SUBSCRIPTION_ID = "subscriptionId";
73 private static final String ARG_CONTACTS_ARE_AVAILABLE = "CONTACTS_ARE_AVAILABLE";
77 private final String[] LOOKUP_PROJECTION = new String[] {
113 final String callingActivity = getArguments().getString(
116 // Adapter that shows a list of string resources
132 adapter.add(new AdapterEntry(getString(R.string.import_from_vcf_file),
133 R.string.import_from_vcf_file))
    [all...]
  /prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-integration/1.1/
hamcrest-integration-1.1.jar 
  /prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-integration/1.3/
hamcrest-integration-1.3.jar 
  /external/protobuf/java/src/test/java/com/google/protobuf/
ByteStringTest.java 59 private static final String UTF_16 = "UTF-16";
93 assertTrue("substring must contain the tail of the string",
132 String testString = "I love unicode \u1234\u5678 characters";
135 assertTrue("copyFrom string must respect the charset",
140 String testString = "I love unicode \u1234\u5678 characters";
143 assertTrue("copyFromUtf8 string must respect the charset",
177 + "byte string", ByteString.EMPTY, byteString);
402 String testString = "I love unicode \u1234\u5678 characters";
415 "String built from newOutput(int) must contain the expected bytes",
436 assertTrue("String built from newOutput() must contain the expected bytes"
667 ByteString string = ByteString.copyFrom(bytes); local
682 ByteString string = ByteString.copyFrom(bytes); local
    [all...]
  /art/cmdline/
cmdline_types.h 26 #include <string>
38 // The default specialization will always fail parsing the type from a string.
51 Result Parse(const std::string& args) {
78 Result Parse(const std::string& options) {
87 const std::string s;
89 std::vector<std::string> pairs;
94 for (const std::string& jdwp_option : pairs) {
95 std::string::size_type equals_pos = jdwp_option.find('=');
96 if (equals_pos == std::string::npos) {
120 Result ParseJdwpOption(const std::string& name, const std::string& value
    [all...]
  /external/okhttp/okio/okio/src/test/java/okio/
BufferedSourceTest.java 49 @Override public String toString() {
63 @Override public String toString() {
81 @Override public String toString() {
350 String string = "abcd" + repeat('e', Segment.SIZE); local
351 sink.writeUtf8(string);
352 assertByteArraysEquals(string.getBytes(UTF_8), source.readByteArray());
630 private void assertLongHexString(String s, long expected) throws IOException {
682 private void assertLongDecimalString(String s, long expected) throws IOException {
  /packages/apps/Settings/src/com/android/settings/location/
LocationSettings.java 87 private static final String TAG = "LocationSettings";
93 private static final String KEY_MANAGED_PROFILE_SWITCH = "managed_profile_location_switch";
95 private static final String KEY_LOCATION_MODE = "location_mode";
97 private static final String KEY_RECENT_LOCATION_REQUESTS = "recent_location_requests";
99 private static final String KEY_LOCATION_SERVICES = "location_services";
196 R.string.location_mode_screen_title, null, LocationSettings.this,
213 pref.setSummary(R.string.location_high_battery_use);
215 pref.setSummary(R.string.location_low_battery_use);
228 banner.setTitle(R.string.location_no_recent_apps);
277 int summaryResId = R.string.switch_off_text
    [all...]
  /art/compiler/driver/
compiler_driver_test.cc 112 const mirror::String* string = dex_cache->GetResolvedString(i); local
113 EXPECT_TRUE(string != nullptr) << "string_idx=" << i;
180 std::unordered_set<std::string>* GetCompiledMethods() OVERRIDE {
181 return new std::unordered_set<std::string>({
215 std::unique_ptr<std::unordered_set<std::string>> expected(GetCompiledMethods());
219 std::string name = PrettyMethod(&m, true);
240 std::string key = ProfileCompilationInfo::GetProfileDexFileKey(dex_file->GetLocation());
247 std::unordered_set<std::string> GetExpectedMethodsForClass(const std::string& clazz)
    [all...]
  /art/runtime/mirror/
string.cc 17 #include "string-inl.h"
27 #include "string-inl.h"
35 GcRoot<Class> String::java_lang_String_;
37 int32_t String::FastIndexOf(int32_t ch, int32_t start) {
55 void String::SetClass(Class* java_lang_String) {
62 void String::ResetClass() {
67 int String::ComputeHashCode() {
73 int32_t String::GetUtfLength() {
77 void String::SetCharAt(int32_t index, uint16_t c) {
82 String* String::AllocFromStrings(Thread* self, Handle<String> string, Handle<String> string2)
101 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); local
125 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); local
    [all...]
  /art/test/020-string/src/
Main.java 21 * Simple string test.
24 public static void main(String args[]) {
32 String baseStr = "*** This is a very nice string!!!";
33 String testStr;
44 String testStr2 = "This is a very nice strinG";
51 String s1 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\u00e9\u00e9\u00e9";
52 String s2 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\uffff\uffff\uffff\u00e9\u00e9\u00e9";
64 String baseStr = "The quick brown fox jumps over the lazy dog!"
95 String string = "string"; local
    [all...]
  /art/test/968-default-partial-compile-generated/util-src/
generate_smali.py 39 import string namespace
71 # public static void main(String[] args) {{
72 .method public static main([Ljava/lang/String;)V
171 const-string v5, "Unexpected error occurred which creating {farg} instance"
179 invoke-virtual {{v0}}, L{farg};->getName()Ljava/lang/String;
183 const-string v5, "{tree} calls %s\\n"
185 invoke-virtual {{v4,v5,v2}}, Ljava/io/PrintStream;->printf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
193 const-string v5, "{tree} threw AbstractMethodError"
197 const-string v5, "{tree} threw NoSuchMethodError"
201 const-string v5, "{tree} threw IncompatibleClassChangeError
    [all...]
  /art/test/970-iface-super-resolution-generated/util-src/
generate_smali.py 38 import string namespace
70 # public static void main(String[] args) {{
71 .method public static main([Ljava/lang/String;)V
159 const-string v3, "Testing {tree}"
164 const-string v3, "Success: testing {tree}"
173 const-string v4, "Failure: testing {tree}"
235 # public String getCalledInterface() {{
240 const-string v0, "Should not be called"
242 invoke-direct {{v1, v0}}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
252 const-string v1, "Test failures
    [all...]
  /art/test/971-iface-super/util-src/
generate_smali.py 39 import string namespace
71 # public static void main(String[] args) {{
72 .method public static main([Ljava/lang/String;)V
165 const-string v5, "Unexpected error occurred which creating {farg} instance"
250 const-string v1, "{class_name}.call(v) should never get called!"
251 invoke-direct {{v0, v1}}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
284 const-string v1, "Calling {iface_name}.super.call() on {tree}"
287 const-string v1, "No exception thrown for {iface_name}.super.call() on {tree}"
296 const-string v1, "AbstractMethodError thrown for {iface_name}.super.call() on {tree}"
300 const-string v1, "NoSuchMethodError thrown for {iface_name}.super.call() on {tree}
    [all...]
  /bionic/libc/tools/
gensyscalls.py 16 import string namespace
434 return_type = string.join(return_type[:-1],' ')
466 syscall_aliases = string.split(alias_list, ',')
472 params = string.join(syscall_params,',')
492 for arch in string.split(arch_list, ','):
  /cts/libs/json/src/com/android/json/stream/
JsonWriter.java 118 * malformed JSON string will fail with an {@link IllegalStateException}.
131 * A string containing a full set of spaces for a single level of
134 private String indent;
139 private String separator = ":";
154 * Sets the indentation string to be repeated for each level of indentation
159 * @param indent a string containing only whitespace.
161 public void setIndent(String indent) {
213 private JsonWriter open(JsonScope empty, String openBracket) throws IOException {
224 private JsonWriter close(JsonScope empty, JsonScope nonempty, String closeBracket)
259 public JsonWriter name(String name) throws IOException
353 private void string(String value) throws IOException { method in class:JsonWriter
    [all...]
  /cts/libs/vogar-expect/src/vogar/commands/
Command.java 47 private final List<String> args;
48 private final Map<String, String> env;
55 public Command(String... args) {
59 public Command(List<String> args) {
60 this.args = new ArrayList<String>(args);
69 this.args = new ArrayList<String>(builder.args);
75 String string = toString(); local
76 if (string.length() > builder.maxLength)
    [all...]

Completed in 1768 milliseconds

<<21222324252627282930>>