/development/tools/winscope/src/app/components/timeline/expanded-timeline/ |
D | canvas_drawer.ts | 22 private ctx: CanvasRenderingContext2D | undefined; property in CanvasDrawer 26 const ctx = this.canvas.getContext('2d'); constant 27 if (ctx === null) { 30 this.ctx = ctx; 34 if (!this.ctx) { 44 this.defineRectPath(rect, this.ctx); 45 this.ctx.fillStyle = `rgba(${r},${g},${b},${alpha})`; 46 this.ctx.fill(); 48 this.ctx.restore(); 52 if (!this.ctx) { [all …]
|
/development/tools/winscope/src/app/components/timeline/mini-timeline/drawer/ |
D | mini_timeline_drawer_impl.ts | 41 ctx: CanvasRenderingContext2D; property in MiniTimelineDrawerImpl 57 const ctx = canvas.getContext('2d'); constant 59 if (ctx === null) { 63 this.ctx = ctx; 97 (ctx: CanvasRenderingContext2D, position: number) => { 101 ctx.beginPath(); 102 ctx.moveTo(position - triangleHeight, 0); 103 ctx.lineTo(position + triangleHeight, 0); 104 ctx.lineTo(position + barWidth / 2, triangleHeight); 105 ctx.lineTo(position + barWidth / 2, this.getHeight()); [all …]
|
D | draggable_canvas_object_impl.ts | 34 ctx: CanvasRenderingContext2D, 67 definePath(ctx: CanvasRenderingContext2D) { 68 this.definePathFunc(ctx, this.position); 71 draw(ctx: CanvasRenderingContext2D) { 72 this.doDraw(ctx); 76 private doDraw(ctx: CanvasRenderingContext2D) { 77 this.definePath(ctx); 78 ctx.fillStyle = this.drawConfig.fillStyle; 80 ctx.fill();
|
D | draggable_canvas_object.ts | 18 draw(ctx: CanvasRenderingContext2D): void; 19 definePath(ctx: CanvasRenderingContext2D): void;
|
D | canvas_mouse_handler_impl.ts | 165 const ctx = assertDefined(this.drawer.canvas.getContext('2d')); constant 166 object.definePath(ctx); 167 if (ctx.isPointInPath(mousePoint.x, mousePoint.y)) {
|
/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/vndk/tools/header-checker/src/dumper/ |
D | ast_processing.cpp | 204 void HeaderASTConsumer::HandleTranslationUnit(clang::ASTContext &ctx) { in HandleTranslationUnit() argument 205 clang::PrintingPolicy old_policy(ctx.getPrintingPolicy()); in HandleTranslationUnit() 216 ctx.setPrintingPolicy(policy); in HandleTranslationUnit() 217 clang::TranslationUnitDecl *translation_unit = ctx.getTranslationUnitDecl(); in HandleTranslationUnit() 219 ctx.createMangleContext()); in HandleTranslationUnit() 227 HeaderASTVisitor v(options_, mangle_contextp.get(), &ctx, cip_, in HandleTranslationUnit() 242 ctx.setPrintingPolicy(old_policy); in HandleTranslationUnit()
|
D | ast_processing.h | 80 void HandleTranslationUnit(clang::ASTContext &ctx) override;
|
/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/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/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()
|