Home
last modified time | relevance | path

Searched full:snippet (Results 1 – 25 of 3572) sorted by relevance

12345678910>>...143

/external/icing/icing/result/
Dsnippet-retriever_test.cc15 #include "icing/result/snippet-retriever.h"
48 #include "icing/util/snippet-helpers.h"
68 std::vector<std::string_view> GetPropertyPaths(const SnippetProto& snippet) { in GetPropertyPaths() argument
70 for (const SnippetProto::EntryProto& entry : snippet.entries()) { in GetPropertyPaths()
180 SnippetProto snippet = snippet_retriever_->RetrieveSnippet( in TEST_F() local
183 EXPECT_THAT(snippet.entries(), SizeIs(1)); in TEST_F()
184 EXPECT_THAT(snippet.entries(0).property_name(), Eq("body")); in TEST_F()
186 GetString(&document, snippet.entries(0).property_name()); in TEST_F()
187 EXPECT_THAT(GetWindows(content, snippet.entries(0)), ElementsAre("")); in TEST_F()
206 SnippetProto snippet = snippet_retriever_->RetrieveSnippet( in TEST_F() local
[all …]
/external/spdx-tools/tvloader/parser2v1/
Dparse_snippet_test.go11 // ===== Parser snippet section state change tests =====
13 // create the first snippet
19 …File{FileName: "f1.txt", FileSPDXIdentifier: "f1", Snippets: map[common.ElementID]*v2_1.Snippet{}},
20 snippet: &v2_1.Snippet{SnippetSPDXIdentifier: sid1},
22 s1 := parser.snippet
25 parser.file.Snippets[sid1] = parser.snippet
32 t.Errorf("Expected snippet %v in Snippets[s1], got %v", s1, parser.file.Snippets["s1"])
35 …t.Errorf("expected snippet ID %s in Snippets[s1], got %s", sid1, parser.file.Snippets["s1"].Snippe…
38 // now add a new snippet
47 // and a snippet should be created
[all …]
Dparse_snippet.go15 // tag for creating new snippet section
21 parser.snippet = &v2_1.Snippet{}
29 parser.file.Snippets = map[common.ElementID]*v2_1.Snippet{}
31 parser.file.Snippets[eID] = parser.snippet
33 parser.snippet.SnippetSPDXIdentifier = eID
37 parser.snippet = nil
43 parser.snippet = nil
49 // tags for snippet data
55 parser.snippet.SnippetFromFileSPDXIdentifier = deID.ElementRefID
70 if parser.snippet.Ranges == nil {
[all …]
/external/spdx-tools/tvloader/parser2v2/
Dparse_snippet_test.go11 // ===== Parser snippet section state change tests =====
13 // create the first snippet
19 …File{FileName: "f1.txt", FileSPDXIdentifier: "f1", Snippets: map[common.ElementID]*v2_2.Snippet{}},
20 snippet: &v2_2.Snippet{SnippetSPDXIdentifier: sid1},
22 s1 := parser.snippet
25 parser.file.Snippets[sid1] = parser.snippet
32 t.Errorf("Expected snippet %v in Snippets[s1], got %v", s1, parser.file.Snippets["s1"])
35 …t.Errorf("expected snippet ID %s in Snippets[s1], got %s", sid1, parser.file.Snippets["s1"].Snippe…
38 // now add a new snippet
47 // and a snippet should be created
[all …]
Dparse_snippet.go15 // tag for creating new snippet section
21 parser.snippet = &v2_2.Snippet{}
29 parser.file.Snippets = map[common.ElementID]*v2_2.Snippet{}
31 parser.file.Snippets[eID] = parser.snippet
33 parser.snippet.SnippetSPDXIdentifier = eID
37 parser.snippet = nil
43 parser.snippet = nil
49 // tags for snippet data
55 parser.snippet.SnippetFromFileSPDXIdentifier = deID.ElementRefID
70 if parser.snippet.Ranges == nil {
[all …]
/external/spdx-tools/tvloader/parser2v3/
Dparse_snippet_test.go11 // ===== Parser snippet section state change tests =====
13 // create the first snippet
19 …File{FileName: "f1.txt", FileSPDXIdentifier: "f1", Snippets: map[common.ElementID]*v2_3.Snippet{}},
20 snippet: &v2_3.Snippet{SnippetSPDXIdentifier: sid1},
22 s1 := parser.snippet
25 parser.file.Snippets[sid1] = parser.snippet
32 t.Errorf("Expected snippet %v in Snippets[s1], got %v", s1, parser.file.Snippets["s1"])
35 …t.Errorf("expected snippet ID %s in Snippets[s1], got %s", sid1, parser.file.Snippets["s1"].Snippe…
38 // now add a new snippet
47 // and a snippet should be created
[all …]
Dparse_snippet.go15 // tag for creating new snippet section
21 parser.snippet = &v2_3.Snippet{}
29 parser.file.Snippets = map[common.ElementID]*v2_3.Snippet{}
31 parser.file.Snippets[eID] = parser.snippet
33 parser.snippet.SnippetSPDXIdentifier = eID
37 parser.snippet = nil
43 parser.snippet = nil
49 // tags for snippet data
55 parser.snippet.SnippetFromFileSPDXIdentifier = deID.ElementRefID
70 if parser.snippet.Ranges == nil {
[all …]
/external/skia/tests/graphite/
DRTEffectTest.cpp28 // Create a new runtime-effect snippet. in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
33 // but this is an easy way to verify that we didn't get an unrelated snippet.) in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
34 const ShaderSnippet* snippet = dict->getEntry(snippetID); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
35 REPORTER_ASSERT(reporter, snippet); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
36 REPORTER_ASSERT(reporter, std::string_view(snippet->fName) == "RuntimeEffect"); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
38 // If we pass the same effect again, we should get the same snippet ID as before. in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
55 // Create a new runtime-effect snippet. in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
60 // but this is an easy way to verify that we didn't get an unrelated snippet.) in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
61 const ShaderSnippet* snippet = dict->getEntry(snippetID); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
62 REPORTER_ASSERT(reporter, snippet); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
[all …]
/external/mobly-snippet-lib/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/manager/
DSnippetManager.java17 package com.google.android.mobly.snippet.manager;
24 import com.google.android.mobly.snippet.Snippet;
25 import com.google.android.mobly.snippet.SnippetObjectConverter;
26 import com.google.android.mobly.snippet.event.EventSnippet;
27 import com.google.android.mobly.snippet.rpc.MethodDescriptor;
28 import com.google.android.mobly.snippet.rpc.RpcMinSdk;
29 import com.google.android.mobly.snippet.rpc.RunOnUiThread;
30 import com.google.android.mobly.snippet.schedulerpc.ScheduleRpcSnippet;
31 import com.google.android.mobly.snippet.util.Log;
32 import com.google.android.mobly.snippet.util.MainThread;
[all …]
/external/mobly-snippet-lib/examples/ex2_espresso/
DREADME.md1 # Espresso Snippet Example
6 The same approach can be used to create any snippet app that needs to access
11 To build a snippet that instruments another app, you have to create a new
13 of your existing app with the snippet code built in.
15 The snippet code cannot run from a regular test apk because it requires a custom
20 1. In the `build.gradle` file of your existing app, create a new product flavor called `snippet`.
27 snippet {}
32 1. Link against Mobly Snippet Lib in your `build.gradle` file
36 snippetCompile 'com.google.android.mobly:mobly-snippet-lib:1.4.0'
40 1. Create a new source tree called `src/snippet` where you will place the
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/iron-flex-layout/demo/
Dindex.html22 <link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
27 demo-snippet {
28 --demo-snippet-demo: {
53 <demo-snippet>
66 </demo-snippet>
69 <demo-snippet>
86 </demo-snippet>
89 <demo-snippet>
107 </demo-snippet>
110 <demo-snippet>
[all …]
/external/mobly-bundled-snippets/src/main/
DAndroidManifest.xml4 package="com.google.android.mobly.snippet.bundled">
43 android:value="com.google.android.mobly.snippet.bundled.AccountSnippet,
44 com.google.android.mobly.snippet.bundled.AudioSnippet,
45 … com.google.android.mobly.snippet.bundled.bluetooth.BluetoothAdapterSnippet,
46 … com.google.android.mobly.snippet.bundled.bluetooth.BluetoothGattClientSnippet,
47 … com.google.android.mobly.snippet.bundled.bluetooth.BluetoothGattServerSnippet,
48 … com.google.android.mobly.snippet.bundled.bluetooth.profiles.BluetoothA2dpSnippet,
49 … com.google.android.mobly.snippet.bundled.bluetooth.profiles.BluetoothHearingAidSnippet,
50 com.google.android.mobly.snippet.bundled.BluetoothLeAdvertiserSnippet,
51 com.google.android.mobly.snippet.bundled.BluetoothLeScannerSnippet,
[all …]
/external/python/mobly/mobly/controllers/android_device_lib/services/
Dsnippet_management_service.py14 """Module for the snippet management service."""
19 MISSING_SNIPPET_CLIENT_MSG = 'No snippet client is registered with name "%s".'
23 """Root error type for snippet management service."""
28 """Management service of snippet clients.
30 This service manages all the snippet clients associated with an Android
47 """Gets the snippet client managed under a given name.
50 name: string, the name of the snippet client under management.
59 """Adds a snippet client to the management.
62 name: string, the attribute name to which to attach the snippet
63 client. E.g. `name='maps'` attaches the snippet client to
[all …]
/external/spdx-tools/rdfloader/parser2v3/
Dparse_snippet_info.go15 // Snippet Information
17 …Parser2_3) getSnippetInformationFromNode2_3(node *gordfParser.Node) (si *v2_3.Snippet, err error) {
18 si = &v2_3.Snippet{}
31 // file which is associated with the snippet
45 // license info in snippet can be NONE, NOASSERTION or SimpleLicensingInfo
51 return nil, fmt.Errorf("error parsing license info in snippet: %v", err)
66 return nil, fmt.Errorf("error parsing license info in snippet: %v", err)
76 // given is the id of the file, sets the snippet to the file in parser.
77 func (parser *rdfParser2_3) setSnippetToFileWithID(snippet *v2_3.Snippet, fileID common.ElementID) … argument
79 return fmt.Errorf("snippet refers to an undefined file with ID: %s", fileID)
[all …]
Dparse_snippet_info_test.go18 // TestCase 1: invalid snippet id:
20 <spdx:Snippet rdf:about="#Snippet">
21 </spdx:Snippet>
31 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
33 </spdx:Snippet>
43 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
49 </spdx:Snippet>
59 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
63 </spdx:Snippet>
73 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
[all …]
/external/spdx-tools/rdfloader/parser2v2/
Dparse_snippet_info.go15 // Snippet Information
17 …Parser2_2) getSnippetInformationFromNode2_2(node *gordfParser.Node) (si *v2_2.Snippet, err error) {
18 si = &v2_2.Snippet{}
31 // file which is associated with the snippet
45 // license info in snippet can be NONE, NOASSERTION or SimpleLicensingInfo
51 return nil, fmt.Errorf("error parsing license info in snippet: %v", err)
66 return nil, fmt.Errorf("error parsing license info in snippet: %v", err)
76 // given is the id of the file, sets the snippet to the file in parser.
77 func (parser *rdfParser2_2) setSnippetToFileWithID(snippet *v2_2.Snippet, fileID common.ElementID) … argument
79 return fmt.Errorf("snippet refers to an undefined file with ID: %s", fileID)
[all …]
Dparse_snippet_info_test.go18 // TestCase 1: invalid snippet id:
20 <spdx:Snippet rdf:about="#Snippet">
21 </spdx:Snippet>
31 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
33 </spdx:Snippet>
43 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
49 </spdx:Snippet>
59 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
63 </spdx:Snippet>
73 <spdx:Snippet rdf:about="#SPDXRef-Snippet">
[all …]
/external/spdx-tools/spdx/v2_3/
Dsnippet.go7 // Snippet is a Snippet section of an SPDX Document for version 2.3 of the spec.
8 type Snippet struct { struct
10 // 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]"
14 // 9.2: Snippet from File SPDX Identifier
18 // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to
21 // 9.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION"
25 // 9.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION"
29 // 9.7: Snippet Comments on License
33 // 9.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
37 // 9.9: Snippet Comment
[all …]
/external/spdx-tools/spdx/v2_2/
Dsnippet.go7 // Snippet is a Snippet section of an SPDX Document for version 2.2 of the spec.
8 type Snippet struct { struct
10 // 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]"
14 // 9.2: Snippet from File SPDX Identifier
18 // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to
21 // 9.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION"
25 // 9.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION"
29 // 9.7: Snippet Comments on License
33 // 9.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
37 // 9.9: Snippet Comment
[all …]
/external/python/mobly/mobly/snippet/
Dclient_base.py14 """The JSON RPC client base for communicating with snippet servers.
50 from mobly.snippet import errors
61 """Base class for JSON RPC clients that connect to snippet servers.
66 to stop the snippet server and release all the requested resources.
69 package: str, the user-visible name of the snippet library being
80 package: str, the user-visible name of the snippet library being
97 """Initializes the snippet client to interact with the remote device.
100 1. before starting server: preparing to start the snippet server.
101 2. start server: starting the snippet server on the remote device.
102 3. make connection: making a connection to the snippet server.
[all …]
/external/spdx-tools/spdx/v2_1/
Dsnippet.go7 // Snippet is a Snippet section of an SPDX Document for version 2.1 of the spec.
8 type Snippet struct { struct
10 // 5.1: Snippet SPDX Identifier: "SPDXRef-[idstring]"
14 // 5.2: Snippet from File SPDX Identifier
18 // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to
21 // 5.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION"
25 // 5.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION"
29 // 5.7: Snippet Comments on License
33 // 5.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
37 // 5.9: Snippet Comment
[all …]
/external/python/mobly/mobly/controllers/android_device_lib/
Dsnippet_client_v2.py14 """Snippet Client V2 for Interacting with Snippet Server on Android Device."""
25 from mobly.snippet import client_base
26 from mobly.snippet import errors
28 # The package of the instrumentation runner used for mobly snippet
29 _INSTRUMENTATION_RUNNER_PACKAGE = 'com.google.android.mobly.snippet.SnippetRunner'
31 # The command template to start the snippet server
36 # The command template to stop the snippet server
66 # in the snippet server.
95 """Snippet client V2 for interacting with snippet server on Android Device.
98 mobly-snippet-lib, SnippetRunner.java.
[all …]
/external/mobly-snippet-lib/examples/ex1_standalone_app/
DREADME.md1 # Standalone Snippet App Example
3 This tutorial shows you how to create a standalone Mobly snippet app. To create
4 a snippet app that controls (instruments) another app under test, please see
11 1. Link against Mobly Snippet Lib in your `build.gradle` file
15 implementation 'com.google.android.mobly:mobly-snippet-lib:1.4.0'
19 1. Write a Java class implementing `Snippet` and add methods to trigger the
25 public class ExampleSnippet implements Snippet {
36 1. Add any classes that implement the `Snippet` interface in your
61 android:name="com.google.android.mobly.snippet.SnippetRunner"
68 1. In your Mobly python test, connect to your snippet .apk in `setup_class`
[all …]
/external/eigen/doc/
DInplaceDecomposition.dox15 <td>\snippet TutorialInplaceLU.cpp init
17 <td>\snippet TutorialInplaceLU.out init
26 <td>\snippet TutorialInplaceLU.cpp declaration
28 <td>\snippet TutorialInplaceLU.out declaration
38 <td>\snippet TutorialInplaceLU.cpp matrixLU
40 <td>\snippet TutorialInplaceLU.out matrixLU
48 <td>\snippet TutorialInplaceLU.cpp solve
50 <td>\snippet TutorialInplaceLU.out solve
62 <td>\snippet TutorialInplaceLU.cpp modifyA
64 <td>\snippet TutorialInplaceLU.out modifyA
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/paper-tabs/demo/
Dindex.html23 <link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
47 <demo-snippet>
55 </demo-snippet>
58 <demo-snippet>
72 </demo-snippet>
78 <demo-snippet>
86 </demo-snippet>
92 <demo-snippet>
100 </demo-snippet>
107 <demo-snippet>
[all …]

12345678910>>...143