Home
last modified time | relevance | path

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

1234

/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DCardPresenterSelector.java31 private final Context mContext; field in CardPresenterSelector
35 mContext = context; in CardPresenterSelector()
48 presenter = new SingleLineCardPresenter(mContext); in getPresenter()
68 presenter = new ImageCardViewPresenter(mContext, themeResId); in getPresenter()
72 presenter = new SideInfoCardPresenter(mContext); in getPresenter()
75 presenter = new TextCardPresenter(mContext); in getPresenter()
78 presenter = new IconCardPresenter(mContext); in getPresenter()
81 presenter = new CharacterCardPresenter(mContext); in getPresenter()
84 presenter = new ImageCardViewPresenter(mContext); in getPresenter()
DAbstractCardPresenter.java32 private final Context mContext; field in AbstractCardPresenter
38 mContext = context; in AbstractCardPresenter()
42 return mContext; in getContext()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmUtil.java33 private final Context mContext; field in AlarmUtil
37 mContext = context; in AlarmUtil()
38 mAlarmManager = mContext.getSystemService(AlarmManager.class); in AlarmUtil()
47 Intent intent = new Intent(mContext, AlarmIntentService.class); in scheduleAlarm()
50 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); in scheduleAlarm()
73 Intent intent = new Intent(mContext, AlarmIntentService.class); in cancelAlarm()
76 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); in cancelAlarm()
/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()
127 ContactManager.clearSyncFlags(mContext, dirtyContacts); in onPerformSync()
/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 …]
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsGridPagerAdapter.java66 private Context mContext; field in AttractionsGridPagerAdapter
76 mContext = context; in AttractionsGridPagerAdapter()
133 textView.setText(mContext.getString( in instantiateItem()
160 navActionPage.setText(mContext.getString(R.string.action_navigate)); in instantiateItem()
173 openActionPage.setText(mContext.getString(R.string.action_open)); in instantiateItem()
179 return new View(mContext); in instantiateItem()
188 return new BitmapDrawable(mContext.getResources(), mAttractions.get(row).image); in getBackgroundForPage()
225 Intent intent = new Intent(mContext, ConfirmationActivity.class); in startAction()
228 mContext.startActivity(intent); in startAction()
230 UtilityService.clearNotification(mContext); in startAction()
[all …]
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
DContactablesLoaderCallbacks.java36 Context mContext; field in ContactablesLoaderCallbacks
43 mContext = context; in ContactablesLoaderCallbacks()
70 mContext, // Context in onCreateLoader()
81 TextView tv = (TextView) ((Activity)mContext).findViewById(R.id.sample_output); in onLoadFinished()
84 } else if (mContext == null) { in onLoadFinished()
91 tv.setText(mContext.getText(R.string.intro_message) + "\n\n"); in onLoadFinished()
/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/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/ApiDemos/src/com/example/android/apis/os/
DTriggerSensors.java50 private Context mContext; field in TriggerListener
54 mContext = context; in TriggerListener()
61 mTextView.append(mContext.getString(R.string.sig_motion) + "\n"); in onTrigger()
62 mTextView.append(mContext.getString(R.string.sig_motion_auto_disabled) + "\n"); in onTrigger()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java48 private Context mContext; field in RecipeListAdapter
52 mContext = context; in RecipeListAdapter()
57 JSONObject jsonObject = AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE); in loadRecipeList()
75 parsed.image = AssetUtils.loadBitmapAsset(mContext, imageFile); in parseJson()
117 LayoutInflater inf = LayoutInflater.from(mContext); in getView()
130 iv.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_noimage)); in getView()
/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
/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/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/
DSpeedPickerListAdapter.java35 private final Context mContext; field in SpeedPickerListAdapter
39 mContext = context; in SpeedPickerListAdapter()
79 view.setText(mContext.getString(R.string.speed_for_list, mDataSet[position])); in onBindViewHolder()
/development/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DBottomSheetWithFragment.java91 private final Context mContext; field in BottomSheetWithFragment.DummyAdapter
96 mContext = context; in DummyAdapter()
102 return new ViewHolder(LayoutInflater.from(mContext), parent); in onCreateViewHolder()
107 holder.text.setText(mContext.getString(R.string.item_n, position + 1)); in onBindViewHolder()
/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/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/
DDetailsDescriptionPresenter.java35 private Context mContext; field in DetailsDescriptionPresenter
38 mContext = context; in DetailsDescriptionPresenter()
42 View view = LayoutInflater.from(mContext).inflate(R.layout.detail_view_content, null); in onCreateViewHolder()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DFingerprintModule.java49 private final Context mContext; field in FingerprintModule
52 mContext = context; in FingerprintModule()
57 return mContext; in providesContext()
/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/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DCustomArrayAdapter.java50 Context mContext; field in CustomArrayAdapter
58 mContext = context; in CustomArrayAdapter()
94 LayoutInflater inflater = ((Activity)mContext).getLayoutInflater(); in getView()
104 Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), in getView()

1234