Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DFocusFinder.java49 static boolean isPartiallyInDirection(Rect srcRect, Rect destRect, int direction) { in isPartiallyInDirection() argument
50 switch (direction) { in isPartiallyInDirection()
73 static boolean isInDirection(Rect srcRect, Rect destRect, int direction) { in isInDirection() argument
76 if (isStrictlyInDirection(srcRect, destRect, direction)) { in isInDirection()
83 if (direction != DIRECTIONS[i] in isInDirection()
90 switch (direction) { in isInDirection()
126 static boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
127 switch (direction) { in isCandidate()
162 static boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument
164 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate()
[all …]
DNavigator.java165 @NonNull AccessibilityNodeInfo sourceNode, int direction, int rotationCount) { in findRotateTarget() argument
176 findNextFocusableInVirtualRoot(virtualViewAncestor, candidate, direction); in findRotateTarget()
181 nextCandidate = candidate.focusSearch(direction); in findRotateTarget()
219 direction == View.FOCUS_FORWARD in findRotateTarget()
418 int direction) { in findNudgeTargetFocusArea() argument
471 direction)) { in findNudgeTargetFocusArea()
475 addWindowsInDirection(windows, currentWindow, candidateWindows, direction, in findNudgeTargetFocusArea()
495 currentFocusAreaBounds, candidateFocusAreas, candidateFocusAreasBounds, direction); in findNudgeTargetFocusArea()
562 int direction) { in shouldNudgeOutOfIme() argument
569 direction)) { in shouldNudgeOutOfIme()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DTaskGridNavHelperTest.java36 @TaskGridNavHelper.TASK_NAV_DIRECTION int direction = TaskGridNavHelper.DIRECTION_DOWN; in equalLengthRows_noFocused_onTop_pressDown_goesToBottom() local
42 taskGridNavHelper.getNextGridPage(currentPageTaskViewId, delta, direction, cycle); in equalLengthRows_noFocused_onTop_pressDown_goesToBottom()
53 @TaskGridNavHelper.TASK_NAV_DIRECTION int direction = TaskGridNavHelper.DIRECTION_UP; in equalLengthRows_noFocused_onTop_pressUp_goesToBottom() local
59 taskGridNavHelper.getNextGridPage(currentPageTaskViewId, delta, direction, cycle); in equalLengthRows_noFocused_onTop_pressUp_goesToBottom()
70 @TaskGridNavHelper.TASK_NAV_DIRECTION int direction = TaskGridNavHelper.DIRECTION_DOWN; in equalLengthRows_noFocused_onBottom_pressDown_goesToTop() local
76 taskGridNavHelper.getNextGridPage(currentPageTaskViewId, delta, direction, cycle); in equalLengthRows_noFocused_onBottom_pressDown_goesToTop()
87 @TaskGridNavHelper.TASK_NAV_DIRECTION int direction = TaskGridNavHelper.DIRECTION_UP; in equalLengthRows_noFocused_onBottom_pressUp_goesToTop() local
93 taskGridNavHelper.getNextGridPage(currentPageTaskViewId, delta, direction, cycle); in equalLengthRows_noFocused_onBottom_pressUp_goesToTop()
104 @TaskGridNavHelper.TASK_NAV_DIRECTION int direction = TaskGridNavHelper.DIRECTION_LEFT; in equalLengthRows_noFocused_onTop_pressLeft_goesLeft() local
110 taskGridNavHelper.getNextGridPage(currentPageTaskViewId, delta, direction, cycle); in equalLengthRows_noFocused_onTop_pressLeft_goesLeft()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderAlgorithm.java75 int[] direction, boolean decX) { in findReorderSolution() argument
79 reorderParameters.getSpanY(), direction, in findReorderSolution()
84 int minSpanY, int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolutionRecursive() argument
100 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolutionRecursive()
108 spanY, direction, dragView, false, solution); in findReorderSolutionRecursive()
111 spanY - 1, direction, dragView, true, solution); in findReorderSolutionRecursive()
124 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, in rearrangementExists() argument
170 if (attemptPushInDirection(intersectingViews, occupiedRect, direction, ignoreView, in rearrangementExists()
176 if (addViewsToTempLocation(intersectingViews, occupiedRect, direction, ignoreView, in rearrangementExists()
183 if (!addViewToTempLocation(v, occupiedRect, direction, solution)) { in rearrangementExists()
[all …]
/packages/apps/TV/src/com/android/tv/guide/
DProgramRow.java119 private boolean isDirectionStart(int direction) { in isDirectionStart() argument
121 ? direction == View.FOCUS_LEFT in isDirectionStart()
122 : direction == View.FOCUS_RIGHT; in isDirectionStart()
126 private boolean isDirectionEnd(int direction) { in isDirectionEnd() argument
128 ? direction == View.FOCUS_RIGHT in isDirectionEnd()
129 : direction == View.FOCUS_LEFT; in isDirectionEnd()
133 void focusSearchAccessibility(View focused, int direction) { in focusSearchAccessibility() argument
137 if (isDirectionEnd(direction) || direction == View.FOCUS_FORWARD) { in focusSearchAccessibility()
145 public View focusSearch(View focused, int direction) { in focusSearch() argument
151 && (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD)) { in focusSearch()
[all …]
DProgramGrid.java154 public View focusSearch(View focused, int direction) { in focusSearch() argument
157 return super.focusSearch(focused, direction); in focusSearch()
159 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { in focusSearch()
160 updateUpDownFocusState(focused, direction); in focusSearch()
161 View nextFocus = focusFind(focused, direction); in focusSearch()
166 return super.focusSearch(focused, direction); in focusSearch()
170 public boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
176 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
245 private View focusFind(View focused, int direction) { in focusFind() argument
252 direction == View.FOCUS_UP ? focusedChildIndex - 1 : focusedChildIndex + 1; in focusFind()
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DFocusFinderTest.java509 private void assertIsPartiallyInDirection(int direction, Rect src, Rect dest) { in assertIsPartiallyInDirection() argument
510 String directionStr = validateAndGetStringFor(direction); in assertIsPartiallyInDirection()
514 assertTrue(assertMsg, FocusFinder.isPartiallyInDirection(src, dest, direction)); in assertIsPartiallyInDirection()
517 private void assertIsInDirection(int direction, Rect src, Rect dest) { in assertIsInDirection() argument
518 String directionStr = validateAndGetStringFor(direction); in assertIsInDirection()
521 assertTrue(assertMsg, FocusFinder.isInDirection(src, dest, direction)); in assertIsInDirection()
524 private void assertIsNotInDirection(int direction, Rect src, Rect dest) { in assertIsNotInDirection() argument
525 String directionStr = validateAndGetStringFor(direction); in assertIsNotInDirection()
528 assertFalse(assertMsg, FocusFinder.isInDirection(src, dest, direction)); in assertIsNotInDirection()
531 private void assertBeamsOverlap(int direction, Rect rect1, Rect rect2) { in assertBeamsOverlap() argument
[all …]
DNavigatorTest.java138 int direction = View.FOCUS_FORWARD; in testFindRotateTarget() local
141 FindRotateTargetResult target = mNavigator.findRotateTarget(button1, direction, 1); in testFindRotateTarget()
148 target = mNavigator.findRotateTarget(button1, direction, 2); in testFindRotateTarget()
173 int direction = View.FOCUS_FORWARD; in testFindRotateTargetNoWrapAround() local
176 FindRotateTargetResult target = mNavigator.findRotateTarget(button2, direction, 1); in testFindRotateTargetNoWrapAround()
198 int direction = View.FOCUS_FORWARD; in testFindRotateTargetNoWrapAroundWithGenericFpv() local
201 FindRotateTargetResult target = mNavigator.findRotateTarget(button2, direction, 1); in testFindRotateTargetNoWrapAroundWithGenericFpv()
221 int direction = View.FOCUS_FORWARD; in testFindRotateTargetNoWrapAround2() local
224 FindRotateTargetResult target = mNavigator.findRotateTarget(button2, direction, 1); in testFindRotateTargetNoWrapAround2()
244 int direction = View.FOCUS_FORWARD; in testFindRotateTargetNoWrapAround2WithGenericFpv() local
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Ddevice_groups.cc110 int LeAudioDeviceGroup::NumOfAvailableForDirection(int direction) const { in NumOfAvailableForDirection()
111 bool check_ase_count = direction < types::kLeAudioDirectionBoth; in NumOfAvailableForDirection()
118 if (check_ase_count && (dev->GetAseCount(direction) == 0)) { in NumOfAvailableForDirection()
131 auto direction = types::kLeAudioDirectionSink; in ClearSinksFromConfiguration() local
132 stream_conf.stream_params.get(direction).clear(); in ClearSinksFromConfiguration()
133 CodecManager::GetInstance()->ClearCisConfiguration(direction); in ClearSinksFromConfiguration()
139 auto direction = types::kLeAudioDirectionSource; in ClearSourcesFromConfiguration() local
140 stream_conf.stream_params.get(direction).clear(); in ClearSourcesFromConfiguration()
141 CodecManager::GetInstance()->ClearCisConfiguration(direction); in ClearSourcesFromConfiguration()
151 void LeAudioDeviceGroup::UpdateCisConfiguration(uint8_t direction) { in UpdateCisConfiguration() argument
[all …]
Ddevices.cc221 for (auto direction : {le_audio::types::kLeAudioDirectionSink, in IsAudioSetConfigurationSupported()
223 const auto& confs = audio_set_conf->confs.get(direction); in IsAudioSetConfigurationSupported()
227 direction == 1 ? "snk" : "src"); in IsAudioSetConfigurationSupported()
230 (direction == types::kLeAudioDirectionSink) ? snk_pacs_ : src_pacs_; in IsAudioSetConfigurationSupported()
245 uint8_t num_of_devices, uint8_t direction, LeAudioContextType context_type, in ConfigureAses() argument
251 auto ase = GetFirstActiveAseByDirection(direction); in ConfigureAses()
255 ase = GetFirstInactiveAse(direction, reuse_cis_id); in ConfigureAses()
264 auto audio_locations = (direction == types::kLeAudioDirectionSink) in ConfigureAses()
268 auto const& group_ase_configs = audio_set_conf->confs.get(direction); in ConfigureAses()
290 (direction == types::kLeAudioDirectionSink) ? snk_pacs_ : src_pacs_; in ConfigureAses()
[all …]
Ddevice_groups.h159 int NumOfAvailableForDirection(int direction) const;
173 int GetAseCount(uint8_t direction) const;
193 void UpdateCisConfiguration(uint8_t direction);
201 uint32_t GetSduInterval(uint8_t direction) const;
207 void SetTransportLatency(uint8_t direction, uint32_t transport_latency_us);
208 uint8_t GetRtn(uint8_t direction, uint8_t cis_id) const;
209 uint16_t GetMaxSduSize(uint8_t direction, uint8_t cis_id) const;
210 uint8_t GetPhyBitmask(uint8_t direction) const;
211 uint8_t GetTargetPhy(uint8_t direction) const;
212 bool GetPresentationDelay(uint32_t* delay, uint8_t direction) const;
[all …]
Ddevices.h146 int GetAseCount(uint8_t direction);
148 struct types::ase* GetFirstActiveAseByDirection(uint8_t direction);
155 struct types::ase* GetFirstInactiveAse(uint8_t direction,
157 struct types::ase* GetFirstAseWithState(uint8_t direction,
176 uint8_t GetSupportedAudioChannelCounts(uint8_t direction) const;
183 uint8_t group_size, uint8_t direction,
191 int direction = types::kLeAudioDirectionBoth) const {
192 log::assert_that(direction <= (types::kLeAudioDirectionBoth),
195 if (direction < types::kLeAudioDirectionBoth)
196 return supp_contexts_.get(direction);
[all …]
Dcodec_manager.cc64 uint8_t direction) { in get() argument
65 log::assert_that(direction < types::kLeAudioDirectionBoth, in get()
68 return (direction == types::kLeAudioDirectionSink) ? sink : source; in get()
171 std::function<void(const offload_config& config, uint8_t direction)> in UpdateActiveAudioConfig()
177 for (auto direction : in UpdateActiveAudioConfig()
180 auto& stream_map = offloader_stream_maps.get(direction); in UpdateActiveAudioConfig()
184 if (stream_params.get(direction).stream_locations.empty()) { in UpdateActiveAudioConfig()
196 .sampling_rate = stream_params.get(direction).sample_frequency_hz, in UpdateActiveAudioConfig()
197 .frame_duration = stream_params.get(direction).frame_duration_us, in UpdateActiveAudioConfig()
199 stream_params.get(direction).octets_per_codec_frame, in UpdateActiveAudioConfig()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DAccessNetworkSelectionPolicyBuilder.java71 @QnsConstants.RoveDirection int direction, PreCondition preCondition) { in getPolicyInMap()
72 return sPolicyMap.get(new AnspKey(direction, preCondition.getPreference())); in getPolicyInMap()
76 @QnsConstants.RoveDirection int direction, PreCondition preCondition) { in getPolicyInInternal()
77 return mConfig.getPolicy(direction, preCondition); in getPolicyInInternal()
81 @QnsConstants.RoveDirection int direction, PreCondition preCondition) { in getPolicy()
82 String[] internalPolicies = getPolicyInInternal(direction, preCondition); in getPolicy()
98 && direction == QnsConstants.ROVE_OUT) { in getPolicy()
104 && direction == QnsConstants.ROVE_IN) { in getPolicy()
112 && direction == QnsConstants.ROVE_IN) { in getPolicy()
118 && direction == QnsConstants.ROVE_IN) { in getPolicy()
[all …]
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/view/
DRecentsRecyclerView.java85 public View focusSearch(View focused, int direction) { in focusSearch() argument
86 if (direction != View.FOCUS_FORWARD && direction != View.FOCUS_BACKWARD) { in focusSearch()
87 return super.focusSearch(focused, direction); in focusSearch()
89 boolean shouldGoToNextView = shouldGoToNextView(direction); in focusSearch()
110 return getNextFocusView(direction, in focusSearch()
123 private View getNextFocusView(int direction, int nextPosition, boolean tryScrolling) { in getNextFocusView() argument
128 this.smoothScrollBy(direction == View.FOCUS_FORWARD ? mItemWidth : -mItemWidth, 0); in getNextFocusView()
136 View nextFocusedView = getNextFocusView(direction, nextPosition, in getNextFocusView()
148 return shouldGoToNextView(direction) in getNextFocusView()
163 private boolean shouldGoToNextView(int direction) { in shouldGoToNextView() argument
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/src/
DRtpConfig.cpp35 direction(0), in RtpConfig()
55 direction = config->direction; in RtpConfig()
71 direction = config.direction; in RtpConfig()
89 direction = config.direction; in operator =()
106 return (this->type == config.type && this->direction == config.direction && in operator ==()
118 return (this->type != config.type || this->direction != config.direction || in operator !=()
142 err = out->writeInt32(direction); in writeToParcel()
247 err = in->readInt32(&direction); in readFromParcel()
361 void RtpConfig::setMediaDirection(const int32_t direction) in setMediaDirection() argument
363 this->direction = direction; in setMediaDirection()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSortBot.java69 public void sortBy(int id, @SortDirection int direction) { in sortBy() argument
70 assert(direction != SortDimension.SORT_DIRECTION_NONE); in sortBy()
76 result = mColumnBot.sortBy(label, direction); in sortBy()
78 result = sortByMenu(id, direction); in sortBy()
81 assertTrue("Sorting by id: " + id + " in direction: " + direction + " failed.", in sortBy()
104 private boolean sortByMenu(int id, @SortDirection int direction) { in sortByMenu() argument
105 assert(direction != SortDimension.SORT_DIRECTION_NONE); in sortByMenu()
111 @StringRes int labelRes = SortListFragment.getSheetLabelId(dimension, direction); in sortByMenu()
133 private boolean sortBy(String label, @SortDirection int direction) { in sortBy() argument
141 if (viewDirection != direction) { in sortBy()
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dhci_metrics_logging.cc79 android::bluetooth::DirectionEnum direction = android::bluetooth::DIRECTION_UNKNOWN; in log_link_layer_connection_command() local
95 direction = android::bluetooth::DIRECTION_OUTGOING; in log_link_layer_connection_command()
106 direction = android::bluetooth::DIRECTION_OUTGOING; in log_link_layer_connection_command()
124 direction = android::bluetooth::DIRECTION_OUTGOING; in log_link_layer_connection_command()
134 direction = android::bluetooth::DIRECTION_OUTGOING; in log_link_layer_connection_command()
144 direction = android::bluetooth::DIRECTION_INCOMING; in log_link_layer_connection_command()
154 direction = android::bluetooth::DIRECTION_INCOMING; in log_link_layer_connection_command()
164 direction = android::bluetooth::DIRECTION_INCOMING; in log_link_layer_connection_command()
175 direction = android::bluetooth::DIRECTION_INCOMING; in log_link_layer_connection_command()
186 direction = android::bluetooth::DIRECTION_INCOMING; in log_link_layer_connection_command()
[all …]
/packages/modules/adb/
Dtransfer_id.h28 TransferDirection direction : 1; member
39 constexpr TransferId(TransferDirection direction, uint64_t id) : direction(direction), id(id) {} in TransferId()
47 return static_cast<uint64_t>(direction) << 63 | id; in uint64_t()
62 result.direction = static_cast<TransferDirection>(!!(value & mask)); in from_value()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeView.java103 public void onPull(int offset, int direction) { in onPull() argument
104 int fullLength = ((direction & 1) == 0) ? getWidth() : getHeight(); in onPull()
105 mEffect[direction].onPull((float)offset / fullLength); in onPull()
106 if (!mEffect[direction].isFinished()) { in onPull()
126 public void onAbsorb(int velocity, int direction) { in onAbsorb() argument
127 mEffect[direction].onAbsorb(velocity); in onAbsorb()
128 if (!mEffect[direction].isFinished()) { in onAbsorb()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSingleAxisSwipeDetector.java52 float extractDirection(PointF direction) {
53 return direction.y;
57 float extractOrthogonalDirection(PointF direction) {
58 return direction.x;
83 float extractDirection(PointF direction) {
84 return direction.x;
88 float extractOrthogonalDirection(PointF direction) {
89 return direction.y;
/packages/modules/Bluetooth/system/gd/rust/topshim/le_audio/
Dle_audio_shim.cc38 static uint8_t from_rust_btle_audio_direction(BtLeAudioDirection direction) { in from_rust_btle_audio_direction() argument
39 switch (direction) { in from_rust_btle_audio_direction()
143 static BtLeAudioDirection to_rust_btle_audio_direction(uint8_t direction) { in to_rust_btle_audio_direction() argument
144 switch (direction) { in to_rust_btle_audio_direction()
201 uint8_t direction, le_audio::UnicastMonitorModeStatus status) { in unicast_monitor_mode_status_cb() argument
203 to_rust_btle_audio_direction(direction), in unicast_monitor_mode_status_cb()
212 uint8_t direction, in audio_conf_cb() argument
218 direction, group_id, snk_audio_location, src_audio_location, avail_cont); in audio_conf_cb()
284 uint8_t direction, in OnAudioConf() argument
291 direction, in OnAudioConf()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java194 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
205 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
256 public View focusSearch(View focused, int direction) { in focusSearch() argument
260 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { in focusSearch()
261 return getUpDownFocus(focused, direction); in focusSearch()
263 return super.focusSearch(focused, direction); in focusSearch()
266 private View getUpDownFocus(View focused, int direction) { in getUpDownFocus() argument
267 View newView = super.focusSearch(focused, direction); in getUpDownFocus()
272 if (direction == View.FOCUS_UP) { in getUpDownFocus()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java165 public void sortByUser(int dimensionId, @SortDirection int direction) { in sortByUser() argument
171 sortByDimension(dimension, direction); in sortByUser()
181 SortDimension newSortedDimension, @SortDirection int direction) { in sortByDimension() argument
183 && mSortedDimension.mSortDirection == direction) { in sortByDimension()
188 if ((newSortedDimension.getSortCapability() & direction) == 0) { in sortByDimension()
191 + " can't be sorted in direction:" + direction); in sortByDimension()
194 switch (direction) { in sortByDimension()
197 newSortedDimension.mSortDirection = direction; in sortByDimension()
200 throw new IllegalArgumentException("Unknown sort direction: " + direction); in sortByDimension()
304 final String direction; in getDocumentSortQuery() local
[all …]
DSortListFragment.java59 mModel.sortByUser(item.id, item.direction); in onItemClicked()
93 …blic static @StringRes int getSheetLabelId(SortDimension dimension, @SortDirection int direction) { in getSheetLabelId() argument
94 boolean isAscending = direction == SortDimension.SORT_DIRECTION_ASCENDING; in getSheetLabelId()
160 && item.direction == mModel.getCurrentSortDirection(); in getView()
169 @SortDirection final int direction; field in SortListFragment.SortItem
174 direction = dimension.getDefaultSortDirection(); in SortItem()
178 SortItem(int id, @SortDirection int direction, @StringRes int labelId) { in SortItem() argument
180 this.direction = direction; in SortItem()

12345678910>>...14