Home
last modified time | relevance | path

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

/development/samples/browseable/BasicSyncAdapter/src/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 …]
/development/vndk/tools/sourcedr/sourcedr/blueprint/tests/
Dtest_lexer.py145 with self.assertRaises(LexerError) as ctx:
147 self.assertEqual(ctx.exception.line, 1)
148 self.assertEqual(ctx.exception.column, 3)
150 with self.assertRaises(LexerError) as ctx:
152 self.assertEqual(ctx.exception.line, 1)
153 self.assertEqual(ctx.exception.column, 3)
168 with self.assertRaises(LexerError) as ctx:
170 self.assertEqual(ctx.exception.line, 1)
171 self.assertEqual(ctx.exception.column, 2)
218 with self.assertRaises(LexerError) as ctx:
[all …]
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DSecureWebServer.java57 public SecureWebServer(Context ctx) { in SecureWebServer() argument
68 FileInputStream fis = ctx.getAssets() in SecureWebServer()
85 base64Image = createBase64Image(ctx); in SecureWebServer()
172 private String createBase64Image(Context ctx) { in createBase64Image() argument
175 bis = new BufferedInputStream(ctx.getAssets().open(EMBEDDED_IMAGE_FILENAME)); in createBase64Image()
/development/samples/browseable/BeamLargeFiles/src/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()
/development/vndk/tools/header-checker/header-abi-dumper/src/
Dast_processing.cpp189 void HeaderASTConsumer::HandleTranslationUnit(clang::ASTContext &ctx) { in HandleTranslationUnit() argument
190 clang::PrintingPolicy policy(ctx.getPrintingPolicy()); in HandleTranslationUnit()
195 ctx.setPrintingPolicy(policy); in HandleTranslationUnit()
196 clang::TranslationUnitDecl *translation_unit = ctx.getTranslationUnitDecl(); in HandleTranslationUnit()
198 ctx.createMangleContext()); in HandleTranslationUnit()
207 HeaderASTVisitor v(mangle_contextp.get(), &ctx, cip_, exported_headers_, in HandleTranslationUnit()
Dast_processing.h76 void HandleTranslationUnit(clang::ASTContext &ctx) override;
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DAudioFocusHelper.java34 public AudioFocusHelper(Context ctx, MusicFocusable focusable) { in AudioFocusHelper() argument
35 mAM = (AudioManager) ctx.getSystemService(Context.AUDIO_SERVICE); in AudioFocusHelper()
/development/vndk/tools/sourcedr/sourcedr/tests/
Dtest_ninja.py595 with self.assertRaises(ninja.ParseError) as ctx:
598 self.assertEqual(input_path, ctx.exception.path)
599 self.assertEqual(1, ctx.exception.line)
600 self.assertEqual(1, ctx.exception.column)
604 with self.assertRaises(ninja.ParseError) as ctx:
607 self.assertEqual(input_path, ctx.exception.path)
608 self.assertEqual(1, ctx.exception.line)
609 self.assertEqual(1, ctx.exception.column)
613 with self.assertRaises(ninja.ParseError) as ctx:
616 self.assertEqual(input_path, ctx.exception.path)
[all …]
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
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()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DForegroundService.java230 final Context ctx = Controller.this;
233 intent.setClass(ctx, ForegroundService2.class);
235 PendingIntent pi = PendingIntent.getForegroundService(ctx, 0, intent, 0);
236 AlarmManager am = (AlarmManager) ctx.getSystemService(Context.ALARM_SERVICE);
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/
DGridExampleActivity.java62 public MainAdapter(Context ctx, FragmentManager fm) { in MainAdapter() argument
64 mContext = ctx; in MainAdapter()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPackageValidator.java50 public PackageValidator(Context ctx) { in PackageValidator() argument
51 mValidCertificates = readValidCertificates(ctx.getResources().getXml( in PackageValidator()
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/
DSampleGridPagerAdapter.java54 public SampleGridPagerAdapter(Context ctx, FragmentManager fm) { in SampleGridPagerAdapter() argument
56 mContext = ctx; in SampleGridPagerAdapter()
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java219 Context ctx = getApplicationContext(); in createContactEntry()
222 Toast toast = Toast.makeText(ctx, txt, duration); in createContactEntry()