/external/webp/src/utils/ |
quant_levels_dec_utils.c | 4 // that can be found in the COPYING file in the root of the source 6 // in the file PATENTS. All contributing project authors may 7 // be found in the AUTHORS file in the root of the source tree. 35 { 0, 8, 2, 10 }, // coefficients are in DFIX fixed-point precision 47 int stride_; // stride in bytes 53 int scale_; // normalization factor, in FIX bits precision 110 const uint16_t* const in = p->end_; local 118 const uint16_t delta = in[x + r - 1] + in[r - x] [all...] |
/frameworks/av/media/libaudioprocessing/ |
AudioResamplerDyn.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 124 // copy in the input data into the head (impulse+halfNumCoefs) of the buffer. 128 const TI* const in, const size_t inputIndex) 132 head[i] = in[inputIndex*CHANNELS + i]; 136 // advance the impulse pointer, and load in data into the head (impulse+halfNumCoefs) 140 const TI* const in, const size_t inputIndex) 149 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); 365 // determine the number of polyphases in the filterbank. 404 mPhaseFraction %= phaseWrapLimit; // should not do anything, but just in case 567 const TI* const in = reinterpret_cast<const TI*>(mBuffer.raw); local [all...] |
/frameworks/av/media/libaudioprocessing/tests/ |
test-resampler.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 60 fprintf(stderr," -O # frames output per call to resample() in CSV format\n"); 61 fprintf(stderr," -P # frames provided per call to resample() in CSV format\n"); 65 // Convert a list of integers in CSV format to a Vector of those values. 66 // Returns the number of elements in the list, or -1 on error. 232 int16_t* in = (int16_t*)input_vaddr; local 238 in[i*channels + j] = yi / (1 + j); 263 const size_t mFrameSize; // size of each frame in bytes 267 size_t mNextPidx; // index of next entry in mPvalues to us [all...] |
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
RgbPlayerActivity.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 185 FileInputStream in = new FileInputStream(filename); local 187 in.read(mImageBytes);
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
TarBackupReader.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 136 // tar link indicator field: 1 byte at offset 156 in the header. 160 Slog.w(TAG, "Directory entry with nonzero size in header"); 168 Slog.w(TAG, "Saw type=0 in tar header block, info=" + info); 183 // File in shared storage. !!! TODO: implement this. 188 Slog.i(TAG, "File in shared storage: " + info.path); 200 throw new IOException("Illegal semantic path in " + info.path); 211 throw new IOException("Illegal semantic path in non-manifest " 220 Slog.e(TAG, "Parse error in header: " + e.getMessage()) 582 DataInputStream in = new DataInputStream(bin); local [all...] |
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
FingerprintsUserState.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 117 // Not the most efficient algorithm in the world, but there shouldn't be more than 10 206 FileInputStream in; local 211 in = new FileInputStream(mFile); 218 parser.setInput(in, null); 225 IoUtils.closeQuietly(in);
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
AbstractClassAdapter.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 72 String in = type.getInternalName(); local 73 return "L" + renameInternalType(in) + ";"; 97 String in = type.getInternalName(); local 98 String newIn = renameInternalType(in); 99 if (!newIn.equals(in)) {
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicBlend.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 90 extern "C" int rsdIntrinsicBlend_K(uchar4 *out, uchar4 const *in, int slot, 117 uchar4 *in = (uchar4 *)info->inPtr[0]; local 123 if (rsdIntrinsicBlend_K(out, in, info->slot, x1, x2) >= 0) 134 for (;x1 < x2; x1++, out++, in++) { 135 *out = *in; 146 rsdIntrinsicBlendSrcOver_K(out, in, len); 149 in += len << 3; 153 for (;x1 < x2; x1++, out++, in++) [all...] |
/frameworks/support/core-utils/java/android/support/v4/content/ |
FileProvider.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 54 * a content URI, in order to send the content URI 61 * In comparison, to control access to a <code>file:///</code> {@link Uri} you have to modify the 63 * <em>any</em> app, and remain in effect until you change them. This level of access is 81 * don't need to define a subclass in code. Instead, you can include a FileProvider in your app 82 * by specifying it entirely in XML. To specify the FileProvider component itself, add a 110 * the FileProvider class and use the fully-qualified class name in the <code>android:name</code> 113 * A FileProvider can only generate a content URI for files in directories that you specif 584 final XmlResourceParser in = info.loadXmlMetaData( local [all...] |
/hardware/libhardware/modules/audio/ |
audio_hw.c | 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 144 // in the buffer, but by the end of the sleep the buffer is considered 147 // On the subsequent out_write(), we measure the elapsed time spent in 149 // thereby accounting for drain in the alsa buffer during mixing. 219 struct stub_stream_in *in = (struct stub_stream_in *)stream; local 220 in->last_read_time_us = 0; 251 struct stub_stream_in *in = (struct stub_stream_in *)stream; local 257 const bool standby = in->last_read_time_us == 0; 259 0 : now - in->last_read_time_us 424 struct stub_stream_in *in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in)); local [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioHardwareALSA.cpp | 7 ** you may not use this file except in compliance with the License. 12 ** Unless required by applicable law or agreed to in writing, software 274 // So adjust the volume to get the correct volume index in driver 393 ALOGV("Enabling Incall Music setting in the setparameter\n"); 400 ALOGV("Disabling Incall Music setting in the setparameter\n"); 414 ALOGV("Enabling ANC setting in the setparameter\n"); 417 ALOGV("Disabling ANC setting in the setparameter\n"); 803 ALOGD("Routing to proxy for normal voip call in openOutputStream"); 807 ALOGD("enabling VOIP in openoutputstream, musbPlaybackState: %d", musbPlaybackState); 810 ALOGD("Starting recording in openoutputstream, musbRecordingState: %d", musbRecordingState) 1105 AudioStreamInALSA *in = 0; local [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
ParseBenchmark.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 105 InputStream in = ParseBenchmark.class.getResourceAsStream(path); local 106 if (in == null) { 110 Reader reader = new InputStreamReader(in, "UTF-8");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
SystemTest.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 38 InputStream orgIn = System.in; 39 InputStream in = new ByteArrayInputStream(new byte[0]); local 40 System.setIn(in); 41 assertTrue("in not set", System.in == in); 119 // Tested in destructive test: Test_System_Exit ??? 185 * Tests that there are no extra path separator in boot class path [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
ZipInputStreamTest.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 40 // the file hyts_zipFile.zip used in setup needs to included as a resource 47 private byte[] dataBytes = "Some data in my file".getBytes(); 167 InputStream in = new FilterInputStream(Support_Resources.getStream("hyts_ZipFile.zip")) { local 179 try (ZipInputStream zis = new ZipInputStream(in)) { 226 assertNotNull("No entry in the archive.", entry);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherInputStreamTest.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 84 protected MeasuringInputStream(InputStream in) { 85 super(in); 112 MeasuringInputStream in = new MeasuringInputStream(new ByteArrayInputStream(aesCipherText)); local 113 InputStream cin = new CipherInputStream(in, cipher); 115 assertEquals(aesCipherText.length, in.getTotalRead()); 121 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); local 124 discard -= in.read(null, 0, discard); 126 byte[] bytes = readAll(in); 134 InputStream in = new CipherInputStream( local 146 InputStream in = new CipherInputStream( local 158 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); local 166 InputStream in = new CipherInputStream(new ByteArrayInputStream(rc4CipherText), cipher); local 174 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
ObjectInputStreamTest.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 657 fail("Should return a proxy class that implements the interfaces named in a proxy class descriptor"); 946 ObjectInputStream in = new ObjectInputStream(bin); local 947 in.readObject(); 1008 ObjectInputStream in = new ObjectInputStream(new FileInputStream(file)); local 1274 ObjectInputStream in = new ObjectIutputStreamWithReadDesc2(pin, A.class); local 1413 ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); local [all...] |
/libcore/ojluni/src/main/java/java/io/ |
ObjectInputStream.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 57 * arguments and parameters in a remote communication system. 59 * <p>ObjectInputStream ensures that the types of all objects in the graph 60 * created from the stream match the classes present in the Java Virtual 67 * stream. Java's safe casting should be used to get the desired type. In 89 * <p>For example to read from a stream as written by the example in 137 * end of data in the same way that they would indicate the end of the stream: 144 * behave in the same manner--if the stream is already positioned at the end o 2294 private final InputStream in; field in class:ObjectInputStream.PeekInputStream 2409 private final PeekInputStream in; field in class:ObjectInputStream.BlockDataInputStream [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
X509CRLSelector.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 61 * Unless otherwise specified, the methods defined in this class are not 95 * Sets the issuerNames criterion. The issuer distinguished name in the 140 * Sets the issuerNames criterion. The issuer distinguished name in the 152 * or a byte array representing a distinguished name (in 163 * encoded distinguished name, as defined in X.501. The ASN.1 notation for 211 * name in the {@code X509CRL} must match at least one of the specified 231 * encoding information in the RFC 2253 String form of some distinguishe 631 DerInputStream in = new DerInputStream(crlNumExtVal); local [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Properties.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 43 * or loaded from a stream. Each key and its corresponding value in 48 * the property key is not found in the original property list. 66 * in a simple line-oriented format specified below. 71 * the input/output stream is encoded in ISO 8859-1 character encoding. 72 * Characters that cannot be directly represented in this encoding can be written using 73 * Unicode escapes as defined in section 3.3 of 75 * only a single 'u' character is allowed in an escap [all...] |
/libcore/ojluni/src/main/java/java/util/jar/ |
Manifest.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 * Returns a Map of the entries contained in this Manifest. Each entry 97 * @return a Map of the entries contained in this Manifest 130 * Clears the main Attributes as well as the entries in this Manifest. 139 * Attributes.Name.MANIFEST_VERSION must be set in 187 * names and attributes read will be merged in with the current 256 // capacity of 0, which tickles a bug in HashMap. 326 FastInputStream(InputStream in) { [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
ObjectIdentifier.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 38 * string name used instead of (or in addition to) the numerical id. 44 * meaning to identifiers below the 1.3.6.1.4.1.42.2.17 node in the 65 * IMPORTANT NOTES FOR CODE CHANGES (bug 4811968) IN JDK 1.7.0 77 * Below are all 4 cases in a serialization/deserialization process: 90 * Therfore, for the first 3 cases, exact compatibility is preserved. In 91 * the 4th case, non-huge OID is still supportable in old versions, while 228 * The encoding of the ID in the stream uses "DER", a BER/1 subset 276 DerInputStream in = new DerInputStream(buf); local [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
X509CRLEntryImpl.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 41 * <p>Abstract class for a revoked certificate in a CRL. 42 * This class is for each entry in the <code>revokedCertificates</code>, 237 * method in X509CRLEntry. It is better performance-wise since it returns 252 * getRevocationReason method in X509CRLEntry. 288 * @return value of this revoked certificate in a printable form. 342 * Gets a Set of the extension(s) marked CRITICAL in this 343 * X509CRLEntry. In the returned set, each extension i 458 DerInputStream in = derVal.toDerInputStream(); local [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
TCKChronoPeriod.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 31 * Redistribution and use in source and binary forms, with or without 37 * * Redistributions in binary form must reproduce the above copyright notice, 38 * this list of conditions and the following disclaimer in the documentation 48 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 53 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 54 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 113 ObjectInputStream in = new ObjectInputStream(bais) local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppLauncherActivity.java | 6 * Redistribution and use in source and binary forms, with or without 12 * - Redistributions in binary form must reproduce the above copyright notice, 13 * this list of conditions and the following disclaimer in the documentation 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 60 * via BT from other APPs. and also make "Bluetooth" available in sharing method 68 // Regex that matches characters that have special meaning in HTML. '<', '>', '&' and 80 //Check if Bluetooth is available in the beginning instead of at the end 82 Intent in = new Intent(this, BluetoothOppBtErrorActivity.class) local 198 Intent in = new Intent(this, BluetoothOppBtEnableActivity.class); local [all...] |
BluetoothOppTransferHistory.java | 6 * Redistribution and use in source and binary forms, with or without 12 * - Redistributions in binary form must reproduce the above copyright notice, 13 * this list of conditions and the following disclaimer in the documentation 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 312 Intent in = new Intent(this, BluetoothOppTransferActivity.class); local 313 in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 314 in.setDataAndNormalize(contentUri); 315 this.startActivity(in); [all...] |