text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
## Test data
The files under `exports` were created as follows:
```console
$ cd exports
$ dart run ../../../bin/claat_export.dart -s ../../../client_secret.apps.googleusercontent.com.json -d $CLAAT_GOOGLE_DOC_ID
```
| codelabs/tooling/claat_export_images/test/data/README.md/0 | {
"file_path": "codelabs/tooling/claat_export_images/test/data/README.md",
"repo_id": "codelabs",
"token_count": 80
} | 200 |
// Copyright 2022 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:checked_yaml/checked_yaml.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:logging/logging.dar... | codelabs/tooling/codelab_rebuild/lib/src/blueprint.dart/0 | {
"file_path": "codelabs/tooling/codelab_rebuild/lib/src/blueprint.dart",
"repo_id": "codelabs",
"token_count": 3787
} | 201 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class WebViewStack extends StatefulWidget {
const WebView... | codelabs/webview_flutter/step_09/lib/src/web_view_stack.dart/0 | {
"file_path": "codelabs/webview_flutter/step_09/lib/src/web_view_stack.dart",
"repo_id": "codelabs",
"token_count": 926
} | 202 |
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'src/menu.dart';
import 'src/navigation_controls.dar... | codelabs/webview_flutter/step_10/lib/main.dart/0 | {
"file_path": "codelabs/webview_flutter/step_10/lib/main.dart",
"repo_id": "codelabs",
"token_count": 456
} | 203 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A flutter project demonstrating code size issues with images">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="app... | devtools/case_study/code_size/optimized/code_size_images/web/index.html/0 | {
"file_path": "devtools/case_study/code_size/optimized/code_size_images/web/index.html",
"repo_id": "devtools",
"token_count": 408
} | 204 |
import 'package:flutter/material.dart';
import 'animals.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Code Size Demo',
theme: ThemeData(
... | devtools/case_study/code_size/unoptimized/code_size_images/lib/main.dart/0 | {
"file_path": "devtools/case_study/code_size/unoptimized/code_size_images/lib/main.dart",
"repo_id": "devtools",
"token_count": 347
} | 205 |
#include "ephemeral/Flutter-Generated.xcconfig"
| devtools/case_study/code_size/unoptimized/code_size_package/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "devtools/case_study/code_size/unoptimized/code_size_package/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "devtools",
"token_count": 19
} | 206 |
#include "ephemeral/Flutter-Generated.xcconfig"
| devtools/case_study/memory_leaks/images_1/macos/Flutter/Flutter-Release.xcconfig/0 | {
"file_path": "devtools/case_study/memory_leaks/images_1/macos/Flutter/Flutter-Release.xcconfig",
"repo_id": "devtools",
"token_count": 19
} | 207 |
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
version:
revision: 096162697a9cdc79f4e47f7230d70935fa81fd24
channel: unknown
project_type: app
# Tracks metadata for the flutter migrate comma... | devtools/case_study/memory_leaks/leaking_counter_1/.metadata/0 | {
"file_path": "devtools/case_study/memory_leaks/leaking_counter_1/.metadata",
"repo_id": "devtools",
"token_count": 743
} | 208 |
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withInputStream { stream ->
localProperties.load(stream)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null... | devtools/case_study/memory_leaks/memory_leak_app/android/app/build.gradle/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/android/app/build.gradle",
"repo_id": "devtools",
"token_count": 581
} | 209 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The RESTful APIs used by the app.
library;
/// All servers with RestfulAPI implement this base.
abstract class RestfulAPI {
RestfulAPI();
String... | devtools/case_study/memory_leaks/memory_leak_app/lib/restful_servers.dart/0 | {
"file_path": "devtools/case_study/memory_leaks/memory_leak_app/lib/restful_servers.dart",
"repo_id": "devtools",
"token_count": 1954
} | 210 |
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
var messageChannel: FlutterBasicMessageChannel?
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
Generat... | devtools/case_study/platform_channel/ios/Runner/AppDelegate.swift/0 | {
"file_path": "devtools/case_study/platform_channel/ios/Runner/AppDelegate.swift",
"repo_id": "devtools",
"token_count": 328
} | 211 |
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
| devtools/docs/Gemfile/0 | {
"file_path": "devtools/docs/Gemfile",
"repo_id": "devtools",
"token_count": 26
} | 212 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Note: this code was copied from Flutter gallery
// https://github.com/flutter/gallery/blob/main/test_benchmarks/benchmarks/project_root_directory.dart
... | devtools/packages/devtools_app/benchmark/test_infra/project_root_directory.dart/0 | {
"file_path": "devtools/packages/devtools_app/benchmark/test_infra/project_root_directory.dart",
"repo_id": "devtools",
"token_count": 303
} | 213 |
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.... | devtools/packages/devtools_app/icons/preview/padding.svg/0 | {
"file_path": "devtools/packages/devtools_app/icons/preview/padding.svg",
"repo_id": "devtools",
"token_count": 226
} | 214 |
# Instructions for running a DevTools integration test
## Set up ChromeDriver (one time only)
1. Follow the instructions [here](https://docs.flutter.dev/cookbook/testing/integration/introduction#5b-web) to download ChromeDriver.
2. Add `chromedriver` to your PATH by modifying your `.bash_profile` or `.zshrc`:
```
e... | devtools/packages/devtools_app/integration_test/README.md/0 | {
"file_path": "devtools/packages/devtools_app/integration_test/README.md",
"repo_id": "devtools",
"token_count": 1158
} | 215 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_shared/devtools_extensions.dart';
import 'package:flutter/mat... | devtools/packages/devtools_app/lib/src/extensions/extension_screen_controls.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/extensions/extension_screen_controls.dart",
"repo_id": "devtools",
"token_count": 5058
} | 216 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:intl/intl.dart';
import 'package:vm_snapshot_analysis/precompiler_trace.dart';
import 'package:v... | devtools/packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart",
"repo_id": "devtools",
"token_count": 9159
} | 217 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/foundation.da... | devtools/packages/devtools_app/lib/src/screens/debugger/program_explorer.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/debugger/program_explorer.dart",
"repo_id": "devtools",
"token_count": 6950
} | 218 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:collection';
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'pac... | devtools/packages/devtools_app/lib/src/screens/inspector/inspector_screen.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/inspector/inspector_screen.dart",
"repo_id": "devtools",
"token_count": 8788
} | 219 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import '../../shared/table/table.dart';
import '../../shared/table/... | devtools/packages/devtools_app/lib/src/screens/logging/_kind_column.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/logging/_kind_column.dart",
"repo_id": "devtools",
"token_count": 740
} | 220 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/material.dart';
import '../../../.... | devtools/packages/devtools_app/lib/src/screens/memory/panes/chart/chart_control_pane.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/panes/chart/chart_control_pane.dart",
"repo_id": "devtools",
"token_count": 2092
} | 221 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/foundation.dart';
import '../../../../../shared/memory/adapted_heap_data.dart';
... | devtools/packages/devtools_app/lib/src/screens/memory/panes/diff/controller/item_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/panes/diff/controller/item_controller.dart",
"repo_id": "devtools",
"token_count": 575
} | 222 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:vm_service/vm_service.dart';
import '../../../../shared/memory/class_name.dart';
import '../../../../shared/table/table_data.dart';
impor... | devtools/packages/devtools_app/lib/src/screens/memory/panes/profile/model.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/panes/profile/model.dart",
"repo_id": "devtools",
"token_count": 1993
} | 223 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:vm_service/vm_service.dart';
import '../../../../shared/globals.dart';
Future<HeapSnapshotGraph?> snapshotMemoryInSelectedIsolate() asyn... | devtools/packages/devtools_app/lib/src/screens/memory/shared/primitives/memory_utils.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/memory/shared/primitives/memory_utils.dart",
"repo_id": "devtools",
"token_count": 232
} | 224 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import '../../../../service/service_extension... | devtools/packages/devtools_app/lib/src/screens/performance/panes/controls/performance_controls.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/performance/panes/controls/performance_controls.dart",
"repo_id": "devtools",
"token_count": 2161
} | 225 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'perfetto_controller.dart';
class Perfetto extends StatelessWidget {
const Perfetto({
Key? key,
... | devtools/packages/devtools_app/lib/src/screens/performance/panes/timeline_events/perfetto/_perfetto_desktop.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/performance/panes/timeline_events/perfetto/_perfetto_desktop.dart",
"repo_id": "devtools",
"token_count": 272
} | 226 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart';
import 'package:vm_service/vm_service.dart' as vm... | devtools/packages/devtools_app/lib/src/screens/profiler/cpu_profile_model.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/profiler/cpu_profile_model.dart",
"repo_id": "devtools",
"token_count": 16896
} | 227 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/ui.dart';
import 'package:flutter/material.dart';
import '../../shared/common_widgets.dart';
import 'cpu_profiler_con... | devtools/packages/devtools_app/lib/src/screens/profiler/profiler_status.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/profiler/profiler_status.dart",
"repo_id": "devtools",
"token_count": 1709
} | 228 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:collection/collection.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/foundation.dar... | devtools/packages/devtools_app/lib/src/screens/vm_developer/isolate_statistics/isolate_statistics_view_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/vm_developer/isolate_statistics/isolate_statistics_view_controller.dart",
"repo_id": "devtools",
"token_count": 1135
} | 229 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:collection/collection.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/foundation.dart';
import 'package:vm... | devtools/packages/devtools_app/lib/src/screens/vm_developer/object_inspector/vm_object_model.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/screens/vm_developer/object_inspector/vm_object_model.dart",
"repo_id": "devtools",
"token_count": 3746
} | 230 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/service_extensions.dart' as extensions;
import 'package:flutter/material.dart';
import '../shared/analytics/constants... | devtools/packages/devtools_app/lib/src/service/service_extensions.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/service/service_extensions.dart",
"repo_id": "devtools",
"token_count": 5398
} | 231 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/gestures.dart';
import 'package:flu... | devtools/packages/devtools_app/lib/src/shared/charts/treemap.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/charts/treemap.dart",
"repo_id": "devtools",
"token_count": 11237
} | 232 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
import 'package:web/web.dart';
class HostPlatform {
HostPlatform._() {
_isMacOS = window.navigator.userAgent.contains('Macintosh');
}
static f... | devtools/packages/devtools_app/lib/src/shared/config_specific/host_platform/_host_platform_web.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/config_specific/host_platform/_host_platform_web.dart",
"repo_id": "devtools",
"token_count": 130
} | 233 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
import 'dart:js_interop';
import 'package:web/web.dart' as web;
class Notification {
Notification(String title, {String body = ''}) {
_impl = web.... | devtools/packages/devtools_app/lib/src/shared/config_specific/notifications/_notifications_web.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/config_specific/notifications/_notifications_web.dart",
"repo_id": "devtools",
"token_count": 269
} | 234 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'globals.dart';
/// This controller is used by the connection to the DevTools server to receive
/// commands from the server... | devtools/packages/devtools_app/lib/src/shared/framework_controller.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/framework_controller.dart",
"repo_id": "devtools",
"token_count": 859
} | 235 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../primitives/utils.dart';
import 'adapted_heap_data.dart';
import 'adapted_heap_object.dart';
final _uiReleaser = UiReleaser();
/// Performs ca... | devtools/packages/devtools_app/lib/src/shared/memory/retainers.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/memory/retainers.dart",
"repo_id": "devtools",
"token_count": 1588
} | 236 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Class that converts enum value names to enum entries and vice versa.
///
/// Example usage:
/// enum Color {
/// red, green, blue
/// }
/// ```
/// ... | devtools/packages/devtools_app/lib/src/shared/primitives/enum_utils.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/primitives/enum_utils.dart",
"repo_id": "devtools",
"token_count": 488
} | 237 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contain low level utils, i.e. utils that do not depend on
// libraries in this package.
import 'dart:async';
import 'dart:collection';
impor... | devtools/packages/devtools_app/lib/src/shared/primitives/utils.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/primitives/utils.dart",
"repo_id": "devtools",
"token_count": 11973
} | 238 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
part of 'table.dart';
/// A [FlatTable] widget that is searchable.
///
/// The table requires a [searchController], which is responsible for feeding
/// ... | devtools/packages/devtools_app/lib/src/shared/table/_flat_table.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/table/_flat_table.dart",
"repo_id": "devtools",
"token_count": 4270
} | 239 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:math';
import 'package:async/async.dart';
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_sh... | devtools/packages/devtools_app/lib/src/shared/ui/search.dart/0 | {
"file_path": "devtools/packages/devtools_app/lib/src/shared/ui/search.dart",
"repo_id": "devtools",
"token_count": 17852
} | 240 |
DevTools tests are grouped by their respective screen (if applicable). If a test is for feature that does not belong to
a single screen, it should be placed inside `test/shared/`.
`test/test_infra/` contains all other than '_test.dart' files.
| devtools/packages/devtools_app/test/README.md/0 | {
"file_path": "devtools/packages/devtools_app/test/README.md",
"repo_id": "devtools",
"token_count": 65
} | 241 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/src/service/service_manager.dart';
import 'package:devtools_app/src/shared/globals.dart';
import 'package:devtools_app_shared... | devtools/packages/devtools_app/test/debugger/debugger_controller_stdio_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/debugger/debugger_controller_stdio_test.dart",
"repo_id": "devtools",
"token_count": 506
} | 242 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app/src/shared/diagnostics/dart_object_node.dart';
import 'package:devtools_app/... | devtools/packages/devtools_app/test/debugger/records_variable_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/debugger/records_variable_test.dart",
"repo_id": "devtools",
"token_count": 1333
} | 243 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:devtools_app/src/screens/inspector/layout_explorer/flex/flex.dart';
import 'package:devtools_app/src/shared/consol... | devtools/packages/devtools_app/test/inspector/layout_explorer/flex/flex_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/inspector/layout_explorer/flex/flex_test.dart",
"repo_id": "devtools",
"token_count": 5244
} | 244 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
@TestOn('vm')
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:devtools_shared/devtools_tes... | devtools/packages/devtools_app/test/legacy_integration_tests/integration.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/legacy_integration_tests/integration.dart",
"repo_id": "devtools",
"token_count": 4633
} | 245 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/src/shared/memory/class_name.dart';
import 'package:flutter_test/flutter_test.dart';
class _ClassTest {
_ClassTest(
th... | devtools/packages/devtools_app/test/memory/primitives/class_name_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/memory/primitives/class_name_test.dart",
"repo_id": "devtools",
"token_count": 707
} | 246 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app/src/screens/performance/panes/controls/performance_controls.dart';
import 'p... | devtools/packages/devtools_app/test/performance/controls/performance_controls_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/performance/controls/performance_controls_test.dart",
"repo_id": "devtools",
"token_count": 1773
} | 247 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app/src/screens/performance/panes/timeline_events/perfet... | devtools/packages/devtools_app/test/performance/timeline_events/perfetto/perfetto_event_processor_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/performance/timeline_events/perfetto/perfetto_event_processor_test.dart",
"repo_id": "devtools",
"token_count": 1617
} | 248 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/src/shared/development_helpers.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('debug flags are... | devtools/packages/devtools_app/test/shared/development_helpers_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/shared/development_helpers_test.dart",
"repo_id": "devtools",
"token_count": 177
} | 249 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:collection/collection.dart';
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app/src/shared/config_specific/impo... | devtools/packages/devtools_app/test/shared/import_export_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/shared/import_export_test.dart",
"repo_id": "devtools",
"token_count": 1473
} | 250 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app/src/framework/scaffold.dart';
import 'package:devtools_app/src/shared/framew... | devtools/packages/devtools_app/test/shared/scaffold_debugger_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/shared/scaffold_debugger_test.dart",
"repo_id": "devtools",
"token_count": 1919
} | 251 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/src/service/service_manager.dart';
import 'package:devtools_app/src/shared/ui/utils.dart';
import 'package:devtools_app_share... | devtools/packages/devtools_app/test/shared/ui_utils_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/shared/ui_utils_test.dart",
"repo_id": "devtools",
"token_count": 4177
} | 252 |
// FILE: main.dart (Note: Do not remove comment, for testing.)
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ATTENTION: If any lines are added to or deleted from this file then the
// debugger pa... | devtools/packages/devtools_app/test/test_infra/fixtures/flutter_app/lib/main.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/test_infra/fixtures/flutter_app/lib/main.dart",
"repo_id": "devtools",
"token_count": 595
} | 253 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@o... | devtools/packages/devtools_app/test/test_infra/fixtures/memory_app/lib/main.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/test_infra/fixtures/memory_app/lib/main.dart",
"repo_id": "devtools",
"token_count": 1503
} | 254 |
>/** there's no end to this comment
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.block.documentation.dart
| devtools/packages/devtools_app/test/test_infra/goldens/syntax_highlighting/handles_eof_gracefully.golden/0 | {
"file_path": "devtools/packages/devtools_app/test/test_infra/goldens/syntax_highlighting/handles_eof_gracefully.golden",
"repo_id": "devtools",
"token_count": 30
} | 255 |
Scenes allow you to define application state that can be both used for testing and
run as an application.
To generate scene runners:
```
flutter pub run build_runner build --delete-conflicting-outputs
```
To run:
```
flutter run -t test/test_infra/scenes/hello.stager_app.g.dart -d macos
```
Configuration for VSCode:... | devtools/packages/devtools_app/test/test_infra/scenes/README.md/0 | {
"file_path": "devtools/packages/devtools_app/test/test_infra/scenes/README.md",
"repo_id": "devtools",
"token_count": 198
} | 256 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
const instructionSizes = '''
[
{
"l": "dart:_internal",
"c": "_CastListBase",
"n": "[Optimized] getRange",
"s": 112
},
... | devtools/packages/devtools_app/test/test_infra/test_data/app_size/sizes.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/test_infra/test_data/app_size/sizes.dart",
"repo_id": "devtools",
"token_count": 912474
} | 257 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:devtools_app/src/shared/memory/adapted_heap_data.dart';
const _dataDir = 'test/test_infra/test_data/memory/heap/';
ty... | devtools/packages/devtools_app/test/test_infra/test_data/memory/heap/heap_data.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/test_infra/test_data/memory/heap/heap_data.dart",
"repo_id": "devtools",
"token_count": 469
} | 258 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app/src/screens/vm_developer/object_inspector/inbound_references_tree.dart';
imp... | devtools/packages/devtools_app/test/vm_developer/object_inspector/vm_object_pool_display_test.dart/0 | {
"file_path": "devtools/packages/devtools_app/test/vm_developer/object_inspector/vm_object_pool_display_test.dart",
"repo_id": "devtools",
"token_count": 1939
} | 259 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: unused_local_variable
import 'dart:async';
import 'package:devtools_app_shared/service.dart';
import 'package:devtools_app_shared/se... | devtools/packages/devtools_app_shared/example/service_example.dart/0 | {
"file_path": "devtools/packages/devtools_app_shared/example/service_example.dart",
"repo_id": "devtools",
"token_count": 622
} | 260 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:core';
import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart';
import 'package:meta/meta.dart'... | devtools/packages/devtools_app_shared/lib/src/service/service_manager.dart/0 | {
"file_path": "devtools/packages/devtools_app_shared/lib/src/service/service_manager.dart",
"repo_id": "devtools",
"token_count": 4956
} | 261 |
// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:dart_foo/dart_foo.dart';
// This is a script that uses `package:dart_foo`.
void main() async {
final dartFoo = DartFoo();
await dartF... | devtools/packages/devtools_extensions/example/app_that_uses_foo/bin/script.dart/0 | {
"file_path": "devtools/packages/devtools_extensions/example/app_that_uses_foo/bin/script.dart",
"repo_id": "devtools",
"token_count": 105
} | 262 |
name: dart_foo
issueTracker: https://www.google.com/
version: 1.0.0
materialIconCodePoint: "0xe50a"
| devtools/packages/devtools_extensions/example/packages_with_extensions/dart_foo/packages/dart_foo/extension/config.yaml/0 | {
"file_path": "devtools/packages/devtools_extensions/example/packages_with_extensions/dart_foo/packages/dart_foo/extension/config.yaml",
"repo_id": "devtools",
"token_count": 38
} | 263 |
'use strict';
const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {"version.json": "9954b18052ddc381f13aa7ae21bd6c3e",
"index.html": "9fdf460a6db448f14fb50a7fe378e28b",
"/": "9fdf460a6db448f14fb50a7fe378e28b",
"main.dart.js": "6b68e25c0f... | devtools/packages/devtools_extensions/example/packages_with_extensions/dart_foo/packages/dart_foo/extension/devtools/build/flutter_service_worker.js/0 | {
"file_path": "devtools/packages/devtools_extensions/example/packages_with_extensions/dart_foo/packages/dart_foo/extension/devtools/build/flutter_service_worker.js",
"repo_id": "devtools",
"token_count": 3751
} | 264 |
{
"name": "foo_devtools_extension",
"short_name": "foo_devtools_extension",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A Flutter web app for the package:foo DevTools extension",
"orientation": "portrait-primary",
... | devtools/packages/devtools_extensions/example/packages_with_extensions/foo/packages/foo/extension/devtools/build/manifest.json/0 | {
"file_path": "devtools/packages/devtools_extensions/example/packages_with_extensions/foo/packages/foo/extension/devtools/build/manifest.json",
"repo_id": "devtools",
"token_count": 531
} | 265 |
name: foo_devtools_extension
description: A Flutter web app for the package:foo DevTools extension.
publish_to: 'none'
version: 1.0.0
environment:
sdk: '>=3.0.0 <4.0.0'
flutter: '>=3.0.0'
dependencies:
devtools_app_shared:
path: ../../../../../../devtools_app_shared
devtools_extensions:
path: ../../.... | devtools/packages/devtools_extensions/example/packages_with_extensions/foo/packages/foo_devtools_extension/pubspec.yaml/0 | {
"file_path": "devtools/packages/devtools_extensions/example/packages_with_extensions/foo/packages/foo_devtools_extension/pubspec.yaml",
"repo_id": "devtools",
"token_count": 259
} | 266 |
The code in this directory is for the DevTools extension template that package
authors will use to build DevTools extensions. Files in this directory are
exported through the `lib/devtools_extensions.dart` file.
This code is not intended to be imported into DevTools itself. Anything that
should be shared between DevTo... | devtools/packages/devtools_extensions/lib/src/template/README.md/0 | {
"file_path": "devtools/packages/devtools_extensions/lib/src/template/README.md",
"repo_id": "devtools",
"token_count": 99
} | 267 |
Copyright 2020 The Chromium Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following... | devtools/packages/devtools_shared/LICENSE/0 | {
"file_path": "devtools/packages/devtools_shared/LICENSE",
"repo_id": "devtools",
"token_count": 400
} | 268 |
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:collection/collection.dart';
import 'package:path/path.dart' as path... | devtools/packages/devtools_shared/lib/src/extensions/extension_enablement.dart/0 | {
"file_path": "devtools/packages/devtools_shared/lib/src/extensions/extension_enablement.dart",
"repo_id": "devtools",
"token_count": 1747
} | 269 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import 'package:usage/usage_io.dart';
import 'file_system.dart';
/// ... | devtools/packages/devtools_shared/lib/src/server/usage.dart/0 | {
"file_path": "devtools/packages/devtools_shared/lib/src/server/usage.dart",
"repo_id": "devtools",
"token_count": 2573
} | 270 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:devtools_shared/devtools_extensions.dart';
import 'package:devtools_shared/devtools_extensions_io.dart';
import 'packag... | devtools/packages/devtools_shared/test/extensions/extension_enablement_test.dart/0 | {
"file_path": "devtools/packages/devtools_shared/test/extensions/extension_enablement_test.dart",
"repo_id": "devtools",
"token_count": 1303
} | 271 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export 'src/mocks/fake_class_hierarchy_explorer_controller.dart';
export 'src/mocks/fake_isolate_manager.dart';
export 'src/mocks/fake_object_inspector_vi... | devtools/packages/devtools_test/lib/devtools_test.dart/0 | {
"file_path": "devtools/packages/devtools_test/lib/devtools_test.dart",
"repo_id": "devtools",
"token_count": 232
} | 272 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:devtools_app/devtools_app.dart';
import 'package:devtools_app_shared/service.dart';
import 'package:devtools_app_sha... | devtools/packages/devtools_test/lib/src/mocks/generated_mocks_factories.dart/0 | {
"file_path": "devtools/packages/devtools_test/lib/src/mocks/generated_mocks_factories.dart",
"repo_id": "devtools",
"token_count": 3014
} | 273 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function toggleTheme(messageEvent) {
const themePingId = 'DART-DEVTOOLS-THEME-PING';
const themePongId = 'DART-DEVTOOLS-THEME-PONG';
const themeChan... | devtools/third_party/packages/perfetto_ui_compiled/lib/dist/devtools/devtools_theme_handler.js/0 | {
"file_path": "devtools/third_party/packages/perfetto_ui_compiled/lib/dist/devtools/devtools_theme_handler.js",
"repo_id": "devtools",
"token_count": 415
} | 274 |
var engine = (function () {
'use strict';
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
function getAugmentedNamespace(n) {
if (n.__esModule) return n;
var f = n.default;
if (typeof f == "function") {
var a = functio... | devtools/third_party/packages/perfetto_ui_compiled/lib/dist/v33.0-1838a06af/engine_bundle.js/0 | {
"file_path": "devtools/third_party/packages/perfetto_ui_compiled/lib/dist/v33.0-1838a06af/engine_bundle.js",
"repo_id": "devtools",
"token_count": 95137
} | 275 |
#!/bin/bash
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Fast fail the script on failures.
set -ex
source ./tool/ci/setup.sh
if [ "$PACKAGE" = "devtools_app_shared" ]; then
pushd $DEVTOOLS_DIR... | devtools/tool/ci/package_tests.sh/0 | {
"file_path": "devtools/tool/ci/package_tests.sh",
"repo_id": "devtools",
"token_count": 289
} | 276 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:args/command_runner.dart';
import 'package:devtools_tool/utils.dart';
import 'package:io/io.dart';... | devtools/tool/lib/commands/release_helper.dart/0 | {
"file_path": "devtools/tool/lib/commands/release_helper.dart",
"repo_id": "devtools",
"token_count": 1729
} | 277 |
# Describes the targets run in continuous integration environment.
#
# Flutter infra uses this file to generate a checklist of tasks to be performed
# for every commit.
#
# More information at:
# * https://github.com/flutter/cocoon/blob/main/CI_YAML.md
enabled_branches:
- main
- flutter-\d+\.\d+-candidate\.\d+
-... | engine/.ci.yaml/0 | {
"file_path": "engine/.ci.yaml",
"repo_id": "engine",
"token_count": 5670
} | 278 |
# Flutter Engine
[](https://flutter-dashboard.appspot.com/#/build?repo=engine)
[](https://deps.dev/project/github/flutter... | engine/README.md/0 | {
"file_path": "engine/README.md",
"repo_id": "engine",
"token_count": 522
} | 279 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//flutter/build/zip_bundle.gni")
import("//flutter/common/config.gni")
generated_file("artifacts_entitlement_config") {
outputs = [ "$target_gen_di... | engine/build/archives/BUILD.gn/0 | {
"file_path": "engine/build/archives/BUILD.gn",
"repo_id": "engine",
"token_count": 4264
} | 280 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/compiled_action.gni")
template("flatbuffers") {
assert(defined(invoker.flatbuffers),
"Flatbuffer schema files must be specified.")... | engine/build/secondary/flutter/third_party/flatbuffers/flatbuffers.gni/0 | {
"file_path": "engine/build/secondary/flutter/third_party/flatbuffers/flatbuffers.gni",
"repo_id": "engine",
"token_count": 707
} | 281 |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("gtest_config") {
visibility = [
":*",
"//testing/gmock:*", # gmock also shares this config.
]
defines = [
# In order to allow reg... | engine/build/secondary/testing/gtest/BUILD.gn/0 | {
"file_path": "engine/build/secondary/testing/gtest/BUILD.gn",
"repo_id": "engine",
"token_count": 1721
} | 282 |
# Contributing to Fuchsia
Fuchsia lets anyone contribute to the project, regardless of their employer.
The Fuchsia project reviews and encourages well-tested, high-quality
contributions from anyone who wants to contribute to Fuchsia.
## Contributor License Agreement
Contributions to this project must be accompanied ... | engine/build/secondary/third_party/protobuf/CONTRIBUTING.md/0 | {
"file_path": "engine/build/secondary/third_party/protobuf/CONTRIBUTING.md",
"repo_id": "engine",
"token_count": 300
} | 283 |
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# We are building inside Flutter.
spirv_tools_standalone = false
# Paths to SPIRV-Tools dependencies in Flutter.
spirv_tools_googletest_dir = "//third_party/... | engine/build_overrides/spirv_tools.gni/0 | {
"file_path": "engine/build_overrides/spirv_tools.gni",
"repo_id": "engine",
"token_count": 147
} | 284 |
{
"builds": [
{
"drone_dimensions": [
"device_type=none",
"os=Linux",
"kvm=1",
"cores=8"
],
"gclient_variables": {
"use_rbe": true
},
"gn": [
"--android... | engine/ci/builders/linux_android_emulator.json/0 | {
"file_path": "engine/ci/builders/linux_android_emulator.json",
"repo_id": "engine",
"token_count": 3958
} | 285 |
{
"builds": [
{
"drone_dimensions": [
"device_type=none",
"os=Mac-13",
"cpu=x86"
],
"gn": [
"--ios",
"--runtime-mode",
"debug",
"--simulator",
"... | engine/ci/builders/mac_ios_engine.json/0 | {
"file_path": "engine/ci/builders/mac_ios_engine.json",
"repo_id": "engine",
"token_count": 6931
} | 286 |
#!/bin/bash
#
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Do not exit when a non-zero return value is encountered to output all errors.
# See: https://github.com/flutter/flutter/issues/131680
# set -e... | engine/ci/licenses.sh/0 | {
"file_path": "engine/ci/licenses.sh",
"repo_id": "engine",
"token_count": 2499
} | 287 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_COMMON_CONSTANTS_H_
#define FLUTTER_COMMON_CONSTANTS_H_
namespace flutter {
constexpr double kMegaByteSizeInBytes = (1 << 20);
// The ID ... | engine/common/constants.h/0 | {
"file_path": "engine/common/constants.h",
"repo_id": "engine",
"token_count": 499
} | 288 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/common/task_runners.h"
#include <utility>
namespace flutter {
TaskRunners::TaskRunners(std::string label,
fml... | engine/common/task_runners.cc/0 | {
"file_path": "engine/common/task_runners.cc",
"repo_id": "engine",
"token_count": 540
} | 289 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <type_traits>
#include "flutter/display_list/display_list.h"
#include "flutter/display_list/dl_op_records.h"
#include "flutter/fml/trace_event.h"... | engine/display_list/display_list.cc/0 | {
"file_path": "engine/display_list/display_list.cc",
"repo_id": "engine",
"token_count": 4406
} | 290 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/dl_op_records.h"
namespace flutter {
// Just exists to ensure that the header can be cleanly imported.
} // namespace fl... | engine/display_list/dl_op_records.cc/0 | {
"file_path": "engine/display_list/dl_op_records.cc",
"repo_id": "engine",
"token_count": 93
} | 291 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/effects/dl_image_filter.h"
namespace flutter {
std::shared_ptr<DlImageFilter> DlImageFilter::makeWithLocalMatrix(
cons... | engine/display_list/effects/dl_image_filter.cc/0 | {
"file_path": "engine/display_list/effects/dl_image_filter.cc",
"repo_id": "engine",
"token_count": 1209
} | 292 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/geometry/dl_rtree.h"
#include "gtest/gtest.h"
#include "third_party/skia/include/core/SkRect.h"
namespace flutter {
namesp... | engine/display_list/geometry/dl_rtree_unittests.cc/0 | {
"file_path": "engine/display_list/geometry/dl_rtree_unittests.cc",
"repo_id": "engine",
"token_count": 5159
} | 293 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# We only do software benchmarks on non-mobile platforms
import("//flutter/impeller/tools/impeller.gni")
source_set("display_list_testing") {
testonly = tr... | engine/display_list/testing/BUILD.gn/0 | {
"file_path": "engine/display_list/testing/BUILD.gn",
"repo_id": "engine",
"token_count": 1077
} | 294 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/utils/dl_matrix_clip_tracker.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/fml/logging.h"
namespace fl... | engine/display_list/utils/dl_matrix_clip_tracker.cc/0 | {
"file_path": "engine/display_list/utils/dl_matrix_clip_tracker.cc",
"repo_id": "engine",
"token_count": 6204
} | 295 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cassert>
#include <chrono>
#include <iostream>
#include "GLFW/glfw3.h"
#include "embedder.h"
// This value is calculated after the window is cr... | engine/examples/glfw/FlutterEmbedderGLFW.cc/0 | {
"file_path": "engine/examples/glfw/FlutterEmbedderGLFW.cc",
"repo_id": "engine",
"token_count": 2653
} | 296 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//flutter/common/config.gni")
import("//flutter/impeller/tools/impeller.gni")
import("//flutter/shell/config.gni")
import("//flutter/testing/testing.g... | engine/flow/BUILD.gn/0 | {
"file_path": "engine/flow/BUILD.gn",
"repo_id": "engine",
"token_count": 2844
} | 297 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define FML_USED_ON_EMBEDDER
#include "flutter/common/graphics/gl_context_switch.h"
#include <functional>
#include <future>
#include <memory>
#include "... | engine/flow/gl_context_switch_unittests.cc/0 | {
"file_path": "engine/flow/gl_context_switch_unittests.cc",
"repo_id": "engine",
"token_count": 275
} | 298 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FLOW_LAYERS_CLIP_RRECT_LAYER_H_
#define FLUTTER_FLOW_LAYERS_CLIP_RRECT_LAYER_H_
#include "flutter/flow/layers/clip_shape_layer.h"
namespa... | engine/flow/layers/clip_rrect_layer.h/0 | {
"file_path": "engine/flow/layers/clip_rrect_layer.h",
"repo_id": "engine",
"token_count": 272
} | 299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.