/frameworks/base/core/java/android/os/storage/ |
H A D | StorageVolume.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 75 private StorageVolume(Parcel in) { argument 76 mStorageId = in.readInt(); 77 mPath = new File(in.readString()); 78 mDescriptionId = in.readInt(); 79 mPrimary = in.readInt() != 0; 80 mRemovable = in.readInt() != 0; 81 mEmulated = in.readInt() != 0; 82 mMtpReserveSpace = in [all...] |
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.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 * end delimiters of objects and arrays. The tokens are traversed in 32 * depth-first order, the same order that they appear in the JSON document. 39 * <p>Next, create handler methods for each structure in your JSON text. You'll 88 * public List<Message> readJsonStream(InputStream in) throws IOException { 89 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8")); 171 * in JSON. 184 private final Reader in; field in class:JsonReader 200 * The offset of the first character in th 233 JsonReader(Reader in) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AbsSpinner.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 193 // Try looking in the recycler. (Maybe we were measured once already) 205 // Put in recycler for re-measuring and/or layout 261 // All views go in recycler 270 * Jump directly to a specific item in the adapter data. 339 * Maps a point to a position in the list. 341 * @param x X in local coordinate 342 * @param y Y in local coordinate 380 SavedState(Parcel in) { argument [all...] |
H A D | CompoundButton.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 477 private SavedState(Parcel in) { argument 478 super(in); 479 checked = (Boolean)in.readValue(null); 497 public SavedState createFromParcel(Parcel in) { 498 return new SavedState(in);
|
H A D | TimePickerSpinnerDelegate.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 148 // Get the localized am/pm strings and use them in the spinner. 253 * The time separator is defined in the Unicode CLDR and cannot be supposed to be ":". 258 * separator as the character which is just after the hour marker in the returned pattern. 289 // why was Integer used in the first place? 571 private SavedState(Parcel in) { argument 572 super(in); 573 mHour = in.readInt(); 574 mMinute = in [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteInit.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 149 * This throw gets caught in ZygoteInit.main(), which responds 151 * clears up all the stack frames that were required in setting 260 // Ask the WebViewFactory to do any initialization that must run in the zygote process, 284 * a few will allocate a dozen Kbytes (in one case, 500+K). 358 Log.i(TAG, "...preloaded " + count + " classes in " 367 // Fill in dex caches with classes, fields, and methods brought in by preloading. 379 * Load in commonl 844 reopenStdio(FileDescriptor in, FileDescriptor out, FileDescriptor err) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | XmlUtils.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 720 * @param in The InputStream from which to read. 730 public static final HashMap<String, ?> readMapXml(InputStream in) argument 734 parser.setInput(in, null); 742 * @param in The InputStream from which to read. 751 public static final ArrayList readListXml(InputStream in) argument 755 parser.setInput(in, null); 764 * @param in The InputStream from which to read. 775 public static final HashSet readSetXml(InputStream in) argument 1485 readIntAttribute(XmlPullParser in, String name, int defaultValue) argument 1494 readIntAttribute(XmlPullParser in, String name) argument 1508 readLongAttribute(XmlPullParser in, String name, long defaultValue) argument 1517 readLongAttribute(XmlPullParser in, String name) argument 1531 readFloatAttribute(XmlPullParser in, String name) argument 1545 readBooleanAttribute(XmlPullParser in, String name) argument 1550 readBooleanAttribute(XmlPullParser in, String name, boolean defaultValue) argument 1565 readUriAttribute(XmlPullParser in, String name) argument 1577 readStringAttribute(XmlPullParser in, String name) argument 1588 readByteArrayAttribute(XmlPullParser in, String name) argument 1604 readBitmapAttribute(XmlPullParser in, String name) argument 1654 readThisUnknownObjectXml(XmlPullParser in, String tag) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioAttributes.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 40 * conveyed in a stream type by allowing the application to define: 47 * decisions. Usage is the most important information to supply in <code>AudioAttributes</code> 51 * the content. This information is optional. But in case it is known (for instance 58 * <p><code>AudioAttributes</code> are used for example in one of the {@link AudioTrack} 89 * type of a sound for a bonus being received in a game. These sounds are mostly synthesized 109 * Usage value to use when the usage is in-call signalling, such as with 181 // TODO add in FLAG_ALL_PUBLIC when supported and in publi 579 AudioAttributes(Parcel in) argument [all...] |
H A D | MediaMetadata.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 53 * The duration of the media in ms. A negative duration indicates that the 105 * The number of tracks in the media's original source. 331 private MediaMetadata(Parcel in) { argument 332 mBundle = in.readBundle(); 336 * Returns true if the given key is contained in the metadata 339 * @return true if the key exists in this metadata, false otherwise 432 * Returns the number of fields in this metadata. 434 * @return The number of fields in th [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.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 132 * @param in input string 135 public static final long crc64Long(String in) { argument 136 if (in == null || in.length() == 0) { 139 return crc64Long(getBytes(in)); 163 public static byte[] getBytes(String in) { argument 164 byte[] result = new byte[in.length() * 2]; 166 for (char ch : in [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | 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 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 354 // set of app signatures associated with each backed-up app in this restore 445 // the number of entries in th 455 readSignatureHashArray(DataInputStream in) argument [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.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 103 * Return first atomic bucket in this collection, which is more conservative 135 * Combine all {@link NetworkStatsHistory} in this collection which match 144 * Combine all {@link NetworkStatsHistory} in this collection which match 164 * Summarize all {@link NetworkStatsHistory} in this collection which match 228 * Record all {@link NetworkStatsHistory} contained in the given collection 261 public void read(InputStream in) throws IOException { argument 262 read(new DataInputStream(in)); 265 public void read(DataInputStream in) throw argument [all...] |
H A D | NetworkStatsRecorder.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 55 * Keeps pending changes in memory until they pass a specific threshold, in 67 /** Dump before deleting in {@link #recoverFromWtf()}. */ 302 public void read(InputStream in) throws IOException { argument 303 mCollection.read(in); 337 public void read(InputStream in) throws IOException { argument 338 mTemp.read(in);
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | PhoneAccount.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 42 * want those calls to be integrated into the dialer and in-call UI should build an instance of 69 * Flag indicating that this {@code PhoneAccount} can make phone calls in place of 72 * distinct from {@link #CAPABILITY_CONNECTION_MANAGER} in that it is not allowed to manage 73 * or place calls from the built-in telephony stack. 82 * Flag indicating that this {@code PhoneAccount} represents a built-in PSTN SIM 248 * @param iconResId The resource in {@code iconPackageName} representing the icon. 259 * @param iconResId The resource in {@code iconPackageName} representing the icon. 270 * @param iconResId The resource in { 686 PhoneAccount(Parcel in) argument [all...] |
/frameworks/base/telephony/java/com/android/ims/ |
H A D | ImsCallProfile.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 187 public ImsCallProfile(Parcel in) { argument 188 readFromParcel(in); 290 private void readFromParcel(Parcel in) { argument 291 mServiceType = in.readInt(); 292 mCallType = in.readInt(); 293 mCallExtras = in.readParcelable(null); 294 mMediaProfile = in.readParcelable(null); 299 public ImsCallProfile createFromParcel(Parcel in) { [all...] |
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
H A D | MediaPlayerProxyTestCase.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 * This allows tests to show that the built-in {@link android.media.MediaPlayer} is performing 50 * and in that subclass you will provide an implementation of the abstract 52 * test will construct the player in {@link #setUp()} and release it in {@link #tearDown()}. 63 * This is lazily filled in by the {@link #getTestContentUri(String, String)} method. 66 * not perfect but it doesn't matter in this test code. 251 // The audio contained in this file has a stutter if we seek to half way and play. 553 public void copyBetweenStreams(InputStream in, OutputStrea argument [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SipProfile.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 67 public SipProfile createFromParcel(Parcel in) { 68 return new SipProfile(in); 311 private SipProfile(Parcel in) { argument 312 mAddress = (Address) in.readSerializable(); 313 mProxyAddress = in.readString(); 314 mPassword = in.readString(); 315 mDomain = in.readString(); 316 mProtocol = in [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsCbCmasInfo.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 24 * Supported values for each element are defined in TIA-1149-0-1 (CMAS over CDMA) and 31 // CMAS message class (in GSM/UMTS message identifier or CDMA service category). 57 // CMAS alert category (in CDMA type 1 elements record). 101 // CMAS response type (in CDMA type 1 elements record). 103 /** CMAS response type: Take shelter in place. */ 121 /** CMAS response type: Evaluate the information in this message (not for public warnings). */ 133 // 4-bit CMAS severity (in GSM/UMTS message identifier or CDMA type 1 elements record). 148 // CMAS urgency (in GS 208 SmsCbCmasInfo(Parcel in) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | ModelInterpreter.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 32 // Also in ATChannel.java 166 ModelInterpreter (InputStream in, OutputStream out) argument 168 mIn = in; 266 // no reconnect in this case
|
/frameworks/rs/cpp/ |
H A D | ScriptIntrinsics.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 81 void ScriptIntrinsicBlend::forEachClear(sp<Allocation> in, sp<Allocation> out) { argument 82 if (in->getType()->getElement()->isCompatible(mElement) == false || 84 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 86 Script::forEach(0, in, out, NULL, 0); 89 void ScriptIntrinsicBlend::forEachSrc(sp<Allocation> in, sp<Allocation> out) { argument 90 if (in->getType()->getElement()->isCompatible(mElement) == false || 92 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 94 Script::forEach(1, in, ou 97 forEachDst(sp<Allocation> in, sp<Allocation> out) argument 105 forEachSrcOver(sp<Allocation> in, sp<Allocation> out) argument 113 forEachDstOver(sp<Allocation> in, sp<Allocation> out) argument 121 forEachSrcIn(sp<Allocation> in, sp<Allocation> out) argument 129 forEachDstIn(sp<Allocation> in, sp<Allocation> out) argument 137 forEachSrcOut(sp<Allocation> in, sp<Allocation> out) argument 145 forEachDstOut(sp<Allocation> in, sp<Allocation> out) argument 153 forEachSrcAtop(sp<Allocation> in, sp<Allocation> out) argument 161 forEachDstAtop(sp<Allocation> in, sp<Allocation> out) argument 169 forEachXor(sp<Allocation> in, sp<Allocation> out) argument 178 forEachMultiply(sp<Allocation> in, sp<Allocation> out) argument 187 forEachAdd(sp<Allocation> in, sp<Allocation> out) argument 195 forEachSubtract(sp<Allocation> in, sp<Allocation> out) argument 220 setInput(sp<Allocation> in) argument 257 forEach(sp<Allocation> in, sp<Allocation> out) argument 360 setInput(sp<Allocation> in) argument 401 setInput(sp<Allocation> in) argument 585 setInput(sp<Allocation> in) argument [all...] |
/frameworks/rs/cpu_ref/ |
H A D | 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 94 extern "C" int rsdIntrinsicBlend_K(uchar4 *out, uchar4 const *in, int slot, 120 uchar4 *in = (uchar4 *)p->in; local 126 if (rsdIntrinsicBlend_K(out, in, p->slot, x1, x2) >= 0) 137 for (;x1 < x2; x1++, out++, in++) { 138 *out = *in; 149 rsdIntrinsicBlendSrcOver_K(out, in, len); 152 in [all...] |
/frameworks/support/v4/java/android/support/v4/media/ |
H A D | MediaMetadataCompat.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 47 * The duration of the media in ms. A negative duration indicates that the 98 * The number of tracks in the media's original source. 263 private MediaMetadataCompat(Parcel in) { argument 264 mBundle = in.readBundle(); 268 * Returns true if the given key is contained in the metadata 271 * @return true if the key exists in this metadata, false otherwise 383 // Fill in the next empty bit of text 430 * Get the number of fields in thi [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | RecyclerViewBasicTest.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 202 assertEquals("uuid in layout manager should be preserved properly", mlm.mUuid, 295 public LayoutManagerSavedState(Parcel in) { argument 296 mUuid = in.readString(); 316 public LayoutManagerSavedState createFromParcel(Parcel in) { 317 return new LayoutManagerSavedState(in);
|
/frameworks/av/services/audioflinger/ |
H A D | 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 123 // copy in the input data into the head (impulse+halfNumCoefs) of the buffer. 127 const TI* const in, const size_t inputIndex) 131 head[i] = in[inputIndex*CHANNELS + i]; 135 // advance the impulse pointer, and load in data into the head (impulse+halfNumCoefs) 139 const TI* const in, const size_t inputIndex) 148 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); 356 // determine the number of polyphases in the filterbank. 395 mPhaseFraction %= phaseWrapLimit; // should not do anything, but just in cas 126 readAgain(TI*& impulse, const int halfNumCoefs, const TI* const in, const size_t inputIndex) argument 138 readAdvance(TI*& impulse, const int halfNumCoefs, const TI* const in, const size_t inputIndex) argument 556 const TI* const in = reinterpret_cast<const TI*>(mBuffer.raw); local [all...] |
H A D | AudioResamplerSinc.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 56 * These coeficients are computed with the "fir" utility found in 394 int32_t mulRL(int left, int32_t in, uint32_t vRL) argument 399 asm( "smultb %[out], %[in], %[vRL] \n" 401 : [in]"%r"(in), [vRL]"r"(vRL) 404 asm( "smultt %[out], %[in], %[vRL] \n" 406 : [in]"%r"(in), [vR 417 mulAdd(int16_t in, int32_t v, int32_t a) argument 576 int16_t const * const in = mBuffer.i16; local 622 read( int16_t*& impulse, uint32_t& phaseFraction, const int16_t* in, size_t inputIndex) argument [all...] |