Search in sources :

Example 1 with ProcessInfoAdapter

use of edu.berkeley.cs.amplab.carat.android.lists.ProcessInfoAdapter in project carat by amplab.

the class ProcessListFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.processlist, container, false);
    ListView lv = (ListView) view.findViewById(R.id.processList);
    List<ProcessInfo> searchResults = SamplingLibrary.getRunningAppInfo(getActivity());
    lv.setAdapter(new ProcessInfoAdapter(getActivity(), searchResults));
    Tracker tracker = Tracker.getInstance();
    tracker.trackUser("ProcessList");
    return view;
}
Also used : Tracker(edu.berkeley.cs.amplab.carat.android.utils.Tracker) ProcessInfoAdapter(edu.berkeley.cs.amplab.carat.android.lists.ProcessInfoAdapter) ListView(android.widget.ListView) ProcessInfo(edu.berkeley.cs.amplab.carat.thrift.ProcessInfo) View(android.view.View) ListView(android.widget.ListView)

Aggregations

View (android.view.View)1 ListView (android.widget.ListView)1 ProcessInfoAdapter (edu.berkeley.cs.amplab.carat.android.lists.ProcessInfoAdapter)1 Tracker (edu.berkeley.cs.amplab.carat.android.utils.Tracker)1 ProcessInfo (edu.berkeley.cs.amplab.carat.thrift.ProcessInfo)1