Searched defs:available (Results 1 - 25 of 48) sorted by relevance

12

/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareMonitorCallback.java40 * @param available Indicates whether the system is currently available or not.
44 public void onMonitoringSystemChange(int monitoringType, boolean available, Location location) { argument
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java37 * Return number of bytes available before this stream will block.
39 public int available() throws IOException { method in class:BluetoothInputStream
40 return mSocket.available();
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java59 * Return the number of bit still available for reading.
61 public int available() { method in class:BitwiseInputStream
H A DTokenBucket.java33 * The available amount of tokens is computed lazily when the bucket state is inspected.
44 private int mAvailable; // Current number of available tokens.
70 /** Reset this TokenBucket and set its number of available tokens. */
82 /** Returns this TokenBucket currently number of available tokens. */
83 public int available() { method in class:TokenBucket
88 /** Returns true if this TokenBucket as one or more tokens available. */
94 /** Consumes a token from this TokenBucket and returns true if a token is available. */
/frameworks/av/media/libnbaio/
H A DAudioBufferProviderSource.cpp63 size_t available = mBuffer.frameCount - mConsumed; local
64 if (CC_UNLIKELY(count > available)) {
65 count = available;
68 // available is zero, but both are unlikely so don't check for that
109 // don't you just want to fall through to the size_t available line?
115 size_t available = mBuffer.frameCount - mConsumed; local
116 if (CC_UNLIKELY(count > available)) {
117 count = available;
/frameworks/base/obex/javax/obex/
H A DPrivateInputStream.java74 public synchronized int available() throws IOException { method in class:PrivateInputStream
81 * returned as an int in the range 0 to 255. If no byte is available because
83 * method blocks until input data is available, the end of the stream is
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DTestUtil.java92 Context context, ArrayList<String> available, ArrayList<String> active) {
94 intent.putExtra(ConnectivityManager.EXTRA_AVAILABLE_TETHER, available);
91 sendTetherStateChanged(BroadcastReceiver broadcastReceiver, Context context, ArrayList<String> available, ArrayList<String> active) argument
/frameworks/av/media/libstagefright/
H A DSkipCutBuffer.cpp135 size_t available = mCapacity - sizeused - 32; local
136 if (available < num) {
137 int32_t newcapacity = mCapacity + (num - available);
163 int32_t available = (mWriteHead - mReadHead); local
164 if (available < 0) available += mCapacity;
166 available -= mBackPadding;
167 if (available <=0) {
170 if (available < int32_t(num)) {
171 num = available;
192 int32_t available = (mWriteHead - mReadHead); local
[all...]
/frameworks/base/core/java/android/util/
H A DBase64InputStream.java92 public int available() { method in class:Base64InputStream
/frameworks/base/core/java/com/android/internal/hardware/
H A DAmbientDisplayConfiguration.java39 public boolean available() { method in class:AmbientDisplayConfiguration
/frameworks/base/core/java/android/hardware/display/
H A DWifiDisplay.java60 boolean available, boolean canConnect, boolean remembered) {
71 mIsAvailable = available;
93 * The alias should be used in the UI whenever available. It is the value
102 * Returns true if device is available, false otherwise.
124 * Uses the device alias if available, otherwise uses the device name.
59 WifiDisplay(String deviceAddress, String deviceName, String deviceAlias, boolean available, boolean canConnect, boolean remembered) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DFlashlightTile.java158 public void onFlashlightAvailabilityChanged(boolean available) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DZenModeController.java44 public void onZenAvailableChanged(boolean available) {} argument
H A DFlashlightController.java161 private void dispatchAvailabilityChanged(boolean available) { argument
162 dispatchListeners(DISPATCH_AVAILABILITY_CHANGED, available);
216 private void setCameraAvailable(boolean available) {
219 changed = mTorchAvailable != available;
220 mTorchAvailable = available;
223 if (DEBUG) Log.d(TAG, "dispatchAvailabilityChanged(" + available + ")");
224 dispatchAvailabilityChanged(available);
268 * @param available true if the flashlight is currently available.
270 void onFlashlightAvailabilityChanged(boolean available); argument
[all...]
H A DZenModeControllerImpl.java186 private void fireZenAvailableChanged(boolean available) { argument
188 cb.onZenAvailableChanged(available);
/frameworks/support/compat/ics/android/support/v4/net/
H A DDatagramSocketWrapper.java51 protected int available() throws IOException { method in class:DatagramSocketWrapper.DatagramSocketImplWrapper
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_inter_prediction.c58 u32 available; member in struct:__anon650
516 (!a[0].available || !a[1].available ||
526 if (!a[2].available)
601 if (!a[2].available)
639 a[1].available = HANTRO_TRUE;
643 /* c is not available */
708 if (!a[2].available)
742 if (!a[2].available)
750 a[0].available
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java211 public int available() throws IOException { method in class:AssetFileDescriptor.AutoCloseInputStream
214 : super.available();
/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java61 public int available() throws IOException { method in class:LocalSocketImpl.SocketInputStream
386 * Returns the number of bytes available for reading without blocking.
388 * @return >= 0 count bytes available
391 protected int available() throws IOException method in class:LocalSocketImpl
393 return getInputStream().available();
/frameworks/base/core/java/android/os/
H A DMemoryFile.java268 public int available() throws IOException { method in class:MemoryFile.MemoryInputStream
309 count = Math.min(count, available());
/frameworks/base/core/java/android/util/jar/
H A DStrictJarFile.java333 public int available() throws IOException { method in class:StrictJarFile.JarFileInputStream
337 return super.available();
375 @Override public int available() throws IOException { method in class:StrictJarFile.ZipInflaterInputStream
382 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead);
412 @Override public int available() throws IOException { method in class:StrictJarFile.RAFStream
/frameworks/base/core/java/android/view/
H A DWindowManagerInternal.java128 public void onHardKeyboardStatusChange(boolean available); argument
271 * Returns true when the hardware keyboard is available.
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_PerfMeasurement.cpp131 * Start a measurement period using the next available query object.
133 * and BAD_VALUE if no more query objects are available.
179 * Get the next available duration measurement.
181 * Returns NO_DURATION_YET if no new measurement is available,
194 GLint available; local
196 GL_QUERY_RESULT_AVAILABLE_EXT, &available);
197 if (!available) {
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSerializedFrame.java130 public final int available() { method in class:SerializedFrame.DirectByteInputStream
/frameworks/base/services/core/java/com/android/server/audio/
H A DMediaFocusControl.java275 protected void setDuckingInExtPolicyAvailable(boolean available) { argument
276 mNotifyFocusOwnerOnDuck = !available;

Completed in 2052 milliseconds

12