/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothSocket.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 37 * <p>The interface for Bluetooth Sockets is similar to that of TCP sockets: 40 * socket. When a connection is accepted by the {@link BluetoothServerSocket}, 45 * <p>The most common type of Bluetooth socket is RFCOMM, which is the type 46 * supported by the Android APIs. RFCOMM is a connection-oriented, streaming 47 * transport over Bluetooth. It is also known as the Serial Port Profile (SPP). 53 * This call will block until a connection is established or the connection 59 * <p>Once the socket is connected, whether initiated as a client or accepted 65 * <p>{@link BluetoothSocket} is threa 487 waitSocketSignal(InputStream is) argument 507 readAll(InputStream is, byte[] b) argument 521 readInt(InputStream is) argument [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageParser.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 143 * If sdkVersion is 0, then this is not a permission that we want to 163 // READ_EXTERNAL_STORAGE is always required when an app requests 166 // target SDK version ensures that this grant is always done. 254 * this is path to single base APK file; for cluster packages this is 354 * {@code coreApp} manifest attribute to be valid apps. This is useful when 387 * @param flags indicating which optional information is included. 398 * Returns true if the package is installe [all...] |
H A D | Signature.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 * This class name is slightly misleading, since it's not actually a signature. 88 * @throws IllegalArgumentException when signature is odd-length 95 throw new IllegalArgumentException("text size " + N + " is not even"); 295 final InputStream is = new ByteArrayInputStream(s.mSignature); 296 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is);
|
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 73 * (such as for different languages and screen sizes). This is an important aspect of developing 211 * This exception is thrown by the resource APIs when a requested resource 263 * system resources (no application resources), and is not configured for 281 * returned object will be a String if this is a plain string; it will be 282 * some other type of CharSequence if it is styled. 287 * entry. The value 0 is an invalid identifier. 306 * Note that the character sequence is selected based solely on grammatical necessity, 314 * entry. The value 0 is an invalid identifier. 377 * entry. The value 0 is a [all...] |
/frameworks/base/core/java/android/net/ |
H A D | UrlQuerySanitizer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 44 * // name now contains "Joe User". (The string is first decoded, which 45 * // converts the '+' to a ' '. Then the string is sanitized, which 46 * // converts the ' ' to an '_'. (The ' ' is converted because the default 48 * and ' ' is a special character.) 116 * whether space is a legal character or not. 291 * <li>If neither spaces nor other white space is OK, then 296 * either ' ' or '_', depending on whether a space is itself a 367 * Check if c is whitespace. 369 * @return true if c is [all...] |
/frameworks/base/core/java/android/net/http/ |
H A D | Request.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 74 // is http/1.1 feature. 103 * @param bodyLength length of body, must be 0 if bodyProvider is null 124 // it is ok to have null entity for BasicHttpEntityEnclosingRequest. 184 * Add all headers in given map to this request. This is a helper 274 InputStream is = entity.getContent(); 284 nis = new GZIPInputStream(is); 286 nis = is; 328 // if there is uncommited content, we should commit them 337 // if there is uncommite [all...] |
/frameworks/base/core/java/android/os/ |
H A D | DropBoxManager.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 30 * log records, etc.). The queue is size bounded and will drop old data if the 48 /** Flag value: Content is human-readable UTF-8 text (can be combined with IS_GZIPPED). */ 54 /** Flag value for serialization only: Value is a byte array, not a file descriptor */ 58 * Broadcast Action: This is broadcast when a new entry is added in the dropbox. 62 * <p class="note">This is a protected intent that can only be sent 182 * @return the uncompressed text contents of the entry, null if the entry is not text. 188 InputStream is = null; 190 is [all...] |
H A D | RecoverySystem.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 108 InputStream is = zip.getInputStream(entry); 110 trusted.add((X509Certificate) cf.generateCertificate(is)); 112 is.close(); 123 * before installing it. Note that the package is also verified 124 * separately by the installer once the device is rebooted into 131 * the thread while this function is in progress will result in a 140 * package is signed by the private key corresponding to any 191 // The following code is largely copied from 202 throw new IOException("signedData is nul [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsContract.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 85 * is used in the {@code <intent-filter>} of a {@code <provider>}. 110 * Buffer is large enough to rewind past any EXIF headers. 131 * Unique ID of a document. This ID is both provided by and interpreted 133 * value by client applications. This column is required. 150 * directory containing additional documents, which is represented with 151 * the {@link #MIME_TYPE_DIR} MIME type. This column is required. 161 * user. This column is required. 168 * Summary of a document, which may be shown to a user. This column is 177 * January 1, 1970 00:00:00.0 UTC. This column is require [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 67 /* package */ static final char[] ELLIPSIS_NORMAL = { '\u2026' }; // this is "..." 70 /* package */ static final char[] ELLIPSIS_TWO_DOTS = { '\u2025' }; // this is ".." 241 // Integer overflow; len is unreasonably large 263 * from the source string. This is different than simply calling 334 * String.split() returns [''] when the string to be split is empty. This returns []. This does 339 * @return an array of strings. The array will be empty if text is empty 341 * @throws NullPointerException if expression or text is null 353 * split is empty. This returns []. This does not remove any empty strings from the result. 356 * @return an array of strings. The array will be empty if text is empt [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 165 * Returns true if user preference is set to 24-hour format. 167 * @return true if 24 hour time format is selected, false otherwise. 174 * Returns true if user preference with the given user handle is set to 24-hour format. 177 * @return true if 24 hour time format is selected, false otherwise. 223 * locale. A skeleton is similar to, and uses the same format characters as, a Unicode 227 * <p>One difference is that order is irrelevant. For example, "MMMMd" will return 238 * {@code ja_JP} where there is only one length of month. 240 * <p>This method will only return patterns that are in CLDR, and is usefu [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | ImageSpan.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 136 InputStream is = mContext.getContentResolver().openInputStream( 138 bitmap = BitmapFactory.decodeStream(is); 142 is.close();
|
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 70 * change from its previously returned value when the VideoView is restored. 88 // mCurrentState is a VideoView object's current state. 89 // mTargetState is the state that a method caller intends to reach. 155 // the size is fixed 168 // only the width is fixed, adjust the height to match aspect ratio if possible 176 // only the height is fixed, adjust the width to match aspect ratio if possible 256 * Note that the cross domain redirection is allowed by default, but that can be 284 * @param is input stream containing the subtitle data. It will be 292 public void addSubtitleSource(InputStream is, MediaForma argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessStats.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 54 // that is done. 59 // it is reached. 281 if (DEBUG) Slog.d(TAG, "Existing process is single-package, splitting"); 589 for (int is=0; is<data.screenStates.length; is++) { 592 int bucket = ((data.screenStates[is] + data.memStates[im]) * STATE_COUNT) 647 for (int is=0; is<screenState [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 102 // No, really, THIS is the maximum number of items we will record in the history. 106 // per uid; once the limit is reached, we batch the remaining wakelocks 162 // A set of pools of currently active timers. When a timer is queried, we will divide the 184 // is unplugged from power. 188 // is unplugged from power *and* the screen is off. 327 * These provide time bases that discount the time the device is plugged 427 * Used as a buffer for reading in data from /proc/wakelocks before it is processed and added 937 * Clear state of this timer. Returns true if the timer is inactiv [all...] |
H A D | ProcessCpuTracker.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 296 // Total user time is user + nice time. 298 // Total system time is simply system time. 300 // Total idle time is simply idle time. 302 // Total irq time is iowait + irq + softirq time. 459 // This is a possible way to filter out processes that 564 * speed, since the last call to this method. If this is the first call, it 840 FileInputStream is = null; 842 is = new FileInputStream(file); 843 int len = is [all...] |
H A D | ZygoteConnection.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 67 * mSocket is retained in the child process in "peer wait" mode, so 69 * it is closed in the peer. 130 * a child is forked and a {@link ZygoteInit.MethodAndArgsCaller} 131 * exception is thrown in that child while in the parent process, 132 * the method returns normally. On failure, the child is not 269 // should never get here, the child is expected to either 321 * This parameter is only applied if the uid of the new process will 324 * <code>r</code> is the resource, <code>c</code> and <code>m</code> 333 * Android runtime startup (eg, Binder initialization) is als [all...] |
H A D | ZygoteInit.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 145 "Main method is not public and static on " + className); 221 * closure after a child process is forked off. 289 InputStream is; 291 is = new FileInputStream(PRELOADED_CLASSES); 305 // is not likely to have any effect. 316 = new BufferedReader(new InputStreamReader(is), 256); 363 IoUtils.closeQuietly(is); 479 * This is only useful just before a fork(). 763 * heap is [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FileRotator.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 37 * Utility that rotates files over time, similar to {@code logrotate}. There is 38 * a single "active" file, which is periodically rotated into historical files, 161 final FileInputStream is = new FileInputStream(file); 163 Streams.copy(is, zos); 165 IoUtils.closeQuietly(is); 178 * writing modified data. Maintains a backup during write, which is restored 215 * data. Each file is processed atomically. 229 * writing modified data. Maintains a backup during write, which is restored 457 * Test if current file is activ [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 184 ALOGW("bitmap is too large"); 294 // If the java allocator is being used to allocate the pixel memory, the decoder 295 // need not write zeroes, since the memory is initialized to 0. 313 // happens earlier than AutoDecoderCancel object is added 385 // This is weird so let me explain: we could use the scale parameter 386 // directly, but for historical reasons this is how the corresponding 388 // The result is slightly different from simply using scale because of 395 // FIXME: If the alphaType is kUnpremul and the image has alpha, the 404 // If outputBitmap's pixels are newly allocated by Java, there is no need 462 // trying to determine the stream's format. Currently the most is 6 467 nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options) argument [all...] |
H A D | BitmapRegionDecoder.cpp | 11 * distributed under the License is distributed on an "AS IS" BASIS, 138 jobject is, // InputStream 143 SkStreamRewindable* stream = CopyJavaInputStream(env, is, storage); 206 // happens earlier than AutoDecoderCancel object is added 137 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument
|
/frameworks/base/core/tests/ConnectivityManagerTest/ |
H A D | Android.mk | 10 # distributed under the License is distributed on an "AS IS" BASIS,
|
/frameworks/base/core/tests/bandwidthtests/ |
H A D | Android.mk | 10 # distributed under the License is distributed on an "AS IS" BASIS,
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | BandwidthTestUtil.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 77 * @param deviceId the device id that is downloading 101 InputStream is = ucon.getInputStream(); 102 BufferedInputStream bis = new BufferedInputStream(is); 121 * @param deviceId {@link String} device id that is uploading
|
/frameworks/base/core/tests/coretests/ |
H A D | Android.mk | 44 # Use R_file_stamp as dependency because we want the test apks in place before the R.java is generated.
|