/frameworks/base/core/java/com/android/server/backup/ |
AccountSyncSettingsBackupHelper.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 307 // Error in writing to stash file 323 DataInputStream in = new DataInputStream(fIn); local 324 jsonString = in.readUTF(); 354 * @return Accounts in a HashSet. 376 * syncEnabled=true in restore data. 377 * syncEnabled will be true on this device. isSyncable will be left as the default in order to 380 * syncEnabled=false in restore data. 382 * old device in which case it will be set to 0 on this device. This is because isSyncable=0 i [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
Icon.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 102 * @return The type of image data held in this Icon. One of 237 * @param context {@link android.content.Context Context} in which to load the drawable; see 255 * @param context {@link Context Context} in which to load the drawable; see 272 * @param context {@link android.content.Context Context} in which to load the drawable; used 539 * @param resPackage Name of the package containing the resource in question 553 * Create an Icon pointing to a bitmap in memory. 566 * Create an Icon pointing to a bitmap in memory that follows the icon design guideline defined 580 * Create an Icon pointing to a compressed bitmap stored in a byte array [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
ExifInterfaceTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 324 InputStream in = null; local 326 in = mContext.getAssets().open(imageFile.getName()); 327 exifInterface = new ExifInterface(in); 330 IoUtils.closeQuietly(in); 334 in = null; 336 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); 337 exifInterface = new ExifInterface(in); 340 IoUtils.closeQuietly(in); 413 InputStream in = null; local [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
PackageManagerBackupAgent.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 79 // version & signature info of each app in a restore set 110 // in backup. This set changes as apps are installed & removed. 247 * String incremental -- the incremental release name of the OS stored in 285 // metadata again. In either case, take it out of mExisting so that 308 // marshal the version code in a canonical form 325 // At this point, the only entries in 'existing' are apps that were 326 // mentioned in the saved state file, but appear to no longer be present 358 // set of app signatures associated with each backed-up app in this restor 510 DataInputStream in = new DataInputStream(inbuffer); local [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
NetdEventListenerService.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 69 // TODO: dedup this String constant with the one used in 94 // Callback should only be registered/unregistered when logging is being enabled/disabled in DPM 246 private static <T> void flushProtos(List<IpConnectivityEvent> out, SparseArray<T> in, 248 for (int i = 0; i < in.size(); i++) { 249 out.add(mapper.apply(in.valueAt(i))); 251 in.clear(); 257 // Let the caller control that by passing in the line separator explicitly.
|
/frameworks/base/telecomm/java/android/telecom/ |
ParcelableCallAnalytics.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 43 public VideoEvent createFromParcel(Parcel in) { 44 return new VideoEvent(in); 63 VideoEvent(Parcel in) { 64 mEventName = in.readInt(); 65 mTimeSinceLastEvent = in.readLong(); 66 mVideoState = in.readInt(); 142 public AnalyticsEvent createFromParcel(Parcel in) { 143 return new AnalyticsEvent(in); [all...] |
/frameworks/base/tests/net/java/com/android/server/net/ |
NetworkStatsCollectionTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 188 // assert that we report boundary in atomic buckets 209 // Record one entry for another UID in this user. 219 // Record one entry for a UID in a different user. 233 // Verify security check in getHistory. 244 // Verify appropriate aggregation in getSummary. 261 // We're in the future, but not that far off 264 // Test a bunch of plans that should result in no augmentation 272 // Usage anchor far in pas 510 InputStream in = null; local [all...] |
/frameworks/base/tools/aapt2/compile/ |
PngCrunch.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 84 io::InputStream* in = (io::InputStream*)png_get_io_ptr(png_ptr); local 88 if (!in->Next(&in_buffer, &in_len)) { 89 if (in->HadError()) { 92 if (!in->GetError().empty()) { 93 error_msg_builder << ": " << in->GetError(); 104 in->BackUp(in_len - bytes_read); 144 std::unique_ptr<Image> ReadPng(IAaptContext* context, const Source& source, io::InputStream* in) { 152 if (!in->Next((const void**)&signature, &buffer_size)) [all...] |
/frameworks/compile/mclinker/lib/Object/ |
ObjectLinker.cpp | 288 // in object files. 315 SectionMap::Output::iterator in, inBegin, inEnd; local 324 for (in = inBegin; in != inEnd; ++in) { 325 LDSection* in_sect = (*in)->getSection(); 412 SectionMap::Output::iterator in, inBegin, inEnd; local 416 for (in = inBegin; in != inEnd; ++in) { [all...] |
/frameworks/multidex/library/src/android/support/multidex/ |
MultiDexExtractor.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 41 * Exposes application secondary dex files as files in the application data 87 * Extracts application secondary dexes into files in the application data 202 * Compare current archive and crc with values stored in {@link SharedPreferences}. Should be 236 // Ensure that whatever deletions happen in prepareDexDir only happen if the zip that 237 // contains a secondary dex file in there is not consistent with the latest apk. Otherwise, 373 InputStream in = apk.getInputStream(dexFile); local 375 // Temp files must not start with extractedFilePrefix to get cleaned up in prepareDexDir() 388 int length = in.read(buffer) [all...] |
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
Filters.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 41 Object in, Type outputType); 42 public void forEach(Allocation in, Allocation out); 47 Object in, Type outputType) { 48 return builder.addKernel(getKernelID(), outputType, in); 63 void forEach(Allocation in, Allocation out) { s.forEach_(in, out); } 78 public void forEach(Allocation in, Allocation out) { s_mat.forEach_colormatrix(in, out); 386 ScriptGroup.Input in = b2.addInput(); local [all...] |
/hardware/libhardware_legacy/audio/ |
audio_hw_hal.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 274 const struct legacy_stream_in *in = local 276 return in->legacy_in->sampleRate(); 281 struct legacy_stream_in *in = local 291 const struct legacy_stream_in *in = local 293 return in->legacy_in->bufferSize(); 298 const struct legacy_stream_in *in = local 300 return (audio_channel_mask_t) in->legacy_in->channels(); 305 const struct legacy_stream_in *in local 313 struct legacy_stream_in *in = local 322 struct legacy_stream_in *in = reinterpret_cast<struct legacy_stream_in *>(stream); local 328 const struct legacy_stream_in *in = local 336 struct legacy_stream_in *in = local 355 const struct legacy_stream_in *in = local 375 struct legacy_stream_in *in = local 383 struct legacy_stream_in *in = local 390 struct legacy_stream_in *in = local 397 const struct legacy_stream_in *in = local 404 const struct legacy_stream_in *in = local 565 struct legacy_stream_in *in; local 611 struct legacy_stream_in *in = local [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
audio_hw_hal.cpp | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 294 const struct qcom_stream_in *in = local 296 return in->qcom_in->sampleRate(); 301 struct qcom_stream_in *in = local 311 const struct qcom_stream_in *in = local 313 return in->qcom_in->bufferSize(); 318 const struct qcom_stream_in *in = local 320 return in->qcom_in->channels(); 325 const struct qcom_stream_in *in local 332 struct qcom_stream_in *in = local 341 struct qcom_stream_in *in = reinterpret_cast<struct qcom_stream_in *>(stream); local 347 const struct qcom_stream_in *in = local 355 struct qcom_stream_in *in = local 374 const struct qcom_stream_in *in = local 394 struct qcom_stream_in *in = local 402 struct qcom_stream_in *in = local 409 struct qcom_stream_in *in = local 416 const struct qcom_stream_in *in = local 423 const struct qcom_stream_in *in = local 631 struct qcom_stream_in *in; local 679 struct qcom_stream_in *in = local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
OutputStreamWriterTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 44 static private final String source = "This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese"; 416 InputStreamReader in = new InputStreamReader(fis); local 418 int b = in.read(); 474 assertEquals("Error when reading bytes in " 528 assertEquals("Error when reading bytes in " 548 assertTrue("Used in tests", true);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
PreferencesTest.java | 5 * (the "License"); you may not use this file except in compliance with 10 * Unless required by applicable law or agreed to in writing, software 52 private InputStream in; field in class:PreferencesTest 62 in = new ByteArrayInputStream(PREFS.getBytes(StandardCharsets.US_ASCII)); 63 stream = new MockInputStream(in); 151 in = PreferencesTest.class 153 Preferences.importPreferences(in); 162 in = PreferencesTest.class.getResourceAsStream( 165 Preferences.importPreferences(in); 186 InputStream in = new ByteArrayInputStream(source) local [all...] |
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 20 * This file is in the public domain, so clarified as of 58 * <p>As the data uses 32 bits to store the time in seconds the time range is limited to roughly 106 * {@link #readObject(ObjectInputStream)} to correct an inconsistency in the previous version 114 * The times (in seconds) at which the offsets changes for any reason, whether that is a change 115 * in the offset from UTC or a change in the DST. 118 * future) and stored in a file from which {@link ZoneInfo#readTimeZone(String, BufferIterator, 120 * essentially human readable rules (e.g. DST starts at 01:00 on the first Sunday in March an [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
StringTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 44 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 46 int inLength = in.remaining(); 48 in.put((byte) 'X'); 66 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 67 int inLength = in.remaining(); 69 in.put('x'); 262 fail("Expected " + a + " to equal " + b + " in " + locale); 286 fail("Expected " + a + " to equal " + b + " in " + locale) [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
DecimalFormatSymbolsTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 31 // returns "en_US.UTF-8". bionic before L returned NULL and in L returns "C.UTF-8", both 54 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes)); local 55 DecimalFormatSymbols deserializedDfs = (DecimalFormatSymbols) in.readObject(); 56 assertEquals(-1, in.read()); 103 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes)); local 104 DecimalFormatSymbols deserializedDfs = (DecimalFormatSymbols) in.readObject(); 105 assertEquals(-1, in.read()); 120 // This test case exists to verify that java.text.DecimalFormatSymbols in Android gets som [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
DefaultHostnameVerifierTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 141 // Confirm that neither of the parameters used later in the test cause the verifier to blow 415 // Verify using a certificate where the pattern is in the CN 421 // Verify using a certificate where the pattern is in a DNS SubjectAltName 428 // Assert that in both cases the verifier gives the same result 430 fail("Different results between pattern in CN and SubjectAltName." 432 + ", when pattern in CN: " + resultWhenPatternInCn 433 + ", when pattern in SubjectAltName: " + resultWhenPatternInSubjectAltName); 449 InputStream in = new ByteArrayInputStream(encoded.getBytes(StandardCharsets.US_ASCII)) local [all...] |
/libcore/ojluni/src/main/java/java/net/ |
DatagramSocket.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 44 * one machine to another may be routed differently, and may arrive in 49 * to allow the transmission of broadcast datagrams. In order to receive 51 * In some implementations, broadcast packets may also be received when 156 // to enable it to be recorded as the pendingConnectException. It has been enclosed in a 161 // Android-changed: Added special handling for AbstractPlainDatagramSocketImpl in 205 * This could result in a SecurityException. 243 * This could result in a SecurityException [all...] |
Socket.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 95 * as its arguments. This could result in a SecurityException. 166 * @exception SocketException if there is an error in the underlying protocol, 185 * In other words, it is equivalent to specifying an address of the 195 * as its arguments. This could result in a SecurityException. 231 * as its arguments. This could result in a SecurityException. 259 * In other words, it is equivalent to specifying an address of the 263 * free port in the {@code bind} operation.</p [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
ZipFile.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 58 * or method in this class will cause a {@link NullPointerException} to be 125 * <code>File</code> object in the specified mode. The mode argument 136 * @param mode the mode in which the file is to be opened 170 * <code>File</code> object in the specified mode. The mode argument 178 * @param mode the mode in which the file is to be opened 218 // Android-changed, handle OPEN_DELETE case in #close(). 360 * <p> Closing this ZIP file will, in turn, close all inpu 375 ZipFileInputStream in = null; local [all...] |
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
PKCS7.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 56 * PKCS7 as defined in RSA Laboratories PKCS7 Technical Note. Profile 80 // BEGIN Android-removed: unused in Android 115 * @param in an input stream holding at least one PKCS7 block. 119 public PKCS7(InputStream in) throws ParsingException, IOException { 120 DataInputStream dis = new DataInputStream(in); 405 DerInputStream in = signerInfoVals[i].toDerInputStream(); local 406 signerInfos[i] = new SignerInfo(in); 486 DerInputStream in = signerInfoVals[i].toDerInputStream(); local [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
DerValue.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 91 * in all contexts. (Mask with 0x1f -- five bits.) 183 * Returns true iff the CONTEXT SPECIFIC bit is set in the type tag. 200 /** Returns true iff the CONSTRUCTED bit is set in the type tag. */ 255 DerValue(DerInputBuffer in, boolean originalEncodedFormRetained) 260 int startPosInInput = in.getPos(); 261 tag = (byte)in.read(); 262 byte lenByte = (byte)in.read() 500 DerInputStream in = new DerInputStream(bytes); local [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
X509CertInfo.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 55 * <LI>A <em>Serial Number</em> assigned by the CA, for use in 149 DerValue in = new DerValue(cert); local 151 parse(in); 625 DerInputStream in; local 633 in = val.data; 636 tmp = in.getDerValue(); 639 tmp = in.getDerValue() [all...] |