/frameworks/base/core/java/android/util/ |
H A D | 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 156 * Sets the indentation string to be repeated for each level of indentation 161 * @param indent a string containing only whitespace. 289 string(name); 296 * @param value the literal string value, or null to encode a null literal. 304 string(value); 369 String string = value.toString(); 371 (string.equals("-Infinity") || string 400 private void string(String value) throws IOException { method in class:JsonWriter [all...] |
H A D | Rational.java | 248 * Return a string representation of this rational, e.g. {@code "1/2"}. 549 * Parses the specified string as a rational value. 560 * where <i>num</i> and <i>den</i> are string integers potentially 569 * @param string the string representation of a rational value. 570 * @return the rational value represented by {@code string}. 572 * @throws NumberFormatException if {@code string} cannot be parsed 574 * @throws NullPointerException if {@code string} was {@code null} 576 public static Rational parseRational(String string) argument 578 checkNotNull(string, "strin [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | Preconditions.java | 42 * be converted to a string using {@link String#valueOf(Object)} 56 * be converted to a string using {@link String#format(String, Object...)} 69 * Ensures that an string reference passed as a parameter to the calling 72 * @param string an string reference 73 * @return the string reference that was validated 74 * @throws IllegalArgumentException if {@code string} is empty 76 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) { argument 77 if (TextUtils.isEmpty(string)) { 80 return string; 93 checkStringNotEmpty(final T string, final Object errorMessage) argument [all...] |
/frameworks/base/core/java/com/android/server/ |
H A D | NetworkManagementSocketTagger.java | 149 public static int kernelToTag(String string) { argument 150 int length = string.length(); 152 return Long.decode(string.substring(0, length - 8)).intValue();
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A D | WordIteratorTest.java | 50 private void setCharSequence(String string) { argument 51 mWordIterator.setCharSequence(string, 0, string.length()); 179 // The first 'n' is more than 50 characters into the string.
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 19 #include <string.h> 77 static void send_string(struct usb_device *device, int index, const char* string) { argument 79 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | usb.c | 23 #include <string.h> 78 static void send_string(struct usb_device *device, int index, const char* string) { argument 80 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
|
/frameworks/base/packages/services/PacProcessor/jni/ |
H A D | com_android_pacprocessor_PacNative.cpp | 37 ALOGD("Alert: %s", str.string()); 41 ALOGE("Error: %s", str.string()); 57 jstring string16ToJstring(JNIEnv* env, String16 string) { argument 58 const char16_t* str = string.string(); 59 size_t len = string.size(); 124 ALOGE("Error Running PAC: %s", ret8.string());
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
H A D | TestSuiteBuilderTest.java | 172 private Predicate<TestMethod> testsWhoseNameContains(final String string) { argument 175 return testMethod.getName().contains(string);
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | CustomBar.java | 138 protected TextView setText(int index, String string, boolean reference) { argument 142 setText(textView, string, reference); 149 private void setText(TextView textView, String string, boolean reference) { argument 151 ResourceValue value = getResourceValue(string); 153 string = value.getValue(); 156 textView.setText(string); 235 * @throws NumberFormatException if color resolved to an invalid string.
|
/frameworks/minikin/libs/minikin/ |
H A D | StringPiece.h | 21 #include <string> 31 StringPiece(const std::string& str) : mData(str.data()), mLength(str.size()) {} 52 std::string toString() const { return std::string(mData, mData + mLength); } 90 SplitIterator(const StringPiece& string, char delimiter) argument 91 : mStarted(false), mCurrent(0), mString(string), mDelimiter(delimiter) {}
|
/frameworks/native/cmds/service/ |
H A D | service.cpp | 25 #include <string.h> 31 void writeString16(Parcel& parcel, const char* string) argument 33 if (string != NULL) 35 parcel.writeString16(String16(string)); 163 aerr << "service: no string supplied for 's16'" << endl; 310 " s16: Write the UTF-16 string STR into the send parcel.\n";
|
/frameworks/rs/rsov/compiler/spirit/ |
H A D | generate.py | 20 import string namespace
|
/frameworks/av/media/libaudioprocessing/tests/ |
H A D | test_utils.h | 57 static inline int parseCSV(const char *string, std::vector<int>& values) argument 62 for (const char *p = string; ; ) { 72 values[0] = atoi(p = string);
|
/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.cpp | 117 bool MtpDataPacket::getString(MtpStringBuffer& string) argument 119 return string.readFromPacket(this); 418 void MtpDataPacket::putString(const MtpStringBuffer& string) { 419 string.writeToPacket(this); 423 MtpStringBuffer string(s); 424 string.writeToPacket(this); 427 void MtpDataPacket::putString(const uint16_t* string) { 430 if (string[i]) 437 putUInt16(string[i]); 438 // only terminate with zero if string i [all...] |
/frameworks/base/core/java/android/net/http/ |
H A D | SslCertificate.java | 299 * @return A string representation of this certificate for debugging 309 private static Date parseDate(String string) { argument 311 return new SimpleDateFormat(ISO_8601_DATE_FORMAT).parse(string); 318 * Format a date as an ISO 8601 string, return "" for a null date 367 * Creates a new {@code DName} from a string. The attributes 409 // thrown if there is an error parsing the string 501 * Formats the certificate date to a properly localized date string. 502 * @return Properly localized version of the certificate date string and
|
/frameworks/base/core/jni/ |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 97 const std::vector<std::string>& limitIfaces, 293 std::vector<std::string> limitIfaces; 297 jstring string = (jstring)env->GetObjectArrayElement(limitIfacesObj, i); local 298 ScopedUtfChars string8(env, string); 300 limitIfaces.push_back(std::string(string8.c_str()));
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestBase.java | 325 * is pure string, we need to convert it to quoted string. 410 protected static String convertToQuotedString(String string) { argument 411 return "\"" + string + "\"";
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | TextUtilsTest.java | 190 // replacement with empty string 225 // A single trailing emtpy string should be ignored. 229 private void stringSplitterTestHelper(String string, String[] expectedStrings) { argument 231 splitter.setString(string); 336 // Does the output string actually fit in the space?
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | KeyboardShortcuts.java | 181 KeyEvent.KEYCODE_HOME, context.getString(R.string.keyboard_key_home)); 183 KeyEvent.KEYCODE_BACK, context.getString(R.string.keyboard_key_back)); 185 KeyEvent.KEYCODE_DPAD_UP, context.getString(R.string.keyboard_key_dpad_up)); 187 KeyEvent.KEYCODE_DPAD_DOWN, context.getString(R.string.keyboard_key_dpad_down)); 189 KeyEvent.KEYCODE_DPAD_LEFT, context.getString(R.string.keyboard_key_dpad_left)); 191 KeyEvent.KEYCODE_DPAD_RIGHT, context.getString(R.string.keyboard_key_dpad_right)); 193 KeyEvent.KEYCODE_DPAD_CENTER, context.getString(R.string.keyboard_key_dpad_center)); 196 KeyEvent.KEYCODE_TAB, context.getString(R.string.keyboard_key_tab)); 198 KeyEvent.KEYCODE_SPACE, context.getString(R.string.keyboard_key_space)); 200 KeyEvent.KEYCODE_ENTER, context.getString(R.string 779 StringDrawableContainer(String string, Drawable drawable) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | XMLNode.h | 91 String16 string; member in struct:XMLNode::attribute_entry
|
/frameworks/base/tools/aapt2/compile/ |
H A D | PseudolocaleGenerator.cpp | 35 Maybe<std::string> tag; 37 // The UTF-16 index into the string where this span starts. 40 // The UTF-16 index into the string where this span ends, inclusive. 66 static std::vector<UnifiedSpan> MergeSpans(const StyledString& string) { argument 69 sorted_spans.reserve(string.value->spans.size()); 70 std::transform(string.value->spans.begin(), string.value->spans.end(), 78 sorted_untranslatable_sections.reserve(string.untranslatable_sections.size()); 79 std::transform(string.untranslatable_sections.begin(), string 111 PseudolocalizeStyledString(StyledString* string, Pseudolocalizer::Method method, StringPool* pool) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDevice.java | 37 * The device name is a user friendly string to identify a Wi-Fi p2p device 123 /** Detailed device string pattern with WFD info 164 * @param string formats supported include 180 public WifiP2pDevice(String string) throws IllegalArgumentException { argument 181 String[] tokens = string.split("[ \n]"); 191 deviceAddress = string; 194 match = twoTokenPattern.matcher(string); 201 match = threeTokenPattern.matcher(string); 208 match = detailedDevicePattern.matcher(string); 408 Log.e(TAG, "Failed to parse hex string " [all...] |
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | serialization.h | 10 #include <string> 51 // * std::string. 162 operator std::string() const { 254 inline constexpr std::size_t GetSerializedSize(const std::string&); 307 // Overload for std::string. 308 inline constexpr std::size_t GetSerializedSize(const std::string& s) { 310 s.length() * sizeof(std::string::value_type); 450 // SerializeRaw() converts a primitive array or type into a raw byte string. 461 // Serializes a primitive array into a raw byte string. 519 // Serializes the type code for string type [all...] |
/frameworks/native/opengl/tools/glgen2/registry/ |
H A D | genheaders.py | 24 import sys, time, pdb, string, cProfile namespace 32 # target - string name of target header, or all targets if None 113 # Turn a list of strings into a regexp string matching exactly those strings
|