Home
last modified time | relevance | path

Searched refs:R (Results 1 – 25 of 98) sorted by relevance

1234

/system/core/init/
Dtokenizer_test.cpp93 RunTest(R"(1 token\ntoken 2)", {{"1", "token\ntoken", "2"}}); in TEST()
94 RunTest(R"(1 token\rtoken 2)", {{"1", "token\rtoken", "2"}}); in TEST()
95 RunTest(R"(1 token\ttoken 2)", {{"1", "token\ttoken", "2"}}); in TEST()
96 RunTest(R"(1 token\\token 2)", {{"1", "token\\token", "2"}}); in TEST()
97 RunTest(R"(1 token\btoken 2)", {{"1", "tokenbtoken", "2"}}); in TEST()
99 RunTest(R"(1 token\n 2)", {{"1", "token\n", "2"}}); in TEST()
100 RunTest(R"(1 token\r 2)", {{"1", "token\r", "2"}}); in TEST()
101 RunTest(R"(1 token\t 2)", {{"1", "token\t", "2"}}); in TEST()
102 RunTest(R"(1 token\\ 2)", {{"1", "token\\", "2"}}); in TEST()
103 RunTest(R"(1 token\b 2)", {{"1", "tokenb", "2"}}); in TEST()
[all …]
Dueventd_parser_test.cpp77 auto ueventd_file = R"( in TEST()
102 auto ueventd_file = R"( in TEST()
128 auto ueventd_file = R"( in TEST()
144 auto ueventd_file = R"( in TEST()
172 auto ueventd_file = R"( in TEST()
189 auto ueventd_file = R"( in TEST()
198 auto ueventd_file = R"( in TEST()
206 auto ueventd_file2 = R"( in TEST()
216 auto ueventd_file = R"( in TEST()
293 auto ueventd_file = R"( in TEST()
/system/tools/aidl/tests/
Dtest_data_ping_responder.cpp26 const char kInterfaceDefinition[] = R"(
64 R"(some/path/to/output.cpp : \
79 R"(#include <android/os/IPingResponder.h>
388 R"(#ifndef AIDL_GENERATED_ANDROID_OS_I_PING_RESPONDER_H_
439 R"(#ifndef AIDL_GENERATED_ANDROID_OS_BP_PING_RESPONDER_H_
469 R"(#ifndef AIDL_GENERATED_ANDROID_OS_BN_PING_RESPONDER_H_
493 R"(#include <android/os/IPingResponder.h>
859 R"(#ifndef AIDL_GENERATED_ANDROID_OS_I_PING_RESPONDER_H_
921 R"(#ifndef AIDL_GENERATED_ANDROID_OS_BP_PING_RESPONDER_H_
957 R"(#ifndef AIDL_GENERATED_ANDROID_OS_BN_PING_RESPONDER_H_
Dtest_data_string_constants.cpp25 const char kInterfaceDefinition[] = R"(
35 R"(/*
135 R"(#ifndef AIDL_GENERATED_ANDROID_OS_I_STRING_CONSTANTS_H_
169 R"(#include <android/os/IStringConstants.h>
235 R"(/*
412 R"(#ifndef AIDL_GENERATED_ANDROID_OS_I_STRING_CONSTANTS_H_
457 R"(#include <android/os/IStringConstants.h>
Dtest_data_example_interface.cpp39 const char kInterfaceDefinition[] = R"(
74 const char kInterfaceDefinitionOutlining[] = R"(
106 R"(some/path/to/output.java : \
121 R"(/*
589 R"(/*
1109 R"(/*
1649 R"(/*
2143 R"(/*
/system/tools/sysprop/tests/
DInvalidSyspropTest.cpp30 R"(
48 R"(
54 R"(
66 R"(
79 R"(
91 R"(
104 R"(
116 R"(
129 R"(
142 R"(
[all …]
DCppGenTest.cpp30 R"(owner: Platform
105 R"(// Generated by the sysprop generator. DO NOT EDIT!
165 R"(// Generated by the sysprop generator. DO NOT EDIT!
197 R"(// Generated by the sysprop generator. DO NOT EDIT!
DTypeCheckerTest.cpp31 R"(
71 R"(
80 R"(
/system/update_engine/update_manager/
Dupdate_manager-inl.h31 template <typename R, typename... Args>
35 EvaluationContext*, State*, std::string*, R*, Args...) const, in EvaluatePolicy() argument
36 R* result, in EvaluatePolicy()
79 template <typename R, typename... Args>
82 base::Callback<void(EvalStatus status, const R& result)> callback, in OnPolicyReadyToEvaluate()
84 EvaluationContext*, State*, std::string*, R*, Args...) const, in OnPolicyReadyToEvaluate() argument
87 R result; in OnPolicyReadyToEvaluate()
98 base::Bind(&UpdateManager::OnPolicyReadyToEvaluate<R, Args...>, in OnPolicyReadyToEvaluate()
116 template <typename R, typename... ActualArgs, typename... ExpectedArgs>
119 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const, in PolicyRequest() argument
[all …]
Dupdate_manager.h81 template <typename R, typename... ActualArgs, typename... ExpectedArgs>
84 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const,
85 R* result,
96 template <typename R, typename... ActualArgs, typename... ExpectedArgs>
98 base::Callback<void(EvalStatus, const R& result)> callback,
100 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const,
129 template <typename R, typename... Args>
133 EvaluationContext*, State*, std::string*, R*, Args...) const,
134 R* result,
143 template <typename R, typename... Args>
[all …]
Dpolicy_test_utils.h57 template <typename T, typename R, typename... Args>
58 void ExpectStatus(EvalStatus expected, T method, R* result, Args... args) { in ExpectStatus()
70 template <typename T, typename R, typename... Args>
71 EvalStatus CallMethodWithContext(T method, R* result, Args... args) { in CallMethodWithContext()
79 template <typename T, typename R, typename... Args>
82 R* result, in ExpectPolicyStatus()
/system/core/adb/
Dadb_utils_test.cpp85 EXPECT_EQ(R"('')", escape_arg(""));
87 EXPECT_EQ(R"('abc')", escape_arg("abc"));
90 const std::string q = R"('\'')";
100 EXPECT_EQ(R"(' abc')", escape_arg(" abc"));
101 EXPECT_EQ(R"('"abc')", escape_arg("\"abc"));
108 EXPECT_EQ(R"('abc\abc')", escape_arg("abc\\abc"));
109 EXPECT_EQ(R"('abc(abc')", escape_arg("abc(abc"));
110 EXPECT_EQ(R"('abc)abc')", escape_arg("abc)abc"));
112 EXPECT_EQ(R"('abc ')", escape_arg("abc "));
113 EXPECT_EQ(R"('abc"')", escape_arg("abc\""));
/system/libbase/
Dtest_utils_test.cpp28 ASSERT_MATCH("foobar", R"(fo+baz?r)"); in TEST()
29 EXPECT_FATAL_FAILURE(ASSERT_MATCH("foobar", R"(foobaz)"), "regex mismatch"); in TEST()
33 ASSERT_NOT_MATCH("foobar", R"(foobaz)"); in TEST()
34 EXPECT_FATAL_FAILURE(ASSERT_NOT_MATCH("foobar", R"(foobar)"), "regex mismatch"); in TEST()
38 EXPECT_MATCH("foobar", R"(fo+baz?r)"); in TEST()
39 EXPECT_NONFATAL_FAILURE(EXPECT_MATCH("foobar", R"(foobaz)"), "regex mismatch"); in TEST()
43 EXPECT_NOT_MATCH("foobar", R"(foobaz)"); in TEST()
44 EXPECT_NONFATAL_FAILURE(EXPECT_NOT_MATCH("foobar", R"(foobar)"), "regex mismatch"); in TEST()
/system/bt/gd/common/
Dcontextual_callback.h31 template <typename R, typename... Args>
35 template <typename R, typename... Args>
36 class ContextualOnceCallback<R(Args...)> {
38 ContextualOnceCallback(common::OnceCallback<R(Args...)>&& callback, IPostableContext* context) in ContextualOnceCallback()
63 common::OnceCallback<R(Args...)> callback_;
67 template <typename R, typename... Args>
71 template <typename R, typename... Args>
72 class ContextualCallback<R(Args...)> {
74 ContextualCallback(common::Callback<R(Args...)>&& callback, IPostableContext* context) in ContextualCallback()
99 common::Callback<R(Args...)> callback_;
Dobserver_registry.h35 template <typename R, typename... T>
36 decltype(auto) Register(Callback<R(T...)> callback) { in decltype()
38 …return Bind(&SingleObserverRegistry::callback_wrapper<R, T...>, Unretained(this), session_, callba… in decltype()
46 template <typename R, typename... T>
47 void callback_wrapper(int session, Callback<R(T...)> callback, T... t) { in callback_wrapper()
60 template <typename R, typename... T>
61 decltype(auto) Register(int event_type, Callback<R(T...)> callback) { in decltype()
/system/update_engine/payload_generator/
Dpayload_properties_unittest.cc115 R"("is_delta":true,)" in TEST_F()
116 R"("metadata_signature":"",)" in TEST_F()
117 R"("metadata_size":187,)" in TEST_F()
118 R"("sha256_hex":"Rtrj9v3xXhrAi1741HAojtGxAQEOZ7mDyhzskIF4PJc=",)" in TEST_F()
119 R"("size":233,)" in TEST_F()
120 R"("source_version":"123.0.0",)" in TEST_F()
121 R"("target_version":"456.7.8",)" in TEST_F()
122 R"("version":2)" in TEST_F()
/system/tools/sysprop/
DCppGen.cpp41 R"(#include <cstdint>
49 R"(#include <cctype>
76 R"(template <typename T> constexpr bool is_vector = false;
/system/linkerconfig/
Drundiff.sh52 linkerconfig -v R -r $TMP_ROOT -t $1/stage0
56 linkerconfig -v R -r $TMP_ROOT -t $1/stage1
60 linkerconfig -v R -r $TMP_ROOT -t $1/stage2
63 linkerconfig -v R -p R -r $TMP_ROOT -t $1/product-enabled
/system/tools/aidl/
Dgenerate_cpp_unittest.cpp43 R"(package android.os;
58 R"(#ifndef AIDL_GENERATED_ANDROID_OS_BP_COMPLEX_TYPE_INTERFACE_H_
92 R"(#include <android/os/BpComplexTypeInterface.h>
407 R"(#include <android/os/BpComplexTypeInterface.h>
730 R"(#ifndef AIDL_GENERATED_ANDROID_OS_BN_COMPLEX_TYPE_INTERFACE_H_
754 R"(#include <android/os/BnComplexTypeInterface.h>
1007 R"(#include <android/os/BnComplexTypeInterface.h>
1268 R"(#ifndef AIDL_GENERATED_ANDROID_OS_I_COMPLEX_TYPE_INTERFACE_H_
1341 R"(#include <android/os/IComplexTypeInterface.h>
1355 const string kEnumAIDL = R"(package android.os;
[all …]
Dast_cpp_unittest.cpp34 R"(#ifndef HEADER_INCLUDE_GUARD_H_
63 R"(switch (var) {
79 R"(return_type ClassName::MethodName(arg 1, arg 2, arg 3) const {
148 R"(enum Foo { in TEST_F()
163 R"(enum class Foo : int32_t { in TEST_F()
204 string expected = R"(ClassName::ClassName(a, b, c) in TEST_F()
/system/linkerconfig/modules/tests/
Dnamespace_test.cc33 R"(namespace.test_namespace.isolated = false
47 R"(namespace.test_namespace.isolated = true
67 R"(namespace.test_namespace.isolated = false
/system/teeui/libteeui/src/
Dutils.cpp72 Point<pxs> R = P - Q; in pixelLineIntersect() local
73 TEEUI_LOG << " R: " << R; in pixelLineIntersect()
74 area = R.x() * R.y() * pxs(.5); in pixelLineIntersect()
75 if (R.y() > 1.0) { in pixelLineIntersect()
76 auto r = R.y() - pxs(1.0); in pixelLineIntersect()
77 area -= r * R.x() * ((r) / R.y()) * pxs(.5); in pixelLineIntersect()
/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/
DCameraActivity.java27 setContentView(R.layout.activity_camera); in onCreate()
30 .replace(R.id.container, CameraAvgFragment.newInstance()) in onCreate()
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/java/com/example/simpleperf/simpleperfexamplewithnative/
DMainActivity.java17 setContentView(R.layout.activity_main); in onCreate()
20 TextView tv = (TextView) findViewById(R.id.sample_text); in onCreate()
/system/extras/simpleperf/demo/CppApi/app/src/main/java/simpleperf/demo/cpp_api/
DMainActivity.java35 setContentView(R.layout.activity_main); in onCreate()
36 textView = findViewById(R.id.textView); in onCreate()

1234