OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SelectionTracker
(Results
1 - 25
of
30
) sorted by null
1
2
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
SelectionTrackers.java
23
import androidx.recyclerview.selection.
SelectionTracker
;
30
public static
SelectionTracker
<String> createStringTracker(String id, int numItems) {
34
SelectionTracker
<String> tracker = new DefaultSelectionTracker<>(
45
public static
SelectionTracker
<Long> createLongTracker(String id, int numItems) {
49
SelectionTracker
<Long> tracker = new DefaultSelectionTracker<>(
SelectionProbe.java
25
import androidx.recyclerview.selection.
SelectionTracker
;
34
private final
SelectionTracker
<String> mMgr;
37
public SelectionProbe(
SelectionTracker
<String> mgr) {
44
SelectionTracker
<String> mgr, TestSelectionObserver<String> selectionListener) {
TestSelectionPredicate.java
19
import androidx.recyclerview.selection.
SelectionTracker
.SelectionPredicate;
TestAdapter.java
23
import androidx.recyclerview.selection.
SelectionTracker
;
52
if (
SelectionTracker
.SELECTION_CHANGED_MARKER.equals(payload)) {
TestSelectionObserver.java
23
import androidx.recyclerview.selection.
SelectionTracker
.SelectionObserver;
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
EventBridge.java
33
* and to notify
SelectionTracker
when the underlying RecyclerView.Adapter data changes.
35
* This strict decoupling is necessary to permit a single
SelectionTracker
to work
51
* @param
selectionTracker
58
@NonNull
SelectionTracker
<K>
selectionTracker
,
62
new TrackerToAdapterBridge<>(
selectionTracker
, keyProvider, adapter);
63
adapter.registerAdapterDataObserver(
selectionTracker
.getAdapterDataObserver());
67
extends
SelectionTracker
.SelectionObserver<K> {
73
@NonNull
SelectionTracker
<K>
selectionTracker
,
[
all
...]
SelectionPredicates.java
20
import androidx.recyclerview.selection.
SelectionTracker
.SelectionPredicate;
MotionInputHandler.java
35
protected final
SelectionTracker
<K> mSelectionTracker;
41
@NonNull
SelectionTracker
<K>
selectionTracker
,
45
checkArgument(
selectionTracker
!= null);
49
mSelectionTracker =
selectionTracker
;
TouchInputHandler.java
26
import androidx.recyclerview.selection.
SelectionTracker
.SelectionPredicate;
49
@NonNull
SelectionTracker
<K>
selectionTracker
,
59
super(
selectionTracker
, keyProvider, focusDelegate);
BandSelectionHelper.java
32
import androidx.recyclerview.selection.
SelectionTracker
.SelectionPredicate;
51
* @see
SelectionTracker
.Builder#withPointerTooltypes(int...) for details on the specific
63
private final
SelectionTracker
<K> mSelectionTracker;
81
@NonNull
SelectionTracker
<K>
selectionTracker
,
89
checkArgument(
selectionTracker
!= null);
96
mSelectionTracker =
selectionTracker
;
129
@NonNull
SelectionTracker
<K>
selectionTracker
,
139
selectionTracker
,
[
all
...]
GestureSelectionHelper.java
43
private final
SelectionTracker
<?> mSelectionMgr;
57
@NonNull
SelectionTracker
<?>
selectionTracker
,
62
checkArgument(
selectionTracker
!= null);
67
mSelectionMgr =
selectionTracker
;
213
@NonNull
SelectionTracker
selectionMgr,
SelectionTracker.java
38
*
SelectionTracker
provides support for managing a selection of items in a RecyclerView instance.
46
* Create an instance of
SelectionTracker
using {@link Builder
SelectionTracker
.Builder}.
56
* to the selection using
SelectionTracker
will be immediately reflected in this instance.
88
public abstract class
SelectionTracker
<K> {
91
* This value is included in the payload when
SelectionTracker
notifies RecyclerView
283
*
SelectionTracker
will traverse the existing selection,
351
* Builder is the primary mechanism for create a {@link
SelectionTracker
} that
358
* <pre>
SelectionTracker
<Uri> tracker = new
SelectionTracker
.Builder<>
[
all
...]
DefaultBandHost.java
29
import androidx.recyclerview.selection.
SelectionTracker
.SelectionPredicate;
DefaultSelectionTracker.java
41
* {@link
SelectionTracker
} providing support for traditional multi-item selection on top
53
public class DefaultSelectionTracker<K> extends
SelectionTracker
<K> {
540
AdapterObserver(@NonNull DefaultSelectionTracker<?>
selectionTracker
) {
541
checkArgument(
selectionTracker
!= null);
542
mSelectionTracker =
selectionTracker
;
552
if (!
SelectionTracker
.SELECTION_CHANGED_MARKER.equals(payload)) {
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/
SelectionTracker_InstanceStateTest.java
39
private
SelectionTracker
<String> mStringTracker;
40
private
SelectionTracker
<Long> mLongTracker;
DefaultSelectionTracker_SingleSelectTest.java
40
private
SelectionTracker
<String> mTracker;
GestureSelectionHelperTest.java
56
private
SelectionTracker
<String> mSelectionTracker;
MouseInputHandler_RangeTest.java
56
SelectionTracker
<String> selectionMgr =
TouchInputHandlerTest.java
53
private
SelectionTracker
mSelectionMgr;
BandSelectionHelperTest.java
69
SelectionTracker
<String> helper = new DefaultSelectionTracker<String>(
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/
FancySelectionDemoAdapter.java
29
import androidx.recyclerview.selection.
SelectionTracker
;
41
// asks
SelectionTracker
.
51
"Adapter must be initialized with
SelectionTracker
.");
65
// Glue together
SelectionTracker
and the adapter.
66
public void bindSelectionHelper(final
SelectionTracker
<Uri>
selectionTracker
) {
67
checkArgument(
selectionTracker
!= null);
71
return
selectionTracker
.isSelected(id);
FancySelectionDemoActivity.java
33
import androidx.recyclerview.selection.
SelectionTracker
;
34
import androidx.recyclerview.selection.
SelectionTracker
.SelectionObserver;
50
private
SelectionTracker
<Uri> mSelectionTracker;
68
SelectionTracker
.Builder<Uri> builder = new
SelectionTracker
.Builder<>(
76
// Call .withSelectionPredicate(
SelectionTracker
.SelectionPredicate.SINGLE_ANYTHING)
87
// Lazily bind
SelectionTracker
. Allows us to defer initialization of the
88
//
SelectionTracker
dependency until after the adapter is created.
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/simple/
SimpleSelectionDemoActivity.java
32
import androidx.recyclerview.selection.
SelectionTracker
;
33
import androidx.recyclerview.selection.
SelectionTracker
.SelectionObserver;
50
private
SelectionTracker
<Long> mSelectionTracker;
76
SelectionTracker
.Builder<Long> builder = new
SelectionTracker
.Builder<>(
84
// Call .withSelectionPredicate(
SelectionTracker
.SelectionPredicate.SINGLE_ANYTHING)
95
// Lazily bind
SelectionTracker
. Allows us to defer initialization of the
96
//
SelectionTracker
dependency until after the adapter is created.
SimpleSelectionDemoAdapter.java
29
import androidx.recyclerview.selection.
SelectionTracker
;
42
// asks
SelectionTracker
.
52
"Adapter must be initialized with
SelectionTracker
.");
57
// Glue together
SelectionTracker
and the adapter.
58
public void bindSelectionHelper(final
SelectionTracker
<Long>
selectionTracker
) {
59
checkArgument(
selectionTracker
!= null);
63
return
selectionTracker
.isSelected(id);
/frameworks/base/core/java/android/widget/
SelectionActionModeHelper.java
77
private final
SelectionTracker
mSelectionTracker;
91
mSelectionTracker = new
SelectionTracker
(mTextView);
483
private static final class
SelectionTracker
{
495
SelectionTracker
(TextView textView) {
[
all
...]
Completed in 2593 milliseconds
1
2