/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
TestIDNARef.java | 130 errln("convertToUnicode did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); 145 errln("convertToUnicode did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); 160 errln("Did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); 187 errln("convertToUnicode did not get the expected exception for source: " +src +" Got: "+ ex.toString()); 201 errln("convertToUnicode did not get the expected exception for source: " +src +" Got: "+ ex.toString()); 216 errln("Did not get the expected exception for source: " +src +" Got: "+ ex.toString()); 242 errln("convertToASCII did not get the expected exception for source: " +src +" Got: "+ ex.toString()); 257 errln("convertToASCII did not get the expected exception for source: " +src +" Got: "+ ex.toString()); 272 errln("convertToASCII did not get the expected exception for source: " +src +" Got: "+ ex.toString()); 298 errln("convertToIDNAReferenceASCII did not get the expected exception for source: " +src +" Got: "+ ex.toString()) 494 StringBuffer source = new StringBuffer(www); local 629 StringBuffer source = new StringBuffer(www); local [all...] |
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
MetadataManager.java | 185 InputStream source = metadataLoader.loadMetadata(fileName); local 186 if (source == null) { 190 PhoneMetadataCollection metadataCollection = loadMetadataAndCloseInput(source); 202 * @param source the non-null stream from which metadata is to be read 205 private static PhoneMetadataCollection loadMetadataAndCloseInput(InputStream source) { 209 ois = new ObjectInputStream(source); 223 // This will close all underlying streams as well, including source. 226 source.close();
|
/external/mockito/src/main/java/org/mockito/internal/creation/ |
MockSettingsImpl.java | 229 private static <T> CreationSettings<T> validatedSettings(Class<T> typeToMock, CreationSettings<T> source) { 233 validator.validateExtraInterfaces(typeToMock, source.getExtraInterfaces()); 234 validator.validateMockedType(typeToMock, source.getSpiedInstance()); 239 validator.validateConstructorUse(source.isUsingConstructor(), source.getSerializableMode()); 243 CreationSettings<T> settings = new CreationSettings<T>(source); 244 settings.setMockName(new MockNameImpl(source.getName(), typeToMock)); 246 settings.setExtraInterfaces(prepareExtraInterfaces(source));
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
OkUrlFactoryTest.java | 28 import static okio.Okio.source; 179 BufferedSource source = buffer(source(connection.getInputStream())); local 180 String actual = source.readString(US_ASCII); 181 source.close();
|
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/ |
WebSocketReader.java | 27 import okio.Source; 62 private final BufferedSource source; field in class:WebSocketReader 65 private final Source framedMessageSource = new FramedMessageSource(); 81 public WebSocketReader(boolean isClient, BufferedSource source, FrameCallback frameCallback) { 82 if (source == null) throw new NullPointerException("source == null"); 85 this.source = source; 110 int b0 = source.readByte() & 0xff; 129 int b1 = source.readByte() & 0xff 226 final BufferedSource source = Okio.buffer(framedMessageSource); local [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
GzipSourceTest.java | 204 GzipSource source = new GzipSource(gzipped); local 205 while (source.read(result, Integer.MAX_VALUE) != -1) { 210 /** This source keeps track of whether its read has returned -1. */ 211 static class ExhaustableSource implements Source { 212 private final Source source; field in class:GzipSourceTest.ExhaustableSource 215 ExhaustableSource(Source source) { 216 this.source = source; [all...] |
/frameworks/base/telephony/java/android/telephony/mbms/ |
DownloadRequest.java | 2 * Copyright (C) 2017 The Android Open Source Project 63 private Uri source; field in class:DownloadRequest.SerializationDataContainer 73 source = request.sourceUri; 84 objectOutput.writeUTF(source.toString()); 94 source = Uri.parse(objectInput.readUTF()); 104 private Uri source; field in class:DownloadRequest.Builder 139 builder = new Builder(dataContainer.source, dataContainer.destination); 157 * @param sourceUri the source URI for the DownloadRequest to be built. This URI should 167 throw new IllegalArgumentException("Source and destination URIs must be non-null."); 169 source = sourceUri [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
ParallaxEffect.java | 2 * Copyright (C) 2016 The Android Open Source Project 36 * values that source variables can take. The main function is 59 * source variables can take. 82 * source variables can take. 168 * Creates a {@link ParallaxTarget} using direct mapping from source property into target 204 public final void performMapping(Parallax source) { 209 source.verifyIntProperties(); 211 source.verifyFloatProperties(); 220 directValue = calculateDirectValue(source); 226 fraction = calculateFraction(source); [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
InstallPackageTask.java | 2 * Copyright 2014, The Android Open Source Project 142 File source = new File(packageLocation); local 147 try (FileInputStream in = new FileInputStream(source); 148 OutputStream out = session.openWrite(source.getName(), 0, -1)) { 170 source.delete();
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
OptionCopierTest.java | 2 * Copyright (C) 2012 The Android Open Source Project 68 * Option source with an option with same name as OptionSource, but a different type. 76 * Option source with an option with same name as OptionSource, but only the primitive type of 85 * Option source with an option with same name as OptionSource, and with a different primitive 93 /** Option source with a non-initialized collection. */ 100 * Option source with an option with same name as OptionSource, but a different type. 136 OptionSource source = new OptionSource(); local 138 OptionCopier.copyOptions(source, dest); 139 assertEquals(source.mMyOption, dest.mDestOption); 145 OptionSource source = new OptionSource() local 154 OptionSource source = new OptionSource(); local 167 OptionSource source = new OptionSource(); local 176 OptionSource source = new OptionSource(); local 189 OptionSource source = new OptionSource(); local 201 OptionSource source = new OptionSource(); local 214 OptionSource source = new OptionSource(); local 228 OptionCollectionWrongTypeDest source = new OptionCollectionWrongTypeDest(); local 247 OptionCollectionWrongTypeDest source = new OptionCollectionWrongTypeDest(); local 262 OptionCollectionWrongPrimitiveTypeDest source = local 281 OptionCollectionNull source = new OptionCollectionNull(); local [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiConfiguration.java | 2 * Copyright (C) 2008 The Android Open Source Project [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
Http1xStream.java | 2 * Copyright (C) 2012 The Android Open Source Project 35 import okio.Source; 51 * <li>Open a source to read the response body. Either {@link 54 * <li>Read from and close that source. 59 * closing that source. 72 private final BufferedSource source; field in class:Http1xStream 77 public Http1xStream(StreamAllocation streamAllocation, BufferedSource source, BufferedSink sink) { 79 this.source = source; 131 Source source = getTransferStream(response) local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
DocumentBuilderImpl.java | 2 * Copyright (C) 2007 The Android Open Source Project 91 public Document parse(InputSource source) throws SAXException, IOException { 92 if (source == null) { 93 throw new IllegalArgumentException("source == null"); 99 String inputEncoding = source.getEncoding(); 100 String systemId = source.getSystemId(); 110 if (source.getByteStream() != null) { 111 parser.setInput(source.getByteStream(), inputEncoding); 112 } else if (source.getCharacterStream() != null) { 113 parser.setInput(source.getCharacterStream()) [all...] |
/art/compiler/optimizing/ |
parallel_move_resolver.cc | 2 * Copyright (C) 2014 The Android Open Source Project 26 // moves to perform, ignoring any move that is redundant (the source is 104 // Update the source of `move`, knowing that `updated_location` has been swapped 108 Location source = move->GetSource(); local 109 if (LowOf(updated_location).Equals(source)) { 111 } else if (HighOf(updated_location).Equals(source)) { 114 DCHECK(updated_location.Equals(source)) << updated_location << " " << source; local 124 // which means that a call to PerformMove could change any source operand 143 // dependencies. Any unperformed, unpending move with a source the sam 220 Location source = move->GetSource(); local 330 Location source = move->GetSource(); local 448 Location source = move->GetSource(); local [all...] |
/bionic/libc/kernel/uapi/linux/ |
fsl_hypervisor.h | 11 *** source file (e.g. under external/kernel-headers/original/) then 43 __u32 source; member in struct:fsl_hv_ioctl_memcpy
|
/bionic/libc/kernel/uapi/xen/ |
gntdev.h | 11 *** source file (e.g. under external/kernel-headers/original/) then 64 } source, dest; member in struct:gntdev_grant_copy_segment
|
/build/make/core/ |
apidiff.mk | 2 # Copyright (C) 2017 The Android Open Source Project 97 define prepare-doc-source-list 155 $(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \
|
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
CtsJankTestBase.java | 2 * Copyright (C) 2015 The Android Open Source Project 36 private void printIntValueWithKey(String source, Bundle metrics, String key, 41 mLog.addValue(source, formatKeyForTestMetrics(key), metrics.getInt(key), resultType, resultUnit); 44 private void printDoubleValueWithKey(String source, Bundle metrics, String key, 49 mLog.addValue(source, formatKeyForTestMetrics(key), metrics.getDouble(key), resultType, 59 String source = String.format("%s#%s", getClass().getCanonicalName(), getName()); local 60 printDoubleValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_AVG_FPS, 62 printDoubleValueWithKey(source, metrics, 65 printIntValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_MAX_NUM_JANKY, 71 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_NUM_JANKY [all...] |
/cts/tests/tests/sax/src/android/sax/cts/ |
ElementTest.java | 2 * Copyright (C) 2010 The Android Open Source Project 124 InputSource source = new InputSource(new StringReader(XMLFILE)); local 125 xmlReader.parse(source);
|
/cts/tests/tests/text/src/android/text/style/cts/ |
ImageSpanTest.java | 2 * Copyright (C) 2008 The Android Open Source Project 102 String source = "cts test."; local 103 imageSpan = new ImageSpan(d, source); 104 assertEquals(source, imageSpan.getSource()); 106 source = "content://user/a/b"; 107 imageSpan = new ImageSpan(mContext, Uri.parse(source)); 108 assertEquals(source, imageSpan.getSource());
|
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioGroup_LayoutParamsTest.java | 2 * Copyright (C) 2008 The Android Open Source Project 94 ViewGroup.MarginLayoutParams source = new ViewGroup.MarginLayoutParams(10, 20); local 95 source.leftMargin = 1; 96 source.topMargin = 2; 97 source.rightMargin = 3; 98 source.bottomMargin = 4; 100 mLayoutParams = new RadioGroup.LayoutParams(source);
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/ |
DigitalAssetLinksRepository.java | 2 * Copyright (C) 2017 The Android Open Source Project 16 package com.example.android.autofill.service.data.source.local; 23 import com.example.android.autofill.service.data.source.DalService; 24 import com.example.android.autofill.service.data.source.DigitalAssetLinksDataSource;
|
LocalAutofillDataSource.java | 2 * Copyright (C) 2017 The Android Open Source Project 17 package com.example.android.autofill.service.data.source.local; 23 import com.example.android.autofill.service.data.source.AutofillDataSource; 24 import com.example.android.autofill.service.data.source.local.dao.AutofillDao;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
BigFractionFormat.java | 186 * @param source the string to parse 192 public BigFraction parse(final String source) throws ParseException { 194 final BigFraction result = parse(source, parsePosition); 198 LocalizedFormats.UNPARSEABLE_FRACTION_NUMBER, source); local 206 * @param source the string to parse 211 public BigFraction parse(final String source, final ParsePosition pos) { 215 parseAndIgnoreWhitespace(source, pos); 218 final BigInteger num = parseNextBigInteger(source, pos); 229 final char c = parseNextCharacter(source, pos); 248 parseAndIgnoreWhitespace(source, pos) [all...] |
FractionFormat.java | 197 * @param source the string to parse 203 public Fraction parse(final String source) throws ParseException { 205 final Fraction result = parse(source, parsePosition); 209 LocalizedFormats.UNPARSEABLE_FRACTION_NUMBER, source); local 217 * @param source the string to parse 222 public Fraction parse(final String source, final ParsePosition pos) { 226 parseAndIgnoreWhitespace(source, pos); 229 final Number num = getNumeratorFormat().parse(source, pos); 240 final char c = parseNextCharacter(source, pos); 259 parseAndIgnoreWhitespace(source, pos) [all...] |