/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/ |
D | PriorityNestedScrollConnection.kt | 55 available: Offset, in <lambda>() 60 val offsetBeforeStart = offsetScrolledBeforePriorityMode - available in <lambda>() 65 !canStartPostScroll(available, offsetBeforeStart) in <lambda>() 71 return onPriorityStart(available) in <lambda>() 74 override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset { in <lambda>() 77 if (canStartPreScroll(available, offsetScrolledBeforePriorityMode)) { in <lambda>() 78 return onPriorityStart(available) in <lambda>() 81 offsetScrolledBeforePriorityMode += available in <lambda>() 93 offsetScrolledBeforePriorityMode += available in <lambda>() 99 return onScroll(available) in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/integrity/parser/ |
D | LimitInputStream.java | 38 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()
|
D | RandomAccessInputStream.java | 46 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()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/nestedscroll/ |
D | PriorityNestedScrollConnectionTest.kt | 72 available = Offset.Zero, in <lambda>() 77 scrollConnection.onPreFling(available = Velocity.Zero) in <lambda>() 80 scrollConnection.onPostFling(consumed = Velocity.Zero, available = Velocity.Zero) in <lambda>() 83 scrollConnection.onPreScroll(available = Offset.Zero, source = NestedScrollSource.Drag) in <lambda>() 91 available = Offset.Zero, in <lambda>() 100 scrollConnection.onPreScroll(available = Offset.Zero, source = NestedScrollSource.Drag) in <lambda>() 103 scrollConnection.onPreFling(available = Velocity.Zero) in <lambda>() 106 scrollConnection.onPostFling(consumed = Velocity.Zero, available = Velocity.Zero) in <lambda>() 117 available = Offset.Zero, in <lambda>() 132 available = offset2, in <lambda>() [all …]
|
D | LargeTopAppBarNestedScrollConnectionTest.kt | 42 available: Offset, in NestedScrollConnection() 45 val consumedByPreScroll = onPreScroll(available = available, source = scrollSource) in NestedScrollConnection() 47 onPostScroll(consumed = consumed, available = available - consumed, source = scrollSource) in NestedScrollConnection() 56 scrollConnection.onPreScroll(available = Offset(x = 0f, y = -1f), source = scrollSource) in onScrollUp_consumeHeightFirst() 69 scrollConnection.scroll(available = Offset(0f, 1f), consumedByScroll = Offset(0f, 1f)) in onScrollUpAfterContentScrolled_ignoreUpEvent() 72 scrollConnection.onPreScroll(available = Offset(x = 0f, y = -1f), source = scrollSource) in onScrollUpAfterContentScrolled_ignoreUpEvent() 85 scrollConnection.scroll(available = Offset(0f, 1f), consumedByScroll = Offset(0f, 1f)) in onScrollUpAfterContentReturnedToZero_consumeHeight() 88 scrollConnection.scroll(available = Offset(0f, -1f), consumedByScroll = Offset(0f, -1f)) in onScrollUpAfterContentReturnedToZero_consumeHeight() 91 scrollConnection.onPreScroll(available = Offset(x = 0f, y = -1f), source = scrollSource) in onScrollUpAfterContentReturnedToZero_consumeHeight() 104 scrollConnection.onPreScroll(available = Offset(x = 0f, y = -1f), source = scrollSource) in onScrollUp_consumeDownToMin() [all …]
|
/frameworks/libs/binary_translation/tools/nogrod/ |
D | byte_input_stream_tests.cc | 35 ASSERT_TRUE(in.available()); in TEST() 37 ASSERT_TRUE(in.available()); in TEST() 39 ASSERT_TRUE(in.available()); in TEST() 44 ASSERT_TRUE(in.available()); in TEST() 46 ASSERT_TRUE(in.available()); in TEST() 48 ASSERT_TRUE(in.available()); in TEST() 50 ASSERT_TRUE(in.available()); in TEST() 52 ASSERT_TRUE(in.available()); in TEST() 60 ASSERT_TRUE(!in.available()); in TEST()
|
/frameworks/av/media/libstagefright/ |
D | SkipCutBuffer.cpp | 144 size_t available = mCapacity - sizeused - 32; in write() local 145 if (available < num) { in write() 146 int32_t newcapacity = mCapacity + (num - available); in write() 184 int32_t available = (mWriteHead - mReadHead); in read() local 185 if (available < 0) available += mCapacity; in read() 187 available -= mBackPadding; in read() 188 if (available <=0) { in read() 191 if (available < int32_t(num)) { in read() 192 num = available; in read() 209 return available; in read() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | ByteStream.java | 88 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
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/ |
D | NotificationScrimNestedScrollConnectionTest.kt | 58 available = Offset(x = 0f, y = -1f), in <lambda>() 73 available = Offset(x = 0f, y = -1f), in <lambda>() 88 available = availableOffset, in <lambda>() 105 available = availableOffset, in <lambda>() 118 available = Offset(x = 0f, y = -1f), in <lambda>() 130 available = Offset(x = 0f, y = 1f), in <lambda>() 146 available = availableOffset, in <lambda>() 163 available = availableOffset, in <lambda>() 178 available = Offset(x = 0f, y = 1f), in <lambda>() 194 available = Offset(x = 0f, y = 1f), in <lambda>() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ScrollViewCaptureHelper.java | 158 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()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetFileDescriptor.java | 240 public int available() throws IOException { in available() method in AssetFileDescriptor.AutoCloseInputStream 241 return mDelegateInputStream.available(); in available() 308 public int available() throws IOException { in available() method in AssetFileDescriptor.NonSeekableAutoCloseInputStream 311 : super.available(); in available() 402 public int available() throws IOException { in available() method in AssetFileDescriptor.SeekableAutoCloseInputStream 403 long available = mTotalSize - mOffset; in available() local 404 return available >= 0 in available() 405 ? (available < 0x7fffffff ? (int) available : 0x7fffffff) in available() 418 int available = available(); in read() local 419 if (available <= 0) { in read() [all …]
|
/frameworks/av/media/libnbaio/ |
D | AudioBufferProviderSource.cpp | 63 size_t available = mBuffer.frameCount - mConsumed; in read() local 64 if (CC_UNLIKELY(count > available)) { in read() 65 count = available; in read() 115 size_t available = mBuffer.frameCount - mConsumed; in readVia() local 116 if (CC_UNLIKELY(count > available)) { in readVia() 117 count = available; in readVia()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | DraggableHandlerTest.kt | 218 available: Offset, in NestedScrollConnection() 223 available = available, in NestedScrollConnection() 230 available = available - consumed, in NestedScrollConnection() 236 available: Velocity, in NestedScrollConnection() 243 coroutineScope.launch { onPreFling(available = available) } in NestedScrollConnection() 542 available = downOffset(fractionOfScreen = 0.1f), in <lambda>() 554 available = Offset.Zero, in <lambda>() 568 available = downOffset(fractionOfScreen = 0.1f), in <lambda>() 580 nestedScroll.scroll(available = downOffset(fractionOfScreen = 0.1f)) in <lambda>() 588 available = downOffset(fractionOfScreen = 0.1f), in <lambda>() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | PackageData.java | 46 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()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/communal/domain/interactor/ |
D | CommunalInteractorKosmos.kt | 68 suspend fun Kosmos.setCommunalAvailable(available: Boolean) { in setCommunalAvailable() 69 fakeFeatureFlagsClassic.set(Flags.COMMUNAL_SERVICE_ENABLED, available) in setCommunalAvailable() 70 if (available) { in setCommunalAvailable() 76 setIsEncryptedOrLockdown(!available) in setCommunalAvailable() 77 setKeyguardShowing(available) in setCommunalAvailable()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | TokenBucketTest.java | 108 while (tb.available() < 10) { in testRefill() 114 while (tb.available() < 10) { in testRefill() 153 total += tb.get(tb.available()); in testBurst() 162 assertTrue(tb.available() >= n); in getOneByOne() 164 assertTrue(tb.available() >= n - 1); in getOneByOne() 171 assertEquals(0, tb.available()); in assertEmpty()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardSurfaceBehindRepository.kt | 41 fun setSurfaceRemoteAnimationTargetAvailable(available: Boolean) in setAnimatingSurface() 57 override fun setSurfaceRemoteAnimationTargetAvailable(available: Boolean) { in setAnimatingSurface() 58 _isSurfaceRemoteAnimationTargetAvailable.value = available in setAnimatingSurface()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/ |
D | ReduceBrightColorsAutoAddableTest.kt | 66 testWithFeatureAvailability(available = false) { in notAvailable_strategyDisabled() 73 testWithFeatureAvailability(available = true) { in available_strategyIfNotAdded() 106 testWithFeatureAvailability(available = true) { in available_a11yQsShortcutFlagEnabled_strategyDisabled() 111 available: Boolean = true, in testWithFeatureAvailability() 114 underTest = ReduceBrightColorsAutoAddable(reduceBrightColorsController, available) in testWithFeatureAvailability()
|
/frameworks/base/media/jni/tuner/ |
D | DvrClient.cpp | 63 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | FlashlightControllerImpl.java | 199 private void dispatchAvailabilityChanged(boolean available) { in dispatchAvailabilityChanged() argument 200 dispatchListeners(DISPATCH_AVAILABILITY_CHANGED, available); in dispatchAvailabilityChanged() 262 private void setCameraAvailable(boolean available) { 265 changed = mTorchAvailable != available; 266 mTorchAvailable = available; 269 if (DEBUG) Log.d(TAG, "dispatchAvailabilityChanged(" + available + ")"); 270 dispatchAvailabilityChanged(available);
|
/frameworks/base/core/java/android/hardware/input/ |
D | input_framework.aconfig | 17 … "Controls if the sticky keys accessibility feature for physical keyboard is available to the user" 24 … "Controls if the bounce keys accessibility feature for physical keyboard is available to the user" 47 …n: "Controls if the slow keys accessibility feature for physical keyboard is available to the user"
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | GlobalActions.java | 91 public void onGlobalActionsAvailableChanged(boolean available) { in onGlobalActionsAvailableChanged() argument 92 if (DEBUG) Slog.d(TAG, "onGlobalActionsAvailableChanged " + available); in onGlobalActionsAvailableChanged() 93 mGlobalActionsAvailable = available; in onGlobalActionsAvailableChanged()
|
/frameworks/base/services/core/jni/gnss/ |
D | AGnssRil.h | 44 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,
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeProximitySensor.java | 40 public void setSensorAvailable(boolean available) { in setSensorAvailable() argument 41 mAvailable = available; in setSensorAvailable()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/ |
D | FakeKeyguardSurfaceBehindRepository.kt | 38 override fun setSurfaceRemoteAnimationTargetAvailable(available: Boolean) { in setSurfaceRemoteAnimationTargetAvailable() 39 _isSurfaceAvailable.value = available in setSurfaceRemoteAnimationTargetAvailable()
|