Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 17 of 17) sorted by relevance

/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java109 Context ctx = getContext(); in query() local
110 assert ctx != null; in query()
111 c.setNotificationUri(ctx.getContentResolver(), uri); in query()
138 Context ctx = getContext(); in insert() local
139 assert ctx != null; in insert()
140 ctx.getContentResolver().notifyChange(uri, null, false); in insert()
170 Context ctx = getContext(); in delete() local
171 assert ctx != null; in delete()
172 ctx.getContentResolver().notifyChange(uri, null, false); in delete()
201 Context ctx = getContext(); in update() local
[all …]
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java109 Context ctx = getContext(); in query() local
110 assert ctx != null; in query()
111 c.setNotificationUri(ctx.getContentResolver(), uri); in query()
138 Context ctx = getContext(); in insert() local
139 assert ctx != null; in insert()
140 ctx.getContentResolver().notifyChange(uri, null, false); in insert()
170 Context ctx = getContext(); in delete() local
171 assert ctx != null; in delete()
172 ctx.getContentResolver().notifyChange(uri, null, false); in delete()
201 Context ctx = getContext(); in update() local
[all …]
/developers/samples/android/common/src/java/com/example/android/common/assetprovider/
DAssetProvider.java50 Context ctx = getContext(); in onCreate() local
51 if (ctx == null) { in onCreate()
55 mAssets = ctx.getAssets(); in onCreate()
/developers/build/prebuilts/gradle/BeamLargeFiles/Application/src/main/java/com/example/android/common/assetprovider/
DAssetProvider.java50 Context ctx = getContext(); in onCreate() local
51 if (ctx == null) { in onCreate()
55 mAssets = ctx.getAssets(); in onCreate()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/
DUtils.java63 public static int convertDpToPixel(Context ctx, int dp) { in convertDpToPixel() argument
64 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
/developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/
DAssetProvider.java63 Context ctx = getContext(); in onCreate() local
64 if (ctx == null) { in onCreate()
68 mAssets = ctx.getAssets(); in onCreate()
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/
DWeatherWidgetProvider.java103 public void onReceive(Context ctx, Intent intent) { in onReceive() argument
110 final Context context = ctx; in onReceive()
145 final String formatStr = ctx.getResources().getString(R.string.toast_format_string); in onReceive()
146 Toast.makeText(ctx, String.format(formatStr, day), Toast.LENGTH_SHORT).show(); in onReceive()
149 super.onReceive(ctx, intent); in onReceive()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DUtils.java94 public static int dpToPx(int dp, Context ctx) { in dpToPx() argument
95 float density = ctx.getResources().getDisplayMetrics().density; in dpToPx()
DVideoProvider.java98 public static HashMap<String, List<Movie>> buildMedia(Context ctx, String url) in buildMedia() argument
/developers/build/prebuilts/gradle/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/
DGridExampleActivity.java62 public MainAdapter(Context ctx, FragmentManager fm) { in MainAdapter() argument
64 mContext = ctx; in MainAdapter()
/developers/samples/android/wearable/wear/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/
DGridExampleActivity.java62 public MainAdapter(Context ctx, FragmentManager fm) { in MainAdapter() argument
64 mContext = ctx; in MainAdapter()
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
DPackageValidator.java50 public PackageValidator(Context ctx) { in PackageValidator() argument
51 mValidCertificates = readValidCertificates(ctx.getResources().getXml( in PackageValidator()
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
DPackageValidator.java50 public PackageValidator(Context ctx) { in PackageValidator() argument
51 mValidCertificates = readValidCertificates(ctx.getResources().getXml( in PackageValidator()
/developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
DSampleGridPagerAdapter.java54 public SampleGridPagerAdapter(Context ctx, FragmentManager fm) { in SampleGridPagerAdapter() argument
56 mContext = ctx; in SampleGridPagerAdapter()
/developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
DSampleGridPagerAdapter.java54 public SampleGridPagerAdapter(Context ctx, FragmentManager fm) { in SampleGridPagerAdapter() argument
56 mContext = ctx; in SampleGridPagerAdapter()
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
DRichSetupFragment.java224 private int convertDpToPixel(Context ctx, int dp) { in convertDpToPixel() argument
225 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/
DVideoProvider.java68 public static HashMap<String, List<Movie>> buildMedia(Context ctx, String url) in buildMedia() argument