public class ChooserActivity.ChooserListAdapter extends ResolverActivity.ResolveListAdapter
Modifier and Type | Field and Description |
---|---|
static int |
TARGET_BAD |
static int |
TARGET_CALLER |
static int |
TARGET_SERVICE |
static int |
TARGET_STANDARD |
mInflater
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
Constructor and Description |
---|
ChooserListAdapter(Context context,
List<Intent> payloadIntents,
Intent[] initialIntents,
List<ResolveInfo> rList,
int launchedFromUid,
boolean filterLastUsed) |
Modifier and Type | Method and Description |
---|---|
void |
addServiceResults(ResolverActivity.DisplayResolveInfo origTarget,
List<ChooserTarget> targets) |
int |
getCallerTargetCount() |
int |
getCount()
How many items are in the data set represented by this Adapter.
|
ResolverActivity.TargetInfo |
getItem(int position)
Get the data item associated with the specified position in the data set.
|
int |
getPositionTargetType(int position) |
float |
getScore(ResolverActivity.DisplayResolveInfo target) |
int |
getServiceTargetCount() |
int |
getStandardTargetCount() |
int |
getUnfilteredCount() |
boolean |
isComponentPinned(ComponentName name) |
View |
onCreateView(ViewGroup parent) |
void |
onListRebuilt() |
void |
setShowServiceTargets(boolean show)
Set to true to reveal all service targets at once.
|
boolean |
shouldGetResolvedFilter() |
boolean |
showsExtendedInfo(ResolverActivity.TargetInfo info) |
ResolverActivity.TargetInfo |
targetInfoForPosition(int position,
boolean filtered) |
bindView, createView, getDisplayInfoAt, getDisplayInfoCount, getDisplayResolveInfo, getDisplayResolveInfoCount, getFilteredItem, getFilteredPosition, getItemId, getOtherProfile, getView, handlePackagesChanged, hasExtendedInfo, hasFilteredItem, hasResolvedTarget, resolveInfoForPosition
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
public static final int TARGET_BAD
public static final int TARGET_CALLER
public static final int TARGET_SERVICE
public static final int TARGET_STANDARD
public boolean showsExtendedInfo(ResolverActivity.TargetInfo info)
showsExtendedInfo
in class ResolverActivity.ResolveListAdapter
public boolean isComponentPinned(ComponentName name)
isComponentPinned
in class ResolverActivity.ResolveListAdapter
public float getScore(ResolverActivity.DisplayResolveInfo target)
getScore
in class ResolverActivity.ResolveListAdapter
public View onCreateView(ViewGroup parent)
onCreateView
in class ResolverActivity.ResolveListAdapter
public void onListRebuilt()
onListRebuilt
in class ResolverActivity.ResolveListAdapter
public boolean shouldGetResolvedFilter()
shouldGetResolvedFilter
in class ResolverActivity.ResolveListAdapter
public int getCount()
Adapter
getCount
in interface Adapter
getCount
in class ResolverActivity.ResolveListAdapter
public int getUnfilteredCount()
getUnfilteredCount
in class ResolverActivity.ResolveListAdapter
public int getCallerTargetCount()
public int getServiceTargetCount()
public int getStandardTargetCount()
public int getPositionTargetType(int position)
public ResolverActivity.TargetInfo getItem(int position)
Adapter
getItem
in interface Adapter
getItem
in class ResolverActivity.ResolveListAdapter
position
- Position of the item whose data we want within the adapter's
data set.public ResolverActivity.TargetInfo targetInfoForPosition(int position, boolean filtered)
targetInfoForPosition
in class ResolverActivity.ResolveListAdapter
public void addServiceResults(ResolverActivity.DisplayResolveInfo origTarget, List<ChooserTarget> targets)
public void setShowServiceTargets(boolean show)