Searched defs:string (Results 51 - 75 of 144) sorted by relevance

123456

/frameworks/base/core/java/com/android/internal/util/
H A DPreconditions.java42 * 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...]
H A DFastXmlSerializer.java131 private void escapeAndAppendString(final String string) throws IOException { argument
132 final int N = string.length();
138 char c = string.charAt(pos);
142 if (lastPos < pos) append(string, lastPos, pos-lastPos);
146 if (lastPos < pos) append(string, lastPos, pos-lastPos);
/frameworks/base/core/java/com/android/server/
H A DNetworkManagementSocketTagger.java145 public static int kernelToTag(String string) { argument
146 int length = string.length();
148 return Long.decode(string.substring(0, length - 8)).intValue();
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c19 #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 Dusb.c23 #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 Dcom_android_pacprocessor_PacNative.cpp37 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 DTestSuiteBuilderTest.java159 private Predicate<TestMethod> testsWhoseNameContains(final String string) { argument
162 return testMethod.getName().contains(string);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java138 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/native/cmds/service/
H A Dservice.cpp25 #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 Dgenerate.py20 import string namespace
/frameworks/support/compat/java/android/support/v4/util/
H A DPreconditions.java45 * be converted to a string using {@link String#valueOf(Object)}
55 * Ensures that an string reference passed as a parameter to the calling
58 * @param string an string reference
59 * @return the string reference that was validated
60 * @throws IllegalArgumentException if {@code string} is empty
62 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) { argument
63 if (TextUtils.isEmpty(string)) {
66 return string;
70 * Ensures that an string referenc
79 checkStringNotEmpty(final T string, final Object errorMessage) argument
[all...]
/frameworks/av/media/libaudioprocessing/tests/
H A Dtest_utils.h57 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/libstagefright/codecs/on2/h264dec/source/
H A DH264SwDecApi.c40 #include <string.h>
82 void H264SwDecTrace(char *string) { argument
83 UNUSED(string);
H A DTestBenchMultipleInstance.c23 #include <string.h>
396 void H264SwDecTrace(char *string) argument
405 fwrite(string, 1, strlen(string), fp);
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp116 bool MtpDataPacket::getString(MtpStringBuffer& string) argument
118 return string.readFromPacket(this);
417 void MtpDataPacket::putString(const MtpStringBuffer& string) {
418 string.writeToPacket(this);
422 MtpStringBuffer string(s);
423 string.writeToPacket(this);
426 void MtpDataPacket::putString(const uint16_t* string) {
429 if (string[i])
436 putUInt16(string[i]);
437 // only terminate with zero if string i
[all...]
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java299 * @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 Dcom_android_internal_net_NetworkStatsFactory.cpp116 jstring string = (jstring)env->GetObjectArrayElement(limitIfacesObj, i); local
117 ScopedUtfChars string8(env, string);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java331 * is pure string, we need to convert it to quoted string.
416 protected static String convertToQuotedString(String string) { argument
417 return "\"" + string + "\"";
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java186 // replacement with empty string
221 // A single trailing emtpy string should be ignored.
225 private void stringSplitterTestHelper(String string, String[] expectedStrings) { argument
227 splitter.setString(string);
332 // Does the output string actually fit in the space?
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcuts.java181 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
776 StringDrawableContainer(String string, Drawable drawable) argument
[all...]
/frameworks/base/tools/aapt/
H A DXMLNode.h91 String16 string; member in struct:XMLNode::attribute_entry
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp35 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 DWifiP2pDevice.java37 * 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 Dserialization.h10 #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 Dgenheaders.py24 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

Completed in 583 milliseconds

123456