/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceGroupAdapter.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 * An adapter that connects a RecyclerView to the {@link Preference} objects contained in the 54 * Contains a sorted list of all preferences in this adapter regardless of visibility. This is 173 private PreferenceLayout createPreferenceLayout(Preference preference, PreferenceLayout in) { argument 174 PreferenceLayout pl = in != null? in : new PreferenceLayout(); 215 // The preference has become visible, we need to add it in the correct location. 217 // Index (inferred) in mPreferenceList of the item preceding the newly visible pref 232 // The preference has become invisibile. Find it in th [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.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 * Cache implementation that caches files directly onto the hard disk in the specified 49 /** Total amount of space currently used by the cache in bytes. */ 55 /** The maximum size of the cache in bytes. */ 58 /** Default maximum disk usage in bytes. */ 70 * @param maxCacheSizeInBytes The maximum size of the cache in bytes. 136 * Initializes the DiskBasedCache by scanning for all files currently in the 174 * Invalidates an entry in the cache. 321 private static byte[] streamToBytes(InputStream in, in argument 450 CountingInputStream(InputStream in) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | vad1.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 50 round function in C standard library. 104 in -- array of type Word16 -- input signal 167 Word16 in[], /* i : input signal */ 189 temp1 = shr(in[4*i+0], 2, pOverflow); 196 temp2 = shr(in[4*i+1], 2, pOverflow); 207 temp2 = shr(in[4*i+2], 2, pOverflow); 214 temp2 = shr(in[4*i+3], 2, pOverflow); 465 Purpose : Calculate signal level in 166 first_filter_stage( Word16 in[], Word16 out[], Word16 data[], Flag *pOverflow ) argument 613 filter_bank( vadState1 *st, Word16 in[], Word16 level[], Flag *pOverflow ) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | test-resample.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 mPvalue [all...] |
/frameworks/base/core/java/android/app/ |
H A D | AlarmManager.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 36 * to schedule your application to be run at some point in the future. When 46 * Alarm Manager releases this wake lock. This means that the phone will in some 62 * the OS will shift alarms in order to minimize wakeups and battery use. There are 66 * is earlier than API 19 will continue to see the previous behavior in which all 76 * Alarm time in {@link System#currentTimeMillis System.currentTimeMillis()} 77 * (wall clock time in UTC), which will wake up the device when 82 * Alarm time in {@link System#currentTimeMillis System.currentTimeMillis()} 83 * (wall clock time in UT 810 AlarmClockInfo(Parcel in) argument [all...] |
H A D | PendingIntent.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 * with Intents that only vary in their "extra" contents, expecting to get 138 * extra data in the Intent; by canceling the previous pending intent, 146 * then keep it but replace its extra data with what is in this new 158 * methods to fill in unpopulated properties of this intent will be 217 // processing receivers in various components that hold global service locks. 249 * Intent.FLAG_ACTIVITY_NEW_TASK} launch flag in the Intent. 256 * @param context The Context in which this PendingIntent should start 280 * Intent.FLAG_ACTIVITY_NEW_TASK} launch flag in th 1057 readPendingIntentOrNullFromParcel(@onNull Parcel in) argument [all...] |
/frameworks/base/core/java/android/app/job/ |
H A D | JobInfo.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 30 * accomplish. Doing otherwise with throw an exception in your app. 41 * Amount of backoff a job has initially by default, in milliseconds. 46 * Maximum backoff we allow for a job, in milliseconds. 111 * Whether this job needs the device to be plugged in. 118 * Whether this job needs the device to be in an Idle maintenance window. 207 private JobInfo(Parcel in) { argument 208 jobId = in.readInt(); 209 extras = in [all...] |
/frameworks/base/core/java/android/content/ |
H A D | RestrictionEntry.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 * across but shouldn't be presented to the user in the UI. Stores a single String value. 46 * a checkbox in the UI. 63 * The presentation could imply that values in lower array indices are included when a 129 /* List of selected choices in the multi-select case. */ 386 * set in {@link #setChoiceValues(String[])}. This method is not relevant for types other 422 * You can use this to describe the entry in more detail or to display the current state of 498 public RestrictionEntry(Parcel in) { argument 499 mType = in [all...] |
H A D | SyncRequest.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 45 * Specifies a point in the future at which the sync must have been scheduled to run. 52 /** Sync should be run in lieu of other syncs. */ 58 * either one of these or an InvalidStateException will be thrown in 105 * @return the earliest point in time that this sync can be scheduled. 112 * @return the last point in time at which this sync must scheduled. 121 public SyncRequest createFromParcel(Parcel in) { 122 return new SyncRequest(in); 149 private SyncRequest(Parcel in) { argument [all...] |
/frameworks/base/core/java/android/hardware/radio/ |
H A D | RadioMetadata.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 121 // keep in sync with: system/media/radio/include/system/radio_metadata.h 162 private RadioMetadata(Parcel in) { argument 163 mBundle = in.readBundle(); 167 * Returns {@code true} if the given key is contained in the meta data 170 * @return {@code true} if the key exists in this meta data, {@code false} otherwise 178 * if the key is not found in the meta data. 189 * or 0 if the key is not found in the meta data. 199 * Returns a {@link Bitmap} for the given key or null if the key is not found in th [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 | 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 503 private SavedState(Parcel in) { argument 504 super(in); 505 checked = (Boolean)in.readValue(null); 523 public SavedState createFromParcel(Parcel in) { 524 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 146 // Get the localized am/pm strings and use them in the spinner. 251 * The time separator is defined in the Unicode CLDR and cannot be supposed to be ":". 256 * separator as the character which is just after the hour marker in the returned pattern. 287 // why was Integer used in the first place? 559 private SavedState(Parcel in) { argument 560 super(in); 561 mHour = in.readInt(); 562 mMinute = in [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 725 * @param in The InputStream from which to read. 735 public static final HashMap<String, ?> readMapXml(InputStream in) argument 739 parser.setInput(in, StandardCharsets.UTF_8.name()); 747 * @param in The InputStream from which to read. 756 public static final ArrayList readListXml(InputStream in) argument 760 parser.setInput(in, StandardCharsets.UTF_8.name()); 769 * @param in The InputStream from which to read. 780 public static final HashSet readSetXml(InputStream in) argument 1523 readIntAttribute(XmlPullParser in, String name, int defaultValue) argument 1532 readIntAttribute(XmlPullParser in, String name) argument 1546 readLongAttribute(XmlPullParser in, String name, long defaultValue) argument 1555 readLongAttribute(XmlPullParser in, String name) argument 1569 readFloatAttribute(XmlPullParser in, String name) argument 1583 readBooleanAttribute(XmlPullParser in, String name) argument 1588 readBooleanAttribute(XmlPullParser in, String name, boolean defaultValue) argument 1603 readUriAttribute(XmlPullParser in, String name) argument 1615 readStringAttribute(XmlPullParser in, String name) argument 1626 readByteArrayAttribute(XmlPullParser in, String name) argument 1642 readBitmapAttribute(XmlPullParser in, String name) argument 1692 readThisUnknownObjectXml(XmlPullParser in, String tag) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | 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 98 * @return The type of image data held in this Icon. One of 231 * @param context {@link android.content.Context Context} in which to load the drawable; see 248 * @param context {@link Context Context} in which to load the drawable; see 264 * @param context {@link android.content.Context Context} in which to load the drawable; used 493 * @param resPackage Name of the package containing the resource in question 507 * Create an Icon pointing to a bitmap in memory. 520 * Create an Icon pointing to a compressed bitmap stored in a byte array. 569 * @param tint a color, as in { 662 Icon(Parcel in) 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 596 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 52 * The duration of the media in ms. A negative duration indicates that the 104 * The number of tracks in the media's original source. 330 private MediaMetadata(Parcel in) { argument 331 mBundle = in.readBundle(); 335 * Returns true if the given key is contained in the metadata 338 * @return true if the key exists in this metadata, false otherwise 431 * Returns the number of fields in this metadata. 433 * @return The number of fields in th [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | ObexHelper.java | 8 * Redistribution and use in source and binary forms, with or without 14 * - Redistributions in binary form must reproduce the above copyright notice, 15 * this list of conditions and the following disclaimer in the documentation 140 * Updates the HeaderSet with the headers received in the byte array 169 * <TD>4 byte quantity - transmitted in network byte order (high byte first</TD> 172 * This method uses the information in this table to determine the type of 179 * the first byte in the result will specify if a body or end of 376 * then it should be the first header in the packet. 693 // If the SRM and SRMP header is in use, they must be send in th 976 computeMd5Hash(byte[] in) argument [all...] |
H A D | ServerOperation.java | 7 * Redistribution and use in source and binary forms, with or without 13 * - Redistributions in binary form must reproduce the above copyright notice, 14 * this list of conditions and the following disclaimer in the documentation 49 * are in this class. 0x02 is a PUT request that signals that the request is not 55 * the methods defined TODO: in that class. 108 // keep waiting until final-bit is received in request 109 // to handle the case where the SRM enable header is in 118 * @param in the input stream to read from 125 public ServerOperation(ServerSession p, InputStream in, int request, int maxSize, argument 130 mInput = in; [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 358 // set of app signatures associated with each backed-up app in this restore 449 // the number of entries in th 459 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 108 * Return first atomic bucket in this collection, which is more conservative 157 * Combine all {@link NetworkStatsHistory} in this collection which match 166 * Combine all {@link NetworkStatsHistory} in this collection which match 195 * Summarize all {@link NetworkStatsHistory} in this collection which match 261 * Record all {@link NetworkStatsHistory} contained in the given collection 294 public void read(InputStream in) throws IOException { argument 295 read(new DataInputStream(in)); 298 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 56 * Keeps pending changes in memory until they pass a specific threshold, in 68 /** Dump before deleting in {@link #recoverFromWtf()}. */ 310 public void read(InputStream in) throws IOException { argument 311 mCollection.read(in); 345 public void read(InputStream in) throws IOException { argument 346 mTemp.read(in);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DeviceOwner.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 90 DeviceOwner(InputStream in, OutputStream out) { argument 91 mInputStreamForTest = in; 294 "Unexpected tag in device owner file: " + tag);
|
/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 43 * want those calls to be integrated into the dialer and in-call UI should build an instance of 68 * Flag indicating that this {@code PhoneAccount} can make phone calls in place of 71 * distinct from {@link #CAPABILITY_CONNECTION_MANAGER} in that it is not allowed to manage 72 * or place calls from the built-in telephony stack. 80 * Flag indicating that this {@code PhoneAccount} represents a built-in PSTN SIM 420 * Determines if this {@code PhoneAccount} has a capabilities specified by the passed in 498 * A highlight color to use in displaying information about this {@code PhoneAccount}. 561 public PhoneAccount createFromParcel(Parcel in) { 571 PhoneAccount(Parcel in) argument [all...] |