Home
last modified time | relevance | path

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

123

/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DCardPresenter.java39 private static Context mContext; field in CardPresenter
53 mDefaultCardImage = mContext.getResources().getDrawable(R.drawable.movie); in ViewHolder()
69 Picasso.with(mContext) in updateCardViewImage()
71 .resize(Utils.dpToPx(CARD_WIDTH, mContext), Utils.dpToPx(CARD_HEIGHT, mContext)) in updateCardViewImage()
80 mContext = parent.getContext(); in onCreateViewHolder()
82 ImageCardView cardView = new ImageCardView(mContext); in onCreateViewHolder()
85 cardView.setBackgroundColor(mContext.getResources().getColor(R.color.fastlane_background)); in onCreateViewHolder()
122 Drawable bitmapDrawable = new BitmapDrawable(mContext.getResources(), bitmap); in onBitmapLoaded()
DRecommendationBuilder.java40 private Context mContext; field in RecommendationBuilder
56 mContext = context; in setContext()
105 mNotificationManager = (NotificationManager) mContext in build()
114 Bitmap image = Picasso.with(mContext) in build()
116 .resize(Utils.dpToPx(CARD_WIDTH, mContext), Utils.dpToPx(CARD_HEIGHT, mContext)) in build()
120 new NotificationCompat.Builder(mContext) in build()
126 .setColor(mContext.getResources().getColor(R.color.fastlane_background)) in build()
DVideoItemLoader.java33 private Context mContext; field in VideoItemLoader
37 mContext = context; in VideoItemLoader()
44 return VideoProvider.buildMedia(mContext, mUrl); in loadInBackground()
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/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()
/developers/samples/android/security/DirectBoot/Application/src/main/java/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()
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/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 …]
/developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/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 …]
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/
DWeatherWidgetService.java41 private Context mContext; field in StackRemoteViewsFactory
46 mContext = context; in StackRemoteViewsFactory()
79 final String formatStr = mContext.getResources().getString(R.string.item_format_string); in getViewAt()
81 RemoteViews rv = new RemoteViews(mContext.getPackageName(), itemId); in getViewAt()
116 mCursor = mContext.getContentResolver().query(WeatherDataProvider.CONTENT_URI, null, null, in onDataSetChanged()
/developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/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()
/developers/build/prebuilts/gradle/BasicContactables/Application/src/main/java/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()
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
DSyncAdapter.java55 private final Context mContext; field in SyncAdapter
59 mContext = context; in SyncAdapter()
64 mContext = context; in SyncAdapter()
78 List<ChannelInfo> channels = RichFeedUtil.getRichChannels(mContext); in onPerformSync()
80 mContext.getContentResolver(), inputId, channels); in onPerformSync()
120 mContext.getContentResolver(), channelUri) / 1000; in insertPrograms()
146 mContext.getContentResolver().applyBatch(TvContract.AUTHORITY, ops); in insertPrograms()
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/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()
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/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()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/
DVideoItemLoader.java35 private Context mContext; field in VideoItemLoader
39 mContext = context; in VideoItemLoader()
46 return VideoProvider.buildMedia(mContext, mUrl); in loadInBackground()
/developers/samples/android/wearable/wear/SpeedTracker/Wearable/src/main/java/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()
/developers/build/prebuilts/gradle/SpeedTracker/Wearable/src/main/java/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()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/
DRecommendationBuilder.java47 private Context mContext; field in RecommendationBuilder
64 mContext = context; in setContext()
111 File bitmapFile = getNotificationBackground(mContext, mId); in build()
135 new NotificationCompat.Builder(mContext) in build()
157 .setColor(mContext.getResources().getColor(R.color.fastlane_background)) in build()
/developers/build/prebuilts/gradle/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/
DFingerprintModule.java49 private final Context mContext; field in FingerprintModule
52 mContext = context; in FingerprintModule()
57 return mContext; in providesContext()
/developers/samples/android/security/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/
DFingerprintModule.java49 private final Context mContext; field in FingerprintModule
52 mContext = context; in FingerprintModule()
57 return mContext; in providesContext()
/developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
DSampleGridPagerAdapter.java48 private final Context mContext; field in SampleGridPagerAdapter
56 mContext = ctx; in SampleGridPagerAdapter()
78 new DrawableLoadingTask(mContext) {
100 new DrawableLoadingTask(mContext) {
118 Resources res = mContext.getResources(); in cardFragment()
/developers/build/prebuilts/gradle/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
DSoundRecorder.java53 private final Context mContext; field in SoundRecorder
70 mContext = context; in SoundRecorder()
98 mContext.openFileOutput(mOutputFileName, Context.MODE_PRIVATE)); in startRecording()
163 if (!new File(mContext.getFilesDir(), mOutputFileName).exists()) { in startPlay()
199 in = mContext.openFileInput(mOutputFileName); in startPlay()
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
DSoundRecorder.java53 private final Context mContext; field in SoundRecorder
70 mContext = context; in SoundRecorder()
98 mContext.openFileOutput(mOutputFileName, Context.MODE_PRIVATE)); in startRecording()
163 if (!new File(mContext.getFilesDir(), mOutputFileName).exists()) { in startPlay()
199 in = mContext.openFileInput(mOutputFileName); in startPlay()
/developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
DSampleGridPagerAdapter.java48 private final Context mContext; field in SampleGridPagerAdapter
56 mContext = ctx; in SampleGridPagerAdapter()
78 new DrawableLoadingTask(mContext) {
100 new DrawableLoadingTask(mContext) {
118 Resources res = mContext.getResources(); in cardFragment()
/developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
DScanResultAdapter.java38 private Context mContext; field in ScanResultAdapter
44 mContext = context; in ScanResultAdapter()
80 name = mContext.getResources().getString(R.string.no_name); in getView()
84 lastSeenView.setText(getTimeSinceString(mContext, scanResult.getTimestampNanos())); in getView()
/developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
DScanResultAdapter.java38 private Context mContext; field in ScanResultAdapter
44 mContext = context; in ScanResultAdapter()
80 name = mContext.getResources().getString(R.string.no_name); in getView()
84 lastSeenView.setText(getTimeSinceString(mContext, scanResult.getTimestampNanos())); in getView()

123