Searched refs:available (Results 1 - 25 of 112) sorted by relevance

12345

/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/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/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 DFlashlightControllerImpl.java165 private void dispatchAvailabilityChanged(boolean available) { argument
166 dispatchListeners(DISPATCH_AVAILABILITY_CHANGED, available);
220 private void setCameraAvailable(boolean available) {
223 changed = mTorchAvailable != available;
224 mTorchAvailable = available;
227 if (DEBUG) Log.d(TAG, "dispatchAvailabilityChanged(" + available + ")");
228 dispatchAvailabilityChanged(available);
H A DZenModeController.java43 default void onZenAvailableChanged(boolean available) {} argument
/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/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;
H A DMonoPipeReader.cpp41 ssize_t ret = mFifoReader.available();
H A DPipeReader.cpp53 ssize_t avail = mFifoReader.available(&lost);
/frameworks/rs/rsov/
H A DAndroid.mk5 # Not building RSoV modules in PDK builds, as libSPIRV is not available in PDK.
/frameworks/base/core/tests/coretests/src/android/util/
H A DTokenBucketTest.java94 while (tb.available() < 10) {
100 while (tb.available() < 10) {
137 total += tb.get(tb.available());
146 assertTrue(tb.available() >= n);
148 assertTrue(tb.available() >= n - 1);
155 assertEquals(0, tb.available());
/frameworks/base/core/java/android/accessibilityservice/
H A DIAccessibilityServiceClient.aidl56 void onAccessibilityButtonAvailabilityChanged(boolean available);
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
/frameworks/support/design/src/android/support/design/widget/
H A DHeaderScrollingViewBehavior.java109 final Rect available = mTempRect1;
110 available.set(parent.getPaddingLeft() + lp.leftMargin,
122 available.left += parentInsets.getSystemWindowInsetLeft();
123 available.right -= parentInsets.getSystemWindowInsetRight();
128 child.getMeasuredHeight(), available, out, layoutDirection);
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
H A DUtils.java43 byte[] bytes = new byte[inputStream.available()];
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
H A DUtils.java43 byte[] bytes = new byte[inputStream.available()];
/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/android/view/accessibility/
H A DIAccessibilityManager.aidl67 void notifyAccessibilityButtonVisibilityChanged(boolean available);
/frameworks/base/core/java/com/android/internal/os/
H A DAtomicFile.java154 int avail = stream.available();
166 avail = stream.available();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DTestUtil.java96 Context context, ArrayList<String> available, ArrayList<String> active) {
98 intent.putExtra(ConnectivityManager.EXTRA_AVAILABLE_TETHER, available);
95 sendTetherStateChanged(BroadcastReceiver broadcastReceiver, Context context, ArrayList<String> available, ArrayList<String> active) argument
/frameworks/support/compat/java/android/support/v4/util/
H A DAtomicFile.java179 int avail = stream.available();
191 avail = stream.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/
H A DRecoverySystemService.java83 final boolean available = checkAndWaitForUncryptService();
84 if (!available) {
261 final boolean available = checkAndWaitForUncryptService();
262 if (!available) {

Completed in 3231 milliseconds

12345