Home
last modified time | relevance | path

Searched refs:available (Results 1 – 25 of 246) sorted by relevance

12345678910

/aosp14/frameworks/base/services/core/java/com/android/server/integrity/parser/
H A DLimitInputStream.java38 public int available() throws IOException { in available() method in LimitInputStream
39 return Math.min(super.available(), mLimit - mReadBytes); in available()
61 int available = available(); in read() local
62 if (available <= 0) { in read()
65 int result = super.read(b, off, Math.min(len, available)); in read()
75 int available = available(); in skip() local
76 if (available <= 0) { in skip()
79 int bytesToSkip = (int) Math.min(available, n); in skip()
H A DRandomAccessInputStream.java46 public int available() throws IOException { in available() method in RandomAccessInputStream
57 if (available() <= 0) { in read()
74 int available = available(); in read() local
75 if (available <= 0) { in read()
78 int result = mRandomAccessObject.read(b, off, Math.min(len, available)); in read()
88 int available = available(); in skip() local
89 if (available <= 0) { in skip()
92 int skipAmount = (int) Math.min(available, n); in skip()
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DByteStream.java88 if (available() > 0) { in peekByte()
102 if (available() > 0) { in getByte()
116 if (available() > 0) { in getUnsignedByte()
133 if (available() >= 2) { in unpackUsbShort()
151 if (available() >= 3) { in unpackUsbTriple()
167 if (available() >= 4) { in unpackUsbInt()
223 public int available() { in available() method in ByteStream
/aosp14/frameworks/base/core/java/com/android/internal/view/
H A DScrollViewCaptureHelper.java158 final Rect available = new Rect(requestedContentBounds); in onScrollRequested() local
159 if (!view.getChildVisibleRect(contentView, available, offset)) { in onScrollRequested()
160 available.setEmpty(); in onScrollRequested()
161 result.availableArea = available; in onScrollRequested()
166 available.offset(-offset.x, -offset.y); in onScrollRequested()
169 available.offset( in onScrollRequested()
175 available.offset(-scrollBounds.left, -scrollBounds.top); in onScrollRequested()
179 available.offset(0, scrollDelta); in onScrollRequested()
181 result.availableArea = new Rect(available); in onScrollRequested()
H A DRecyclerViewCaptureHelper.java131 Rect available = new Rect(requestedContainerBounds); in onScrollRequested() local
132 available.offset(-scrollBounds.left, -scrollBounds.top); in onScrollRequested()
133 available.offset(0, mScrollDelta); in onScrollRequested()
134 result.availableArea = available; in onScrollRequested()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
H A DPackageData.java46 public final boolean available; field in PackageData
55 boolean available, in PackageData() argument
63 this.available = available; in PackageData()
83 packageName, agentName, BackupStatus.BACKUP_NOT_ALLOWED, stopped, available, uid); in backupNotAllowed()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DTokenBucketTest.java97 while (tb.available() < 10) { in testRefill()
103 while (tb.available() < 10) { in testRefill()
140 total += tb.get(tb.available()); in testBurst()
149 assertTrue(tb.available() >= n); in getOneByOne()
151 assertTrue(tb.available() >= n - 1); in getOneByOne()
158 assertEquals(0, tb.available()); in assertEmpty()
/aosp14/frameworks/base/media/jni/tuner/
H A DDvrClient.cpp63 int64_t available = mDvrMQ->availableToWrite(); in readFromFile() local
64 int64_t write = min(size, available); in readFromFile()
118 int64_t available = mDvrMQ->availableToWrite(); in readFromBuffer() local
119 size = min(size, available); in readFromBuffer()
140 int64_t available = mDvrMQ->availableToRead(); in writeToFile() local
141 int64_t toRead = min(size, available); in writeToFile()
193 int64_t available = mDvrMQ->availableToRead(); in writeToBuffer() local
194 size = min(size, available); in writeToBuffer()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DFlashlightControllerImpl.java199 private void dispatchAvailabilityChanged(boolean available) { in dispatchAvailabilityChanged() argument
200 dispatchListeners(DISPATCH_AVAILABILITY_CHANGED, available); in dispatchAvailabilityChanged()
260 private void setCameraAvailable(boolean available) {
263 changed = mTorchAvailable != available;
264 mTorchAvailable = available;
267 if (DEBUG) Log.d(TAG, "dispatchAvailabilityChanged(" + available + ")");
268 dispatchAvailabilityChanged(available);
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DReduceBrightColorsAutoAddableTest.kt63 testWithFeatureAvailability(available = false) {
69 testWithFeatureAvailability(available = true) {
98 available: Boolean = true,
101 underTest = ReduceBrightColorsAutoAddable(reduceBrightColorsController, available)
/aosp14/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
H A DSwipeable.kt841 override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset {
842 val delta = available.toFloat()
852 available: Offset,
856 performDrag(available.toFloat()).toOffset()
862 override suspend fun onPreFling(available: Velocity): Velocity {
863 val toFling = Offset(available.x, available.y).toFloat()
867 available
873 override suspend fun onPostFling(consumed: Velocity, available: Velocity): Velocity {
874 performFling(velocity = Offset(available.x, available.y).toFloat())
875 return available
/aosp14/frameworks/base/services/core/jni/gnss/
H A DAGnssRil.h44 jboolean available, const jstring& apn, jlong networkHandle,
57 jboolean updateNetworkState(jboolean connected, jint type, jboolean roaming, jboolean available,
74 jboolean updateNetworkState(jboolean connected, jint type, jboolean roaming, jboolean available,
86 jboolean updateNetworkState(jboolean connected, jint type, jboolean roaming, jboolean available,
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DGlobalActions.java91 public void onGlobalActionsAvailableChanged(boolean available) { in onGlobalActionsAvailableChanged() argument
92 if (DEBUG) Slog.d(TAG, "onGlobalActionsAvailableChanged " + available); in onGlobalActionsAvailableChanged()
93 mGlobalActionsAvailable = available; in onGlobalActionsAvailableChanged()
/aosp14/frameworks/base/telephony/common/com/google/android/mms/pdu/
H A DPduParser.java850 int startPos = pduDataStream.available(); in parseParts()
878 int endPos = pduDataStream.available(); in parseParts()
1371 int startPos = pduDataStream.available(); in parseContentTypeParams()
1416 tempPos = pduDataStream.available(); in parseContentTypeParams()
1440 tempPos = pduDataStream.available(); in parseContentTypeParams()
1484 tempPos = pduDataStream.available(); in parseContentTypeParams()
1503 tempPos = pduDataStream.available(); in parseContentTypeParams()
1552 int startPos = pduDataStream.available(); in parseContentType()
1580 int endPos = pduDataStream.available(); in parseContentType()
1631 int startPos = pduDataStream.available(); in parsePartHeaders()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DSpatializerHelper.java687 boolean available = true; in evaluateState()
696 available = false; in evaluateState()
700 return new Pair<>(deviceState.isSAEnabled(), available); in evaluateState()
955 if (available) { in setDispatchAvailableState()
960 loglogi("setDispatchAvailableState(" + available in setDispatchAvailableState()
965 if (available) { in setDispatchAvailableState()
970 loglogi("setDispatchAvailableState(" + available in setDispatchAvailableState()
975 if (available) { in setDispatchAvailableState()
985 if (available) { in setDispatchAvailableState()
1329 private void dispatchHeadTrackerAvailable(boolean available) { in dispatchHeadTrackerAvailable() argument
[all …]
/aosp14/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityButtonController.java172 void dispatchAccessibilityButtonAvailabilityChanged(boolean available) { in dispatchAccessibilityButtonAvailabilityChanged() argument
189 handler.post(() -> callback.onAvailabilityChanged(this, available)); in dispatchAccessibilityButtonAvailabilityChanged()
217 boolean available) { in onAvailabilityChanged() argument
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
H A DFakeProximitySensor.java40 public void setSensorAvailable(boolean available) { in setSensorAvailable() argument
41 mAvailable = available; in setSensorAvailable()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
H A DFakeTrustRepository.kt46 fun setCurrentUserActiveUnlockAvailable(available: Boolean) {
47 _isCurrentUserActiveUnlockAvailable.value = available
/aosp14/system/core/init/
H A Dkeychords.cpp168 Keychords::Mask available(mask.size()); in GeteventEnable() local
169 auto res = ::ioctl(fd, EVIOCGBIT(EV_KEY, available.bytesize()), available.data()); in GeteventEnable()
171 if (!(available & mask)) return false; in GeteventEnable()
186 current_ |= mask & available & set; in GeteventEnable()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DReduceBrightColorsAutoAddable.kt40 @Named(RBC_AVAILABLE) private val available: Boolean,
61 if (available) {
/aosp14/frameworks/base/samples/training/network-usage/
H A DREADME.txt11 when any network connection is available, or only when a Wi-Fi connection is available.
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/domain/interactor/
H A DFakeQSTile.kt27 var available: Boolean = true,
39 return available
/aosp14/frameworks/base/core/java/android/util/jar/
H A DStrictJarFile.java376 public int available() throws IOException { in available() method in StrictJarFile.JarFileInputStream
380 return super.available(); in available()
419 @Override public int available() throws IOException { in available() method in StrictJarFile.ZipInflaterInputStream
426 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead); in available()
457 @Override public int available() throws IOException { in available() method in StrictJarFile.FDStream
/aosp14/frameworks/base/core/jni/
H A Dandroid_view_InputEventReceiver.md8 2. The app's `Looper` is notified about the available event.
10 4. If a batched input event is available, `InputConsumer::hasPendingBatch` returns true. No event i…
11 5. The app is notified that a batched event is available for consumption, and schedules a runnable …
19 The app is notified about the available event via the `Looper` callback `handleEvent`. When the app…
21 … efficient to read them all at once. Therefore, whenever the events are available, the app will tr…
/aosp14/frameworks/base/media/jni/soundpool/
H A DSound.cpp85 size_t available = heap->getSize(); in decode() local
143 const size_t dataSize = std::min(available, (size_t)std::max(info.size, 0)); in decode()
147 available -= dataSize; in decode()
157 if (available == 0) { in decode()

12345678910