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

123

/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/base/services/core/java/com/android/server/policy/
H A DGlobalActionsProvider.java33 void onGlobalActionsAvailableChanged(boolean available); argument
H A DGlobalActions.java91 public void onGlobalActionsAvailableChanged(boolean available) { argument
92 if (DEBUG) Slog.d(TAG, "onGlobalActionsAvailableChanged " + available);
93 mGlobalActionsAvailable = available;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DActiveModeManager.java29 * Base class for available WiFi operating modes.
55 * @param available boolean indicating if scanning is available
57 default void sendScanAvailableBroadcast(Context context, boolean available) { argument
58 Log.d(TAG, "sending scan available broadcast: " + available);
61 if (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/core/java/android/accessibilityservice/
H A DAccessibilityButtonController.java45 * supported, it may not be available at all times, such as when a foreground application uses
68 * available to the calling service.
76 * available to the calling service, {@code false} otherwise
170 void dispatchAccessibilityButtonAvailabilityChanged(boolean available) { argument
187 handler.post(() -> callback.onAvailabilityChanged(this, available));
211 * @param available {@code true} if the accessibility button is available to this
215 boolean available) {
214 onAvailabilityChanged(AccessibilityButtonController controller, boolean available) argument
H A DFingerprintGestureController.java83 * Gets if the fingerprint sensor's gesture detection is available.
85 * @return {@code true} if the sensor's gesture detection is available. {@code false} if it is
171 * Called when the fingerprint sensor's gesture detection becomes available or unavailable.
173 * @param available Whether or not the sensor's gesture detection is now available.
175 public void onGestureDetectionAvailabilityChanged(boolean available) {} argument
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DFlashlightController.java43 * @param available true if the flashlight is currently available.
45 void onFlashlightAvailabilityChanged(boolean available); argument
H A DZenModeController.java44 default void onZenAvailableChanged(boolean available) {} argument
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
H A DRemoteInputStream.java30 int available() throws IOException; method in interface:RemoteInputStream
H A DRemoteInputStreamAdapter.java59 public int available() throws IOException { method in class:RemoteInputStreamAdapter
60 return mDelegate.available();
/frameworks/av/media/libstagefright/
H A DSkipCutBuffer.cpp144 size_t available = mCapacity - sizeused - 32; local
145 if (available < num) {
146 int32_t newcapacity = mCapacity + (num - available);
172 int32_t available = (mWriteHead - mReadHead); local
173 if (available < 0) available += mCapacity;
175 available -= mBackPadding;
176 if (available <=0) {
179 if (available < int32_t(num)) {
180 num = available;
201 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/services/usb/java/com/android/server/usb/descriptors/
H A DByteStream.java88 if (available() > 0) {
102 if (available() > 0) {
116 if (available() > 0) {
133 if (available() >= 2) {
151 if (available() >= 3) {
167 if (available() >= 4) {
218 * @return The number of bytes available to be read in the stream.
220 public int available() { method in class:ByteStream
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DTestUtil.java108 Context context, ArrayList<String> available, ArrayList<String> active) {
110 intent.putExtra(ConnectivityManager.EXTRA_AVAILABLE_TETHER, available);
107 sendTetherStateChanged(BroadcastReceiver broadcastReceiver, Context context, ArrayList<String> available, ArrayList<String> active) argument
/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/core/java/com/android/internal/hardware/
H A DAmbientDisplayConfiguration.java43 public boolean available() { method in class:AmbientDisplayConfiguration
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DFlashlightTile.java154 public void onFlashlightAvailabilityChanged(boolean available) { argument
/frameworks/support/compat/src/main/java/androidx/core/net/
H A DDatagramSocketWrapper.java51 protected int available() throws IOException { method in class:DatagramSocketWrapper.DatagramSocketImplWrapper
/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();

Completed in 532 milliseconds

123