text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// 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_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_KHR_KHR_SWAPCHAIN_VK_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_KHR_KHR_SWAPC... | engine/impeller/renderer/backend/vulkan/swapchain/khr/khr_swapchain_vk.h/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/swapchain/khr/khr_swapchain_vk.h",
"repo_id": "engine",
"token_count": 737
} | 225 |
// 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_IMPELLER_RENDERER_BACKEND_VULKAN_VMA_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VMA_H_
#include "flutter/flutter_vma/flutter_vma.... | engine/impeller/renderer/backend/vulkan/vma.h/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/vma.h",
"repo_id": "engine",
"token_count": 1283
} | 226 |
// 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_IMPELLER_RENDERER_COMMAND_BUFFER_H_
#define FLUTTER_IMPELLER_RENDERER_COMMAND_BUFFER_H_
#include <functional>
#include <memory>
#include ... | engine/impeller/renderer/command_buffer.h/0 | {
"file_path": "engine/impeller/renderer/command_buffer.h",
"repo_id": "engine",
"token_count": 1358
} | 227 |
// 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.
#extension GL_KHR_shader_subgroup_arithmetic : enable
layout(local_size_x = 256, local_size_y = 1) in;
layout(std430) buffer;
#include <impeller/path.glsl... | engine/impeller/renderer/path_polyline.comp/0 | {
"file_path": "engine/impeller/renderer/path_polyline.comp",
"repo_id": "engine",
"token_count": 1599
} | 228 |
// 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_IMPELLER_RENDERER_RENDER_TARGET_H_
#define FLUTTER_IMPELLER_RENDERER_RENDER_TARGET_H_
#include <functional>
#include <map>
#include <optio... | engine/impeller/renderer/render_target.h/0 | {
"file_path": "engine/impeller/renderer/render_target.h",
"repo_id": "engine",
"token_count": 2200
} | 229 |
// 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 "impeller/renderer/surface.h"
#include "flutter/fml/logging.h"
namespace impeller {
Surface::Surface() : Surface(RenderTarget{}) {}
Surface::S... | engine/impeller/renderer/surface.cc/0 | {
"file_path": "engine/impeller/renderer/surface.cc",
"repo_id": "engine",
"token_count": 283
} | 230 |
// 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.
namespace impeller.fb;
enum Stage:byte {
kVertex,
kFragment,
kCompute,
}
// The subset of impeller::ShaderType that may be used for uniform binding... | engine/impeller/runtime_stage/runtime_stage_types.fbs/0 | {
"file_path": "engine/impeller/runtime_stage/runtime_stage_types.fbs",
"repo_id": "engine",
"token_count": 616
} | 231 |
// 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_IMPELLER_SCENE_GEOMETRY_H_
#define FLUTTER_IMPELLER_SCENE_GEOMETRY_H_
#include <memory>
#include "flutter/fml/macros.h"
#include "impelle... | engine/impeller/scene/geometry.h/0 | {
"file_path": "engine/impeller/scene/geometry.h",
"repo_id": "engine",
"token_count": 1548
} | 232 |
// 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 "impeller/scene/mesh.h"
#include <memory>
#include <optional>
#include "impeller/base/validation.h"
#include "impeller/scene/material.h"
#includ... | engine/impeller/scene/mesh.cc/0 | {
"file_path": "engine/impeller/scene/mesh.cc",
"repo_id": "engine",
"token_count": 510
} | 233 |
// 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 "impeller/scene/skin.h"
#include <cmath>
#include <memory>
#include <vector>
#include "flutter/fml/logging.h"
#include "impeller/base/allocation... | engine/impeller/scene/skin.cc/0 | {
"file_path": "engine/impeller/scene/skin.cc",
"repo_id": "engine",
"token_count": 1534
} | 234 |
// 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 "impeller/toolkit/android/native_window.h"
namespace impeller::android {
NativeWindow::NativeWindow(ANativeWindow* window) : window_(window) {
... | engine/impeller/toolkit/android/native_window.cc/0 | {
"file_path": "engine/impeller/toolkit/android/native_window.cc",
"repo_id": "engine",
"token_count": 288
} | 235 |
// 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 "impeller/toolkit/egl/egl.h"
#include "flutter/fml/logging.h"
namespace impeller {
namespace egl {
std::function<void*(const char*)> CreateProc... | engine/impeller/toolkit/egl/egl.cc/0 | {
"file_path": "engine/impeller/toolkit/egl/egl.cc",
"repo_id": "engine",
"token_count": 694
} | 236 |
#!/usr/bin/env vpython3
# 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 argparse
import json
import os
import subprocess
import sys
# This script parses the JSON output produced by malioc about GPU ... | engine/impeller/tools/malioc_cores.py/0 | {
"file_path": "engine/impeller/tools/malioc_cores.py",
"repo_id": "engine",
"token_count": 964
} | 237 |
// 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 "impeller/typographer/backends/stb/text_frame_stb.h"
#include "impeller/typographer/font.h"
namespace impeller {
std::shared_ptr<TextFrame> Mak... | engine/impeller/typographer/backends/stb/text_frame_stb.cc/0 | {
"file_path": "engine/impeller/typographer/backends/stb/text_frame_stb.cc",
"repo_id": "engine",
"token_count": 1032
} | 238 |
// 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 "impeller/typographer/rectangle_packer.h"
#include <algorithm>
#include <vector>
namespace impeller {
// Pack rectangles and track the current ... | engine/impeller/typographer/rectangle_packer.cc/0 | {
"file_path": "engine/impeller/typographer/rectangle_packer.cc",
"repo_id": "engine",
"token_count": 2204
} | 239 |
// 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_LIB_GPU_CONTEXT_H_
#define FLUTTER_LIB_GPU_CONTEXT_H_
#include "dart_api.h"
#include "flutter/lib/gpu/export.h"
#include "flutter/lib/ui/d... | engine/lib/gpu/context.h/0 | {
"file_path": "engine/lib/gpu/context.h",
"repo_id": "engine",
"token_count": 698
} | 240 |
// 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.
// ignore_for_file: public_member_api_docs
part of flutter_gpu;
base class ColorAttachment {
ColorAttachment({
this.loadAction = LoadAction.clear,
... | engine/lib/gpu/lib/src/render_pass.dart/0 | {
"file_path": "engine/lib/gpu/lib/src/render_pass.dart",
"repo_id": "engine",
"token_count": 3901
} | 241 |
// 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_LIB_GPU_SMOKETEST_H_
#define FLUTTER_LIB_GPU_SMOKETEST_H_
#include <cstdint>
#include "flutter/lib/gpu/export.h"
#include "flutter/lib/ui... | engine/lib/gpu/smoketest.h/0 | {
"file_path": "engine/lib/gpu/smoketest.h",
"repo_id": "engine",
"token_count": 578
} | 242 |
// 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.
part of dart.ui;
/// An opaque object representing a composited scene.
///
/// To create a Scene object, use a [SceneBuilder].
///
/// Scene objects can be... | engine/lib/ui/compositing.dart/0 | {
"file_path": "engine/lib/ui/compositing.dart",
"repo_id": "engine",
"token_count": 11063
} | 243 |
#version 320 es
// 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.
precision highp float;
layout(location = 0) out vec4 fragColor;
layout(location = 0) uniform float a;
void main() {
mat2 zeros = mat2... | engine/lib/ui/fixtures/shaders/supported_op_shaders/24_OpTypeMatrix.frag/0 | {
"file_path": "engine/lib/ui/fixtures/shaders/supported_op_shaders/24_OpTypeMatrix.frag",
"repo_id": "engine",
"token_count": 235
} | 244 |
// 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_LIB_UI_ISOLATE_NAME_SERVER_ISOLATE_NAME_SERVER_NATIVES_H_
#define FLUTTER_LIB_UI_ISOLATE_NAME_SERVER_ISOLATE_NAME_SERVER_NATIVES_H_
#inclu... | engine/lib/ui/isolate_name_server/isolate_name_server_natives.h/0 | {
"file_path": "engine/lib/ui/isolate_name_server/isolate_name_server_natives.h",
"repo_id": "engine",
"token_count": 304
} | 245 |
// 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/lib/ui/painting/display_list_image_gpu.h"
namespace flutter {
sk_sp<DlImageGPU> DlImageGPU::Make(SkiaGPUObject<SkImage> image) {
if (... | engine/lib/ui/painting/display_list_image_gpu.cc/0 | {
"file_path": "engine/lib/ui/painting/display_list_image_gpu.cc",
"repo_id": "engine",
"token_count": 642
} | 246 |
// 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/lib/ui/painting/image_decoder_no_gl_unittests.h"
#include "flutter/fml/endianness.h"
namespace flutter {
namespace testing {
// Tests ... | engine/lib/ui/painting/image_decoder_no_gl_unittests.cc/0 | {
"file_path": "engine/lib/ui/painting/image_decoder_no_gl_unittests.cc",
"repo_id": "engine",
"token_count": 2747
} | 247 |
// 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/lib/ui/painting/image_filter.h"
#include "flutter/lib/ui/floating_point.h"
#include "flutter/lib/ui/painting/matrix.h"
#include "flutter... | engine/lib/ui/painting/image_filter.cc/0 | {
"file_path": "engine/lib/ui/painting/image_filter.cc",
"repo_id": "engine",
"token_count": 1068
} | 248 |
// 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_LIB_UI_PAINTING_MULTI_FRAME_CODEC_H_
#define FLUTTER_LIB_UI_PAINTING_MULTI_FRAME_CODEC_H_
#include "flutter/fml/macros.h"
#include "flutte... | engine/lib/ui/painting/multi_frame_codec.h/0 | {
"file_path": "engine/lib/ui/painting/multi_frame_codec.h",
"repo_id": "engine",
"token_count": 1103
} | 249 |
// 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_LIB_UI_PAINTING_SCENE_SCENE_NODE_H_
#define FLUTTER_LIB_UI_PAINTING_SCENE_SCENE_NODE_H_
#include <memory>
#include <string>
#include <vect... | engine/lib/ui/painting/scene/scene_node.h/0 | {
"file_path": "engine/lib/ui/painting/scene/scene_node.h",
"repo_id": "engine",
"token_count": 803
} | 250 |
// 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.
part of dart.ui;
/// The possible actions that can be conveyed from the operating system
/// accessibility APIs to a semantics node.
///
/// \warning When... | engine/lib/ui/semantics.dart/0 | {
"file_path": "engine/lib/ui/semantics.dart",
"repo_id": "engine",
"token_count": 12708
} | 251 |
// 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_LIB_UI_TEXT_ASSET_MANAGER_FONT_PROVIDER_H_
#define FLUTTER_LIB_UI_TEXT_ASSET_MANAGER_FONT_PROVIDER_H_
#include <memory>
#include <string>
... | engine/lib/ui/text/asset_manager_font_provider.h/0 | {
"file_path": "engine/lib/ui/text/asset_manager_font_provider.h",
"repo_id": "engine",
"token_count": 917
} | 252 |
// 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/lib/ui/window/key_data_packet.h"
#include <cstring>
#include <iostream>
#include "flutter/fml/logging.h"
namespace flutter {
KeyDataP... | engine/lib/ui/window/key_data_packet.cc/0 | {
"file_path": "engine/lib/ui/window/key_data_packet.cc",
"repo_id": "engine",
"token_count": 289
} | 253 |
// 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 "flutter/fml/mapping.h"
#include "flutter/fml/synchronization/waitable_event.h"
#include "flutter/lib/ui/... | engine/lib/ui/window/platform_message_response_dart_unittests.cc/0 | {
"file_path": "engine/lib/ui/window/platform_message_response_dart_unittests.cc",
"repo_id": "engine",
"token_count": 1105
} | 254 |
# For more information on test and runner configurations:
#
# * https://github.com/dart-lang/test/blob/master/pkgs/test/doc/configuration.md#platforms
platforms:
- ie
- vm
| engine/lib/web_ui/dart_test_edge.yaml/0 | {
"file_path": "engine/lib/web_ui/dart_test_edge.yaml",
"repo_id": "engine",
"token_count": 61
} | 255 |
#!/bin/bash
set -e
# felt: a command-line utility for building and testing Flutter web engine.
# It stands for Flutter Engine Local Tester.
# TODO: Add git fetch --tags step. Tags are critical for the correct Dart
# version.
FELT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
KERNEL_NA... | engine/lib/web_ui/dev/felt/0 | {
"file_path": "engine/lib/web_ui/dev/felt",
"repo_id": "engine",
"token_count": 1171
} | 256 |
// 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 'dart:convert';
import 'dart:io' as io;
import 'package:path/path.dart' as pathlib;
// TODO(yjbanov): remove hacks when this is fixed:
// ... | engine/lib/web_ui/dev/steps/run_suite_step.dart/0 | {
"file_path": "engine/lib/web_ui/dev/steps/run_suite_step.dart",
"repo_id": "engine",
"token_count": 3052
} | 257 |
// 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 { baseUri } from "./base_uri.js";
/**
* Wraps `promise` in a timeout of the given `duration` in ms.
*
* Resolves/rejects with whatever the origi... | engine/lib/web_ui/flutter_js/src/service_worker_loader.js/0 | {
"file_path": "engine/lib/web_ui/flutter_js/src/service_worker_loader.js",
"repo_id": "engine",
"token_count": 1859
} | 258 |
// 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.
part of ui;
// For documentation see https://github.com/flutter/engine/blob/main/lib/ui/painting.dart
abstract class Path {
factory Path() => engine.re... | engine/lib/web_ui/lib/path.dart/0 | {
"file_path": "engine/lib/web_ui/lib/path.dart",
"repo_id": "engine",
"token_count": 749
} | 259 |
// 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 'dart:math' as math;
import 'package:ui/ui.dart' as ui;
import '../../engine.dart' show PlatformViewManager, longestIncreasingSubsequence;
import '... | engine/lib/web_ui/lib/src/engine/canvaskit/embedded_views.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/canvaskit/embedded_views.dart",
"repo_id": "engine",
"token_count": 11995
} | 260 |
// 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 'dart:math' as math;
import 'dart:typed_data';
import 'package:ui/ui.dart' as ui;
import '../vector_math.dart';
import 'canvaskit_api.dart';
impor... | engine/lib/web_ui/lib/src/engine/canvaskit/path.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/canvaskit/path.dart",
"repo_id": "engine",
"token_count": 3365
} | 261 |
// 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 'package:ui/src/engine.dart';
import 'package:ui/ui.dart' as ui;
enum ColorFilterType {
mode,
matrix,
linearToSrgbGamma,
srgbToLinearGamma,... | engine/lib/web_ui/lib/src/engine/color_filter.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/color_filter.dart",
"repo_id": "engine",
"token_count": 1747
} | 262 |
// 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 '../dom.dart';
DomHTMLElement _createContainer() {
final DomHTMLElement container = createDomHTMLDivElement();
container.style
..position =... | engine/lib/web_ui/lib/src/engine/html/debug_canvas_reuse_overlay.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/html/debug_canvas_reuse_overlay.dart",
"repo_id": "engine",
"token_count": 1536
} | 263 |
// 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 'package:ui/ui.dart' as ui;
import '../browser_detection.dart';
import '../dom.dart';
import '../svg.dart';
import 'path/path.dart';
import 'path/p... | engine/lib/web_ui/lib/src/engine/html/path_to_svg_clip.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/html/path_to_svg_clip.dart",
"repo_id": "engine",
"token_count": 808
} | 264 |
// 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 'dart:async';
import '../display.dart';
import '../dom.dart';
import 'bitmap_canvas.dart';
import 'dom_canvas.dart';
import 'picture.dart';
import ... | engine/lib/web_ui/lib/src/engine/html/surface_stats.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/html/surface_stats.dart",
"repo_id": "engine",
"token_count": 3986
} | 265 |
// 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.
class NotoFont {
NotoFont(this.name, this.url, {this.enabled = true});
final String name;
final String url;
/// `true` if this font is to be cons... | engine/lib/web_ui/lib/src/engine/noto_font.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/noto_font.dart",
"repo_id": "engine",
"token_count": 541
} | 266 |
// 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 'dart:async';
import 'dart:typed_data';
import '../engine.dart' show registerHotRestartListener;
import 'browser_detection.dart';
import 'dom.dart... | engine/lib/web_ui/lib/src/engine/raw_keyboard.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/raw_keyboard.dart",
"repo_id": "engine",
"token_count": 2931
} | 267 |
// 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 'package:meta/meta.dart';
import '../platform_dispatcher.dart';
import 'accessibility.dart';
import 'label_and_value.dart';
import 'semantics.dart'... | engine/lib/web_ui/lib/src/engine/semantics/live_region.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/semantics/live_region.dart",
"repo_id": "engine",
"token_count": 540
} | 268 |
// 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 'dart:js_interop';
import 'package:ui/src/engine.dart';
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
import 'package:ui/ui.dart' as ui;
... | engine/lib/web_ui/lib/src/engine/skwasm/skwasm_impl/codecs.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/skwasm/skwasm_impl/codecs.dart",
"repo_id": "engine",
"token_count": 307
} | 269 |
// 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.
@DefaultAsset('skwasm')
library skwasm_impl;
import 'dart:convert';
import 'dart:ffi';
import 'dart:typed_data';
import 'package:ui/ui.dart' as ui;
fina... | engine/lib/web_ui/lib/src/engine/skwasm/skwasm_impl/raw/raw_memory.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/skwasm/skwasm_impl/raw/raw_memory.dart",
"repo_id": "engine",
"token_count": 2721
} | 270 |
// 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.
@DefaultAsset('skwasm')
library skwasm_impl;
import 'dart:ffi';
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
final class RawTextStyle extends... | engine/lib/web_ui/lib/src/engine/skwasm/skwasm_impl/raw/text/raw_text_style.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/skwasm/skwasm_impl/raw/text/raw_text_style.dart",
"repo_id": "engine",
"token_count": 1442
} | 271 |
// 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 'dart:js_interop';
import '../dom.dart';
import 'fragmenter.dart';
import 'line_break_properties.dart';
import 'unicode_range.dart';
const Set<int... | engine/lib/web_ui/lib/src/engine/text/line_breaker.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/text/line_breaker.dart",
"repo_id": "engine",
"token_count": 8992
} | 272 |
// 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 'dart:typed_data';
import 'package:ui/ui.dart' as ui;
bool rectIsValid(ui.Rect rect) {
assert(
!(rect.left.isNaN ||
rect.right.i... | engine/lib/web_ui/lib/src/engine/validators.dart/0 | {
"file_path": "engine/lib/web_ui/lib/src/engine/validators.dart",
"repo_id": "engine",
"token_count": 638
} | 273 |
// 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.
part of ui;
// These enum values must be kept in sync with SkShader::TileMode.
enum TileMode {
clamp,
repeated,
mirror,
decal,
}
| engine/lib/web_ui/lib/tile_mode.dart/0 | {
"file_path": "engine/lib/web_ui/lib/tile_mode.dart",
"repo_id": "engine",
"token_count": 91
} | 274 |
// 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 "export.h"
#include "helpers.h"
#include "wrappers.h"
#include "third_party/skia/include/core/SkPoint3.h"
#include "third_party/skia/include/core... | engine/lib/web_ui/skwasm/canvas.cpp/0 | {
"file_path": "engine/lib/web_ui/skwasm/canvas.cpp",
"repo_id": "engine",
"token_count": 5779
} | 275 |
// 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_LIB_WEB_UI_SKWASM_SURFACE_H_
#define FLUTTER_LIB_WEB_UI_SKWASM_SURFACE_H_
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <emscr... | engine/lib/web_ui/skwasm/surface.h/0 | {
"file_path": "engine/lib/web_ui/skwasm/surface.h",
"repo_id": "engine",
"token_count": 1587
} | 276 |
// 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 'dart:js_interop';
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'com... | engine/lib/web_ui/test/canvaskit/configuration_canvaskit_variant_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/canvaskit/configuration_canvaskit_variant_test.dart",
"repo_id": "engine",
"token_count": 494
} | 277 |
// 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 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart' as ui;
impo... | engine/lib/web_ui/test/canvaskit/no_create_image_bitmap_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/canvaskit/no_create_image_bitmap_test.dart",
"repo_id": "engine",
"token_count": 981
} | 278 |
// 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 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart' as ui;
impo... | engine/lib/web_ui/test/canvaskit/text_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/canvaskit/text_test.dart",
"repo_id": "engine",
"token_count": 2084
} | 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.
@TestOn('browser')
library;
import 'package:js/js_util.dart' as js_util;
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
i... | engine/lib/web_ui/test/engine/configuration_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/engine/configuration_test.dart",
"repo_id": "engine",
"token_count": 1919
} | 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 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/ui.dart';
void main() {
internalBootstrapBrowserTest((... | engine/lib/web_ui/test/engine/locale_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/engine/locale_test.dart",
"repo_id": "engine",
"token_count": 1032
} | 281 |
// 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 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart';
import '.... | engine/lib/web_ui/test/engine/recording_canvas_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/engine/recording_canvas_test.dart",
"repo_id": "engine",
"token_count": 5694
} | 282 |
// 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 'dart:typed_data';
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'pack... | engine/lib/web_ui/test/engine/surface/filters/image_filter_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/engine/surface/filters/image_filter_test.dart",
"repo_id": "engine",
"token_count": 1174
} | 283 |
// 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.
@JS()
library dom_manager_test; // We need this to mess with the ShadowDOM.
import 'dart:js_interop';
import 'package:test/bootstrap/browser.dart';
import... | engine/lib/web_ui/test/engine/view_embedder/dom_manager_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/engine/view_embedder/dom_manager_test.dart",
"repo_id": "engine",
"token_count": 2021
} | 284 |
// 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 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart';
import 'p... | engine/lib/web_ui/test/html/canvas_winding_rule_golden_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/html/canvas_winding_rule_golden_test.dart",
"repo_id": "engine",
"token_count": 823
} | 285 |
// 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 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart';
import 'p... | engine/lib/web_ui/test/html/drawing/canvas_rect_golden_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/html/drawing/canvas_rect_golden_test.dart",
"repo_id": "engine",
"token_count": 676
} | 286 |
// 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 'dart:math' as math;
import 'package:test/bootstrap/browser.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart';
import '../..... | engine/lib/web_ui/test/html/paragraph/text_multiline_clipping_golden_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/html/paragraph/text_multiline_clipping_golden_test.dart",
"repo_id": "engine",
"token_count": 2389
} | 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.
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart'
hide BackdropFilterEngineLayer, Clip... | engine/lib/web_ui/test/html/shaders/shader_mask_golden_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/html/shaders/shader_mask_golden_test.dart",
"repo_id": "engine",
"token_count": 2849
} | 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.
// This is testing some of the named constants.
// ignore_for_file: use_named_constants
import 'package:test/bootstrap/browser.dart';
import 'package:test... | engine/lib/web_ui/test/html/text_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/html/text_test.dart",
"repo_id": "engine",
"token_count": 7633
} | 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.
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/ui.dart' as ui;
import '../common/test_initialization.da... | engine/lib/web_ui/test/ui/line_metrics_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/ui/line_metrics_test.dart",
"repo_id": "engine",
"token_count": 1697
} | 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.
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
import 'package:ui/src/engine.dart';
import '... | engine/lib/web_ui/test/ui/url_strategy_test.dart/0 | {
"file_path": "engine/lib/web_ui/test/ui/url_strategy_test.dart",
"repo_id": "engine",
"token_count": 625
} | 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/runtime/dart_snapshot.h"
#include <sstream>
#include "flutter/fml/native_library.h"
#include "flutter/fml/paths.h"
#include "flutter/fm... | engine/runtime/dart_snapshot.cc/0 | {
"file_path": "engine/runtime/dart_snapshot.cc",
"repo_id": "engine",
"token_count": 4374
} | 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.
#ifndef FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
#define FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
#include <memory>
#include <vector>
#include "flutter/assets/asse... | engine/runtime/runtime_delegate.h/0 | {
"file_path": "engine/runtime/runtime_delegate.h",
"repo_id": "engine",
"token_count": 854
} | 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.
#include "flutter/shell/common/context_options.h"
#include "flutter/common/graphics/persistent_cache.h"
namespace flutter {
GrContextOptions MakeDefault... | engine/shell/common/context_options.cc/0 | {
"file_path": "engine/shell/common/context_options.cc",
"repo_id": "engine",
"token_count": 495
} | 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.
import 'dart:async' show scheduleMicrotask;
import 'dart:convert' show json, utf8;
import 'dart:isolate';
import 'dart:typed_data';
import 'dart:ui';
void... | engine/shell/common/fixtures/shell_test.dart/0 | {
"file_path": "engine/shell/common/fixtures/shell_test.dart",
"repo_id": "engine",
"token_count": 6603
} | 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.
#ifndef FLUTTER_SHELL_COMMON_RESOURCE_CACHE_LIMIT_CALCULATOR_H_
#define FLUTTER_SHELL_COMMON_RESOURCE_CACHE_LIMIT_CALCULATOR_H_
#include <cstdint>
#includ... | engine/shell/common/resource_cache_limit_calculator.h/0 | {
"file_path": "engine/shell/common/resource_cache_limit_calculator.h",
"repo_id": "engine",
"token_count": 502
} | 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.
#ifndef FLUTTER_SHELL_COMMON_SHELL_TEST_EXTERNAL_VIEW_EMBEDDER_H_
#define FLUTTER_SHELL_COMMON_SHELL_TEST_EXTERNAL_VIEW_EMBEDDER_H_
#include "flutter/flow... | engine/shell/common/shell_test_external_view_embedder.h/0 | {
"file_path": "engine/shell/common/shell_test_external_view_embedder.h",
"repo_id": "engine",
"token_count": 1430
} | 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.
#include "flutter/shell/common/snapshot_controller_skia.h"
#include "display_list/image/dl_image.h"
#include "flutter/flow/surface.h"
#include "flutter/fm... | engine/shell/common/snapshot_controller_skia.cc/0 | {
"file_path": "engine/shell/common/snapshot_controller_skia.cc",
"repo_id": "engine",
"token_count": 2446
} | 298 |
#define FML_USED_ON_EMBEDDER
#include <initializer_list>
#include "flutter/common/settings.h"
#include "flutter/common/task_runners.h"
#include "flutter/shell/common/switches.h"
#include "gtest/gtest.h"
#include "thread_host.h"
#include "vsync_waiter.h"
namespace flutter {
namespace testing {
class TestVsyncWaiter... | engine/shell/common/vsync_waiter_unittests.cc/0 | {
"file_path": "engine/shell/common/vsync_waiter_unittests.cc",
"repo_id": "engine",
"token_count": 488
} | 299 |
// 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 <Foundation/Foundation.h>
#include <QuartzCore/QuartzCore.h>
#include "flutter/shell/gpu/gpu_surface_metal_impeller.h"
#include "gtest/gtest.h"
#... | engine/shell/gpu/gpu_surface_metal_impeller_unittests.mm/0 | {
"file_path": "engine/shell/gpu/gpu_surface_metal_impeller_unittests.mm",
"repo_id": "engine",
"token_count": 1396
} | 300 |
# 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/config/android/config.gni")
import("//build/toolchain/clang.gni")
import("//flutter/build/bin_to_obj.gni")
import("//flutter/build/zip_bundle.... | engine/shell/platform/android/BUILD.gn/0 | {
"file_path": "engine/shell/platform/android/BUILD.gn",
"repo_id": "engine",
"token_count": 12871
} | 301 |
// 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/shell/platform/android/apk_asset_provider.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace flutter {
namespace testing {
c... | engine/shell/platform/android/apk_asset_provider_unittests.cc/0 | {
"file_path": "engine/shell/platform/android/apk_asset_provider_unittests.cc",
"repo_id": "engine",
"token_count": 415
} | 302 |
// 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/shell/platform/android/image_external_texture.h"
#include <android/hardware_buffer_jni.h>
#include <android/sensor.h>
#include "flutter... | engine/shell/platform/android/image_external_texture.cc/0 | {
"file_path": "engine/shell/platform/android/image_external_texture.cc",
"repo_id": "engine",
"token_count": 1495
} | 303 |
// 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.
package io.flutter.app;
import android.app.Activity;
import android.app.Application;
import androidx.annotation.CallSuper;
import io.flutter.FlutterInject... | engine/shell/platform/android/io/flutter/app/FlutterApplication.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/app/FlutterApplication.java",
"repo_id": "engine",
"token_count": 298
} | 304 |
// 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.
package io.flutter.embedding.android;
import android.content.Context;
import android.graphics.SurfaceTexture;
import android.util.AttributeSet;
import and... | engine/shell/platform/android/io/flutter/embedding/android/FlutterTextureView.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/embedding/android/FlutterTextureView.java",
"repo_id": "engine",
"token_count": 3389
} | 305 |
// 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.
package io.flutter.embedding.engine;
import static io.flutter.Build.API_LEVELS;
import android.content.Context;
import android.content.res.AssetManager;
... | engine/shell/platform/android/io/flutter/embedding/engine/FlutterJNI.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/embedding/engine/FlutterJNI.java",
"repo_id": "engine",
"token_count": 18036
} | 306 |
// 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.
package io.flutter.embedding.engine.plugins;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Set;
public interf... | engine/shell/platform/android/io/flutter/embedding/engine/plugins/PluginRegistry.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/embedding/engine/plugins/PluginRegistry.java",
"repo_id": "engine",
"token_count": 691
} | 307 |
// 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.
package io.flutter.embedding.engine.plugins.util;
import androidx.annotation.NonNull;
import io.flutter.Log;
import io.flutter.embedding.engine.FlutterEng... | engine/shell/platform/android/io/flutter/embedding/engine/plugins/util/GeneratedPluginRegister.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/embedding/engine/plugins/util/GeneratedPluginRegister.java",
"repo_id": "engine",
"token_count": 1546
} | 308 |
// 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.
package io.flutter.embedding.engine.systemchannels;
import android.content.pm.PackageManager;
import androidx.annotation.NonNull;
import androidx.annotati... | engine/shell/platform/android/io/flutter/embedding/engine/systemchannels/ProcessTextChannel.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/embedding/engine/systemchannels/ProcessTextChannel.java",
"repo_id": "engine",
"token_count": 1885
} | 309 |
// 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.
package io.flutter.plugin.common;
import androidx.annotation.Nullable;
import java.nio.ByteBuffer;
/**
* A message encoding/decoding mechanism.
*
* <p... | engine/shell/platform/android/io/flutter/plugin/common/MessageCodec.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/plugin/common/MessageCodec.java",
"repo_id": "engine",
"token_count": 399
} | 310 |
// 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.
package io.flutter.plugin.mouse;
import static io.flutter.Build.API_LEVELS;
import android.annotation.TargetApi;
import android.view.PointerIcon;
import ... | engine/shell/platform/android/io/flutter/plugin/mouse/MouseCursorPlugin.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/plugin/mouse/MouseCursorPlugin.java",
"repo_id": "engine",
"token_count": 2322
} | 311 |
package io.flutter.plugin.platform;
import static io.flutter.Build.API_LEVELS;
import android.annotation.TargetApi;
import android.view.Surface;
import io.flutter.view.TextureRegistry.SurfaceProducer;
@TargetApi(API_LEVELS.API_29)
public class SurfaceProducerPlatformViewRenderTarget implements PlatformViewRenderTarg... | engine/shell/platform/android/io/flutter/plugin/platform/SurfaceProducerPlatformViewRenderTarget.java/0 | {
"file_path": "engine/shell/platform/android/io/flutter/plugin/platform/SurfaceProducerPlatformViewRenderTarget.java",
"repo_id": "engine",
"token_count": 441
} | 312 |
# 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/testing/testing.gni")
source_set("platform_view_android_delegate") {
sources = [
"platform_view... | engine/shell/platform/android/platform_view_android_delegate/BUILD.gn/0 | {
"file_path": "engine/shell/platform/android/platform_view_android_delegate/BUILD.gn",
"repo_id": "engine",
"token_count": 413
} | 313 |
// 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/shell/platform/android/surface_texture_external_texture.h"
#include <GLES/glext.h>
#include <utility>
#include "flutter/display_list/e... | engine/shell/platform/android/surface_texture_external_texture.cc/0 | {
"file_path": "engine/shell/platform/android/surface_texture_external_texture.cc",
"repo_id": "engine",
"token_count": 1752
} | 314 |
package io.flutter.embedding.android;
import static io.flutter.Build.API_LEVELS;
import static junit.framework.TestCase.assertEquals;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.doAnswer;
import android.annotation.TargetApi;
import android.view.KeyEvent;
import androidx.test.ext.junit.run... | engine/shell/platform/android/test/io/flutter/embedding/android/KeyChannelResponderTest.java/0 | {
"file_path": "engine/shell/platform/android/test/io/flutter/embedding/android/KeyChannelResponderTest.java",
"repo_id": "engine",
"token_count": 667
} | 315 |
// 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.
package io.flutter.embedding.engine.loader;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.j... | engine/shell/platform/android/test/io/flutter/embedding/engine/loader/ApplicationInfoLoaderTest.java/0 | {
"file_path": "engine/shell/platform/android/test/io/flutter/embedding/engine/loader/ApplicationInfoLoaderTest.java",
"repo_id": "engine",
"token_count": 2891
} | 316 |
package io.flutter.external;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import android.content.Intent;
import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.j... | engine/shell/platform/android/test/io/flutter/external/FlutterLaunchTests.java/0 | {
"file_path": "engine/shell/platform/android/test/io/flutter/external/FlutterLaunchTests.java",
"repo_id": "engine",
"token_count": 557
} | 317 |
// 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.
package io.flutter.plugin.platform;
import static android.view.WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS;
import static android.view.WindowI... | engine/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java/0 | {
"file_path": "engine/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java",
"repo_id": "engine",
"token_count": 11381
} | 318 |
// 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/shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h"
#include <memory>
#include <string>
#include "flutter/she... | engine/shell/platform/common/client_wrapper/basic_message_channel_unittests.cc/0 | {
"file_path": "engine/shell/platform/common/client_wrapper/basic_message_channel_unittests.cc",
"repo_id": "engine",
"token_count": 2126
} | 319 |
// 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_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_EVENT_STREAM_HANDLER_FUNCTIONS_H_
#define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER... | engine/shell/platform/common/client_wrapper/include/flutter/event_stream_handler_functions.h/0 | {
"file_path": "engine/shell/platform/common/client_wrapper/include/flutter/event_stream_handler_functions.h",
"repo_id": "engine",
"token_count": 915
} | 320 |
// 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 "include/flutter/plugin_registrar.h"
#include <iostream>
#include <map>
#include "binary_messenger_impl.h"
#include "include/flutter/engine_meth... | engine/shell/platform/common/client_wrapper/plugin_registrar.cc/0 | {
"file_path": "engine/shell/platform/common/client_wrapper/plugin_registrar.cc",
"repo_id": "engine",
"token_count": 545
} | 321 |
// 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_SHELL_PLATFORM_COMMON_FLUTTER_PLATFORM_NODE_DELEGATE_H_
#define FLUTTER_SHELL_PLATFORM_COMMON_FLUTTER_PLATFORM_NODE_DELEGATE_H_
#include "... | engine/shell/platform/common/flutter_platform_node_delegate.h/0 | {
"file_path": "engine/shell/platform/common/flutter_platform_node_delegate.h",
"repo_id": "engine",
"token_count": 2587
} | 322 |
// 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_SHELL_PLATFORM_COMMON_PLATFORM_PROVIDED_MENU_H_
#define FLUTTER_SHELL_PLATFORM_COMMON_PLATFORM_PROVIDED_MENU_H_
namespace flutter {
// En... | engine/shell/platform/common/platform_provided_menu.h/0 | {
"file_path": "engine/shell/platform/common/platform_provided_menu.h",
"repo_id": "engine",
"token_count": 382
} | 323 |
# 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.
declare_args() {
# Whether or not to include desktop embedding targets in the build.
enable_desktop_embeddings = true
}
| engine/shell/platform/config.gni/0 | {
"file_path": "engine/shell/platform/config.gni",
"repo_id": "engine",
"token_count": 78
} | 324 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.