Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 2814) sorted by relevance

12345678910>>...113

/frameworks/av/media/codec2/vndk/
Dtypes.cpp42 bool b2h(status_t from, HStatus* to, in b2h() argument
44 switch (from) { in b2h()
67 if (from & ~mask) { in b2h()
68 *to = static_cast<HStatus>(from); in b2h()
72 *bufferNeedsReallocation = from & BufferQueueDefs::BUFFER_NEEDS_REALLOCATION; in b2h()
75 *releaseAllBuffers = from & BufferQueueDefs::RELEASE_ALL_BUFFERS; in b2h()
82 bool h2b(HStatus from, status_t* to) { in h2b() argument
83 switch (from) { in h2b()
103 *to = static_cast<status_t>(from); in h2b()
136 bool b2h(sp<BFence> const& from, HFenceWrapper* to) { in b2h() argument
[all …]
/frameworks/native/libs/gui/bufferqueue/2.0/
Dtypes.cpp34 bool b2h(status_t from, HStatus* to, in b2h() argument
36 switch (from) { in b2h()
60 if (from & ~mask) { in b2h()
61 *to = static_cast<HStatus>(from); in b2h()
65 *bufferNeedsReallocation = from & BGBP::BUFFER_NEEDS_REALLOCATION; in b2h()
68 *releaseAllBuffers = from & BGBP::RELEASE_ALL_BUFFERS; in b2h()
75 bool h2b(HStatus from, status_t* to) { in h2b() argument
76 switch (from) { in h2b()
96 *to = static_cast<status_t>(from); in h2b()
129 bool b2h(sp<BFence> const& from, HFenceWrapper* to) { in b2h() argument
[all …]
/frameworks/base/core/java/android/service/notification/
DZenModeDiff.java71 public FieldDiff(@Nullable T from, @Nullable T to) { in FieldDiff() argument
72 mFrom = from; in FieldDiff()
79 public T from() { in from() method in ZenModeDiff.FieldDiff
138 BaseDiff(Object from, Object to) { in BaseDiff() argument
139 if (from == null) { in BaseDiff()
240 public ConfigDiff(ZenModeConfig from, ZenModeConfig to) { in ConfigDiff() argument
241 super(from, to); in ConfigDiff()
243 if (from == null && to == null) { in ConfigDiff()
253 if (from.user != to.user) { in ConfigDiff()
254 addField(FIELD_USER, new FieldDiff<>(from.user, to.user)); in ConfigDiff()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/palette/
DTarget.java60 Target(@NonNull Target from) { in Target() argument
61 mTargetRelativeLuminance = from.mTargetRelativeLuminance; in Target()
62 mChromaWeight = from.mChromaWeight; in Target()
63 mRelativeLuminanceWeight = from.mRelativeLuminanceWeight; in Target()
64 mPopulationWeight = from.mPopulationWeight; in Target()
65 mHueWeight = from.mHueWeight; in Target()
66 mChromaTarget = from.mChromaTarget; in Target()
67 mChromaMin = from.mChromaMin; in Target()
68 mChromaMax = from.mChromaMax; in Target()
72 @FloatRange(from = 0, to = 100)
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp474 virtual bool simpleMap(C2Config::level_t from, int32_t *to) = 0;
475 virtual bool simpleMap(int32_t from, C2Config::level_t *to) = 0;
476 virtual bool simpleMap(C2Config::profile_t from, int32_t *to) = 0;
477 virtual bool simpleMap(int32_t from, C2Config::profile_t *to) = 0;
480 bool passThroughMap(T from, U *to) { in passThroughMap()
482 if (from >= (T)C2_PROFILE_LEVEL_VENDOR_START && from < (T)INT32_MAX) { in passThroughMap()
483 *to = (U)from; in passThroughMap()
486 return simpleMap(from, to); in passThroughMap()
489 virtual bool mapLevel(C2Config::level_t from, int32_t *to) { in mapLevel()
490 return passThroughMap(from, to); in mapLevel()
[all …]
/frameworks/base/core/java/android/database/
DCursorWindow.java246 public @IntRange(from = 0) int getStartPosition() { in getStartPosition()
259 public void setStartPosition(@IntRange(from = 0) int pos) { in setStartPosition()
268 public @IntRange(from = 0) int getNumRows() { in getNumRows()
288 public boolean setNumColumns(@IntRange(from = 0) int columnNum) { in setNumColumns()
333 public boolean isNull(@IntRange(from = 0) int row, @IntRange(from = 0) int column) { in isNull() argument
348 public boolean isBlob(@IntRange(from = 0) int row, @IntRange(from = 0) int column) { in isBlob() argument
363 public boolean isLong(@IntRange(from = 0) int row, @IntRange(from = 0) int column) { in isLong() argument
377 public boolean isFloat(@IntRange(from = 0) int row, @IntRange(from = 0) int column) { in isFloat() argument
392 public boolean isString(@IntRange(from = 0) int row, @IntRange(from = 0) int column) { in isString() argument
404 public @Cursor.FieldType int getType(@IntRange(from = 0) int row, in getType() argument
[all …]
DCursor.java80 @IntRange(from = 0) int getCount(); in getCount()
91 @IntRange(from = -1) int getPosition(); in getPosition()
120 boolean moveToPosition(@IntRange(from = -1) int position); in moveToPosition()
200 @IntRange(from = -1) int getColumnIndex(String columnName); in getColumnIndex()
213 @IntRange(from = 0) int getColumnIndexOrThrow(String columnName) in getColumnIndexOrThrow()
222 String getColumnName(@IntRange(from = 0) int columnIndex); in getColumnName()
236 @IntRange(from = 0) int getColumnCount(); in getColumnCount()
248 byte[] getBlob(@IntRange(from = 0) int columnIndex); in getBlob()
260 String getString(@IntRange(from = 0) int columnIndex); in getString()
270 void copyStringToBuffer(@IntRange(from = 0) int columnIndex, CharArrayBuffer buffer); in copyStringToBuffer()
[all …]
/frameworks/av/services/audiopolicy/fuzzer/
DREADME.md27 …at` | 77 values of type `audio_format_t` | Value chosen from valid values by obtaining index from
28 …83 values of type `audio_channel_mask_t` | Value chosen from valid values by obtaining index from
29 …16 values of type `audio_output_flags_t` | Value chosen from valid values by obtaining index from
30 …_IN_AUX_DIGITAL`, `AUDIO_DEVICE_IN_STUB` | Value chosen from valid values by obtaining index from
31 …`MIX_TYPE_PLAYERS`, `MIX_TYPE_RECORDERS` | Value chosen from valid values by obtaining index from
32 …P_BACK_AND_RENDER`, `MIX_ROUTE_FLAG_ALL` | Value chosen from valid values by obtaining index from
33 | `SampleRate` | `0` to `UINT32_MAX` | Value obtained from FuzzedDataProvider |
34 …LAYED`, `AUDIO_USAGE_NOTIFICATION_EVENT` | Value chosen from valid values by obtaining index from
35 …OVIE`, `AUDIO_CONTENT_TYPE_SONIFICATION` | Value chosen from valid values by obtaining index from
36 …ce` | 14 values of type `audio_source_t` | Value chosen from valid values by obtaining index from
[all …]
/frameworks/base/core/java/android/text/
DAutoGrowArray.java54 private @IntRange(from = 0) int mSize;
66 public ByteArray(@IntRange(from = 0) int initialCapacity) { in ByteArray()
79 public void resize(@IntRange(from = 0) int newSize) { in resize()
128 public byte get(@IntRange(from = 0) int index) { in get()
135 public void set(@IntRange(from = 0) int index, byte value) { in set()
142 public @IntRange(from = 0) int size() { in size()
163 private @IntRange(from = 0) int mSize;
175 public IntArray(@IntRange(from = 0) int initialCapacity) { in IntArray()
188 public void resize(@IntRange(from = 0) int newSize) { in resize()
206 private void ensureCapacity(@IntRange(from = 0) int count) { in ensureCapacity()
[all …]
/frameworks/base/core/java/android/os/connectivity/
DWifiActivityEnergyInfo.java48 @IntRange(from = 0)
50 @IntRange(from = 0)
52 @IntRange(from = 0)
54 @IntRange(from = 0)
56 @IntRange(from = 0)
93 @IntRange(from = 0) long txDurationMillis, in WifiActivityEnergyInfo() argument
94 @IntRange(from = 0) long rxDurationMillis, in WifiActivityEnergyInfo()
95 @IntRange(from = 0) long scanDurationMillis, in WifiActivityEnergyInfo()
96 @IntRange(from = 0) long idleDurationMillis) { in WifiActivityEnergyInfo()
140 @IntRange(from = 0) long txDurationMillis, in WifiActivityEnergyInfo() argument
[all …]
/frameworks/av/services/oboeservice/fuzzer/
DREADME.md28 …PCM_I24_PACKED`, `AAUDIO_FORMAT_PCM_I32` | Value chosen from valid values by obtaining index from
29 | `UserId` | `INT32_MIN` to `INT32_MAX` | Value obtained from getuid() |
30 | `ProcessId` | `INT32_MIN` to `INT32_MAX` | Value obtained from getpid() |
31 | `InService` | `bool` | Value obtained from FuzzedDataProvider |
32 | `DeviceId` | `INT32_MIN` to `INT32_MAX` | Value obtained from FuzzedDataProvider |
33 | `SampleRate` | `INT32_MIN` to `INT32_MAX` | Value obtained from FuzzedDataProvider |
34 …O_CHANNEL_9POINT1POINT4`, `AAUDIO_CHANNEL_9POINT1POINT6` | Value obtained from FuzzedDataProvider |
35 …ECTION_OUTPUT`, `AAUDIO_DIRECTION_INPUT` | Value chosen from valid values by obtaining index from
36 …EXCLUSIVE`, `AAUDIO_SHARING_MODE_SHARED` | Value chosen from valid values by obtaining index from
37 …TUS`, `AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT` | Value chosen from valid values by obtaining index from
[all …]
/frameworks/av/media/libaudioclient/fuzzer/
DREADME.md10 covers libaudioflinger APIs as called from libaudioclient through IPC.
32 … `AUDIO_UNIQUE_ID_USE_CLIENT` 8. `AUDIO_UNIQUE_ID_USE_MAX` | Value obtained from FuzzedDataProvider
33 …`AUDIO_MODE_IN_COMMUNICATION` 6. `AUDIO_MODE_CALL_SCREEN` | Value obtained from FuzzedDataProvider|
34 …1. `AUDIO_SESSION_OUTPUT_STAGE` 2. `AUDIO_SESSION_DEVICE` | Value obtained from FuzzedDataProvider|
35 …E_ELEMENTARY_STREAM` 2. `AUDIO_ENCAPSULATION_MODE_HANDLE` | Value obtained from FuzzedDataProvider|
36 …NE` 1. `AUDIO_PORT_ROLE_SOURCE` 2. `AUDIO_PORT_ROLE_SINK` | Value obtained from FuzzedDataProvider|
37 …ICE` 2. `AUDIO_PORT_TYPE_MIX` 3. `AUDIO_PORT_TYPE_SESSION`| Value obtained from FuzzedDataProvider|
38 … 15 values of type `audio_stream_type_t` | Value chosen from valid values by obtaining index from
39 …at` | 77 values of type `audio_format_t` | Value chosen from valid values by obtaining index from
40 …83 values of type `audio_channel_mask_t` | Value chosen from valid values by obtaining index from
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/scenetransition/
DLockscreenSceneTransitionInteractorTest.kt101 from = KeyguardState.LOCKSCREEN, in transition_from_ls_scene_end_in_gone()
117 from = KeyguardState.LOCKSCREEN, in transition_from_ls_scene_end_in_gone()
138 from = KeyguardState.LOCKSCREEN, in transition_from_ls_scene_end_in_ls()
155 from = KeyguardState.LOCKSCREEN, in transition_from_ls_scene_end_in_ls()
163 from = KeyguardState.UNDEFINED, in transition_from_ls_scene_end_in_ls()
171 from = KeyguardState.UNDEFINED, in transition_from_ls_scene_end_in_ls()
191 from = KeyguardState.LOCKSCREEN, in transition_from_ls_scene_on_aod_end_in_ls()
201 from = KeyguardState.AOD, in transition_from_ls_scene_on_aod_end_in_ls()
218 from = KeyguardState.AOD, in transition_from_ls_scene_on_aod_end_in_ls()
226 from = KeyguardState.UNDEFINED, in transition_from_ls_scene_on_aod_end_in_ls()
[all …]
/frameworks/base/location/java/android/location/
DGnssMeasurementCorrections.java43 @FloatRange(from = -90.0f, to = 90.0f)
46 @FloatRange(from = -180.0f, to = 180.0f)
52 @FloatRange(from = -1000.0, to = 10000.0f)
60 @FloatRange(from = 0.0f)
68 @FloatRange(from = 0.0f)
72 @IntRange(from = 0)
92 @FloatRange(from = 0.0f, to = 360.0f)
98 @FloatRange(from = 0.0f, to = 180.0f)
118 @FloatRange(from = -90.0f, to = 90.0f)
124 @FloatRange(from = -180.0f, to = 180.0f)
[all …]
DGnssStatus.java168 @IntRange(from = 0)
179 public int getConstellationType(@IntRange(from = 0) int satelliteIndex) { in getConstellationType()
210 @IntRange(from = 1, to = 206)
211 public int getSvid(@IntRange(from = 0) int satelliteIndex) { in getSvid()
221 @FloatRange(from = 0, to = 63)
222 public float getCn0DbHz(@IntRange(from = 0) int satelliteIndex) { in getCn0DbHz()
231 @FloatRange(from = -90, to = 90)
232 public float getElevationDegrees(@IntRange(from = 0) int satelliteIndex) { in getElevationDegrees()
241 @FloatRange(from = 0, to = 360)
242 public float getAzimuthDegrees(@IntRange(from = 0) int satelliteIndex) { in getAzimuthDegrees()
[all …]
DGeocoder.java139 @FloatRange(from = -90D, to = 90D) double latitude, in getFromLocation() argument
140 @FloatRange(from = -180D, to = 180D) double longitude, in getFromLocation()
141 @IntRange(from = 1) int maxResults) in getFromLocation() argument
165 @FloatRange(from = -90D, to = 90D) double latitude, in getFromLocation() argument
166 @FloatRange(from = -180D, to = 180D) double longitude, in getFromLocation()
167 @IntRange(from = 1) int maxResults, in getFromLocation() argument
214 @NonNull String locationName, @IntRange(from = 1) int maxResults) throws IOException { in getFromLocationName() argument
236 @IntRange(from = 1) int maxResults, in getFromLocationName() argument
277 @IntRange(from = 1) int maxResults, in getFromLocationName() argument
278 @FloatRange(from = -90D, to = 90D) double lowerLeftLatitude, in getFromLocationName() argument
[all …]
/frameworks/native/libs/gui/include/gui/bufferqueue/2.0/
Dtypes.h41 bool b2h(status_t from, HStatus* to,
46 bool h2b(HStatus from, status_t* to);
72 bool b2h(sp<BFence> const& from, HFenceWrapper* to);
74 bool h2b(native_handle_t const* from, sp<BFence>* to);
82 bool b2h(int from, HConnectionType* to);
83 bool h2b(HConnectionType from, int* to);
91 bool b2h(BRect const& from, HRect* to);
92 bool h2b(HRect const& from, BRect* to);
100 bool b2h(BRegion const& from, HRegion* to);
101 bool h2b(HRegion const& from, BRegion* to);
[all …]
/frameworks/av/media/codec2/vndk/include/
Dtypes.h42 bool b2h(status_t from, HStatus* to,
47 bool h2b(HStatus from, status_t* to);
73 bool b2h(sp<BFence> const& from, HFenceWrapper* to);
75 bool h2b(native_handle_t const* from, sp<BFence>* to);
83 bool b2h(int from, HConnectionType* to);
84 bool h2b(HConnectionType from, int* to);
92 bool b2h(BRect const& from, HRect* to);
93 bool h2b(HRect const& from, BRect* to);
101 bool b2h(BRegion const& from, HRegion* to);
102 bool h2b(HRegion const& from, BRegion* to);
[all …]
/frameworks/base/graphics/java/android/graphics/text/
DLineBreaker.java285 private @FloatRange(from = 0.0f) float mWidth = 0;
286 private @FloatRange(from = 0.0f) float mFirstWidth = 0;
287 private @IntRange(from = 0) int mFirstWidthLineCount = 0;
289 private @FloatRange(from = 0) float mDefaultTabStop = 0;
298 public void setWidth(@Px @FloatRange(from = 0.0f) float width) { in setWidth()
310 public void setIndent(@Px @FloatRange(from = 0.0f) float firstWidth, in setIndent()
311 @Px @IntRange(from = 0) int firstWidthLineCount) { in setIndent() argument
325 @Px @FloatRange(from = 0) float defaultTabStop) { in setTabStops() argument
335 public @Px @FloatRange(from = 0.0f) float getWidth() { in getWidth()
344 public @Px @FloatRange(from = 0.0f) float getFirstWidth() { in getFirstWidth()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DFavoritesModel.kt111 override fun onMoveItem(from: Int, to: Int) { in onMoveItem()
112 onMoveItemInternal(from, to) in onMoveItem()
139 private fun onMoveItemInternal(from: Int, to: Int) { in onMoveItemInternal()
140 if (from == dividerPosition) return // divider does not move in onMoveItemInternal()
142 if (from < dividerPosition && to >= dividerPosition || in onMoveItemInternal()
143 from > dividerPosition && to <= dividerPosition) { in onMoveItemInternal()
144 if (from < dividerPosition && to >= dividerPosition) { in onMoveItemInternal()
146 (elements[from] as ControlInfoWrapper).favorite = false in onMoveItemInternal()
147 } else if (from > dividerPosition && to <= dividerPosition) { in onMoveItemInternal()
149 (elements[from] as ControlInfoWrapper).favorite = true in onMoveItemInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackConfig.kt29 @FloatRange(from = 0.0, to = 1.0) val progressBasedDragMinScale: Float = 0f,
31 @FloatRange(from = 0.0, to = 1.0) val progressBasedDragMaxScale: Float = 0.2f,
33 @FloatRange(from = 0.0, to = 1.0) val additionalVelocityMaxBump: Float = 0.15f,
35 @FloatRange(from = 0.0) val deltaMillisForDragInterval: Float = 0f,
37 @FloatRange(from = 0.0, to = 1.0) val deltaProgressForDragThreshold: Float = 0.015f,
45 @FloatRange(from = 0.0, to = 1.0) val upperBookendScale: Float = 1f,
47 @FloatRange(from = 0.0, to = 1.0) val lowerBookendScale: Float = 0.05f,
49 @FloatRange(from = 0.0, fromInclusive = false) val exponent: Float = 1f / 0.89f,
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DSceneTransitions.kt58 from: SceneKey, in <lambda>()
63 .getOrPut(from) { mutableMapOf() } in <lambda>()
65 .getOrPut(key) { findSpec(from, to, key) } in <lambda>()
68 private fun findSpec(from: SceneKey, to: SceneKey, key: TransitionKey?): TransitionSpecImpl { in <lambda>()
69 val spec = transition(from, to, key) { it.from == from && it.to == to } in <lambda>()
74 val reversed = transition(from, to, key) { it.from == to && it.to == from } in <lambda>()
80 transition(from, to, key) { in <lambda>()
81 (it.from == from && it.to == null) || (it.to == to && it.from == null) in <lambda>()
87 return transition(from, to, key) { in <lambda>()
88 (it.from == to && it.to == null) || (it.to == from && it.from == null) in <lambda>()
[all …]
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DALookup.h30 bool lookup(const T& from, U *to) const;
31 bool rlookup(const U& from, T *to) const;
34 inline bool map(const T& from, V *to) const { return lookup(from, to); } in map()
37 inline bool map(const V& from, T *to) const { return rlookup(from, to); } in map()
49 bool ALookup<T, U>::lookup(const T& from, U *to) const { in lookup() argument
51 if (elem.first == from) { in lookup()
60 bool ALookup<T, U>::rlookup(const U& from, T *to) const { in rlookup() argument
62 if (elem.second == from) { in rlookup()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/
DSceneContainerTransitions.kt44 from(Scenes.Bouncer, to = Scenes.Gone) { bouncerToGoneTransition() } in <lambda>()
45 from(Scenes.Gone, to = Scenes.NotificationsShade) { goneToNotificationsShadeTransition() } in <lambda>()
46 from(Scenes.Gone, to = Scenes.Shade) { goneToShadeTransition() } in <lambda>()
47 from( in <lambda>()
54 from( in <lambda>()
61 from(Scenes.Gone, to = Scenes.QuickSettings) { goneToQuickSettingsTransition() } in <lambda>()
62 from( in <lambda>()
69 from(Scenes.Gone, to = Scenes.QuickSettingsShade) { goneToQuickSettingsShadeTransition() } in <lambda>()
70 from(Scenes.Lockscreen, to = Scenes.Bouncer) { lockscreenToBouncerTransition() } in <lambda>()
71 from(Scenes.Lockscreen, to = Scenes.Communal) { lockscreenToCommunalTransition() } in <lambda>()
[all …]
/frameworks/base/core/java/android/widget/
DSimpleCursorAdapter.java81 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { in SimpleCursorAdapter() argument
84 mOriginalFrom = from; in SimpleCursorAdapter()
85 findColumns(c, from); in SimpleCursorAdapter()
106 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, in SimpleCursorAdapter() argument
110 mOriginalFrom = from; in SimpleCursorAdapter()
111 findColumns(c, from); in SimpleCursorAdapter()
142 final int[] from = mFrom; in bindView() local
150 bound = binder.setViewValue(v, cursor, from[i]); in bindView()
154 String text = cursor.getString(from[i]); in bindView()
329 private void findColumns(Cursor c, String[] from) { in findColumns() argument
[all …]

12345678910>>...113