Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 45) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarSettingsActionProviderActivity.java70 private final Context mContext; field in ActionBarSettingsActionProviderActivity.SettingsActionProvider
79 mContext = context; in SettingsActionProvider()
88 LayoutInflater layoutInflater = LayoutInflater.from(mContext); in onCreateActionView()
95 mContext.startActivity(sSettingsIntent); in onCreateActionView()
108 mContext.startActivity(sSettingsIntent); in onPerformDefaultAction()
DFragmentTabsFragment.java89 private final Context mContext; field in FragmentTabsFragment.TabManager
112 private final Context mContext; field in FragmentTabsFragment.TabManager.DummyTabFactory
115 mContext = context; in DummyTabFactory()
120 View v = new View(mContext); in createTabContent()
128 mContext = context; in TabManager()
144 tabSpec.setContent(new DummyTabFactory(mContext)); in addTab()
237 newTab.fragment = Fragment.instantiate(mContext, in doTabChanged()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
DSyncAdapter.java58 private final Context mContext; field in SyncAdapter
62 mContext = context; in SyncAdapter()
94 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account); in onPerformSync()
98 dirtyContacts = ContactManager.getDirtyContacts(mContext, account); in onPerformSync()
108 long newSyncState = ContactManager.updateContacts(mContext, in onPerformSync()
120 ContactManager.updateStatusMessages(mContext, updatedContacts); in onPerformSync()
130 ContactManager.addStreamItems(mContext, updatedContacts, in onPerformSync()
139 ContactManager.clearSyncFlags(mContext, dirtyContacts); in onPerformSync()
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetService.java46 private Context mContext; field in StackRemoteViewsFactory
51 mContext = context; in StackRemoteViewsFactory()
84 final String formatStr = mContext.getResources().getString(R.string.item_format_string); in getViewAt()
86 RemoteViews rv = new RemoteViews(mContext.getPackageName(), itemId); in getViewAt()
121 mCursor = mContext.getContentResolver().query(WeatherDataProvider.CONTENT_URI, null, null, in onDataSetChanged()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentTabsPager.java88 private final Context mContext; field in FragmentTabsPager.TabsAdapter
106 private final Context mContext; field in FragmentTabsPager.TabsAdapter.DummyTabFactory
109 mContext = context; in DummyTabFactory()
114 View v = new View(mContext); in createTabContent()
123 mContext = activity; in TabsAdapter()
132 tabSpec.setContent(new DummyTabFactory(mContext)); in addTab()
149 return Fragment.instantiate(mContext, info.clss.getName(), info.args); in getItem()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DAdapters.java283 protected final Context mContext; field in Adapters.CursorBinder
303 mContext = context; in CursorBinder()
339 protected final Context mContext; field in Adapters.CursorTransformation
347 mContext = context; in CursorTransformation()
593 private final Context mContext; field in Adapters.XmlCursorAdapterParser
605 mContext = c; in XmlCursorAdapterParser()
610 mResources = mContext.getResources(); in XmlCursorAdapterParser()
614 mIdentity = new IdentityTransformation(mContext); in XmlCursorAdapterParser()
671 return new XmlCursorAdapter(mContext, layout, uri, fromArray, toArray, selection, in parse()
724 final Context context = mContext; in findBinder()
[all …]
DContactPhotoBinder.java53 mResources = mContext.getResources(); in ContactPhotoBinder()
74 mContext.getContentResolver(), uri); in bind()
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/authenticator/
DAuthenticatorActivityTest.java37 private Context mContext; field in AuthenticatorActivityTests
53 mContext = mInstrumentation.getTargetContext(); in setUp()
70 Intent intent = new Intent(mContext, AuthenticatorActivity.class); in testLoginOffered()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DList5.java45 mContext = context; in MyListAdapter()
73 tv = (TextView) LayoutInflater.from(mContext).inflate( in getView()
82 private Context mContext; field in List5.MyListAdapter
DList4.java52 mContext = context; in SpeechListAdapter()
95 sv = new SpeechView(mContext, Shakespeare.TITLES[position], in getView()
109 private Context mContext; field in List4.SpeechListAdapter
DList6.java62 mContext = context; in SpeechListAdapter()
104 … sv = new SpeechView(mContext, mTitles[position], mDialogue[position], mExpanded[position]); in getView()
123 private Context mContext; field in List6.SpeechListAdapter
DList8.java90 mContext = c; in PhotoAdapter()
107 ImageView i = new ImageView(mContext); in getView()
118 private Context mContext; field in List8.PhotoAdapter
DGallery1.java78 private final Context mContext; field in Gallery1.ImageAdapter
94 mContext = c; in ImageAdapter()
120 convertView = new ImageView(mContext); in getView()
DImageSwitcher1.java79 mContext = c; in ImageAdapter()
95 ImageView i = new ImageView(mContext); in getView()
105 private Context mContext; field in ImageSwitcher1.ImageAdapter
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DTaskListView.java69 private Context mContext = null; field in TaskAdapter
73 mContext = context; in TaskAdapter()
89 LayoutInflater inflater = LayoutInflater.from(mContext); in getView()
100 .append(mContext.getString(R.string.task_name)) in getView()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticator.java56 private final Context mContext; field in Authenticator
60 mContext = context; in Authenticator()
67 final Intent intent = new Intent(mContext, AuthenticatorActivity.class); in addAccount()
102 final AccountManager am = AccountManager.get(mContext); in getAuthToken()
118 final Intent intent = new Intent(mContext, AuthenticatorActivity.class); in getAuthToken()
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
DPolicy.java50 private Context mContext; field in Policy
55 mContext = context; in Policy()
72 mContext.getSharedPreferences(APP_PREF, Context.MODE_PRIVATE).edit(); in saveToLocal()
89 SharedPreferences prefs = mContext.getSharedPreferences(APP_PREF, Context.MODE_PRIVATE); in readFromLocal()
/development/samples/StackWidget/src/com/example/android/stackwidget/
DStackWidgetService.java39 private Context mContext; field in StackRemoteViewsFactory
43 mContext = context; in StackRemoteViewsFactory()
81 RemoteViews rv = new RemoteViews(mContext.getPackageName(), R.layout.widget_item); in getViewAt()
/development/apps/Development/src/com/android/development/
DArrayAdapter.java30 mContext = context; in ArrayAdapter()
73 private final Context mContext; field in ArrayAdapter
/development/samples/Home/src/com/example/android/home/
DWallpaper.java118 private Context mContext; field in Wallpaper.ImageAdapter
121 mContext = c; in ImageAdapter()
137 ImageView i = new ImageView(mContext); in getView()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelperEclair.java142 private final Context mContext; field in TabHelperEclair.DummyTabFactory
145 mContext = context; in DummyTabFactory()
150 View v = new View(mContext); in createTabContent()
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DActionBarTabsPager.java85 private final Context mContext; field in ActionBarTabsPager.TabsAdapter
102 mContext = activity; in TabsAdapter()
126 return Fragment.instantiate(mContext, info.clss.getName(), info.args); in getItem()
DFragmentNestingStatePagerSupport.java83 private final Context mContext; field in FragmentNestingStatePagerSupport.TabsAdapter
100 mContext = activity; in TabsAdapter()
124 return Fragment.instantiate(mContext, info.clss.getName(), info.args); in getItem()
DFragmentNestingPagerSupport.java83 private final Context mContext; field in FragmentNestingPagerSupport.TabsAdapter
100 mContext = activity; in TabsAdapter()
124 return Fragment.instantiate(mContext, info.clss.getName(), info.args); in getItem()
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DSimpleMenu.java38 private Context mContext; field in SimpleMenu
44 mContext = context; in SimpleMenu()
50 return mContext; in getContext()

12