/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/ |
D | FeedProvider.java | 109 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/blueprint/tests/ |
D | test_lexer.py | 145 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/ |
D | SecureWebServer.java | 57 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/ |
D | AssetProvider.java | 50 Context ctx = getContext(); in onCreate() local 51 if (ctx == null) { in onCreate() 55 mAssets = ctx.getAssets(); in onCreate()
|
/development/vndk/tools/header-checker/src/dumper/ |
D | ast_processing.cpp | 193 void HeaderASTConsumer::HandleTranslationUnit(clang::ASTContext &ctx) { in HandleTranslationUnit() argument 194 clang::PrintingPolicy policy(ctx.getPrintingPolicy()); in HandleTranslationUnit() 199 ctx.setPrintingPolicy(policy); in HandleTranslationUnit() 200 clang::TranslationUnitDecl *translation_unit = ctx.getTranslationUnitDecl(); in HandleTranslationUnit() 202 ctx.createMangleContext()); in HandleTranslationUnit() 213 HeaderASTVisitor v(options_, mangle_contextp.get(), &ctx, cip_, in HandleTranslationUnit()
|
D | ast_processing.h | 80 void HandleTranslationUnit(clang::ASTContext &ctx) override;
|
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
D | WeatherWidgetProvider.java | 103 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/vndk/tools/sourcedr/ninja/tests/ |
D | test_ninja.py | 595 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/ApiDemos/src/com/example/android/apis/app/ |
D | ForegroundService.java | 230 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/ |
D | GridExampleActivity.java | 62 public MainAdapter(Context ctx, FragmentManager fm) { in MainAdapter() argument 64 mContext = ctx; in MainAdapter()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | PackageValidator.java | 50 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/ |
D | SampleGridPagerAdapter.java | 54 public SampleGridPagerAdapter(Context ctx, FragmentManager fm) { in SampleGridPagerAdapter() argument 56 mContext = ctx; in SampleGridPagerAdapter()
|
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
D | ContactAdder.java | 219 Context ctx = getApplicationContext(); in createContactEntry() 222 Toast toast = Toast.makeText(ctx, txt, duration); in createContactEntry()
|