Home
last modified time | relevance | path

Searched full:test (Results 1 – 25 of 4447) sorted by relevance

12345678910>>...178

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ProtocolBuffers_OSX.xcodeproj/xcshareddata/xcschemes/
DPerformanceTests.xcscheme41 <Test
43 </Test>
44 <Test
46 </Test>
47 <Test
49 </Test>
50 <Test
52 </Test>
53 <Test
55 </Test>
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ProtocolBuffers_iOS.xcodeproj/xcshareddata/xcschemes/
DPerformanceTests.xcscheme41 <Test
43 </Test>
44 <Test
46 </Test>
47 <Test
49 </Test>
50 <Test
52 </Test>
53 <Test
55 </Test>
[all …]
/frameworks/base/tests/net/java/android/net/util/
DDnsUtilsTest.java29 import androidx.test.filters.SmallTest;
30 import androidx.test.runner.AndroidJUnit4;
32 import org.junit.Test;
57 @Test
59 final List<DnsUtils.SortableAddress> test = Arrays.asList( in testRfc6724Comparator() local
79 Collections.sort(test, new DnsUtils.Rfc6724Comparator()); in testRfc6724Comparator()
81 for (int i = 0; i < test.size(); ++i) { in testRfc6724Comparator()
82 assertEquals(test.get(i).address, expected.get(i)); in testRfc6724Comparator()
88 @Test
90 // Test V4 address in testV4SortableAddress()
[all …]
/frameworks/base/tools/aapt2/link/
DResourceExcluder_test.cpp20 #include "test/Test.h"
22 using ::aapt::test::HasValue;
44 TEST(ResourceExcluderTest, NonMatchConfigNotExcluded) { in TEST() function
45 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
47 auto fr_config = test::ParseConfigOrDie("fr"); in TEST()
50 test::ResourceTableBuilder() in TEST()
51 .AddString("android:string/test", ResourceId{}, default_config, "default") in TEST()
52 .AddString("android:string/test", ResourceId{}, fr_config, "fr") in TEST()
58 EXPECT_THAT(table, HasValue("android:string/test", default_config)); in TEST()
59 EXPECT_THAT(table, HasValue("android:string/test", fr_config)); in TEST()
[all …]
DReferenceLinker_test.cpp19 #include "test/Test.h"
28 TEST(ReferenceLinkerTest, LinkSimpleReferences) { in TEST() function
30 test::ResourceTableBuilder() in TEST()
31 .SetPackageId("com.app.test", 0x7f) in TEST()
32 .AddReference("com.app.test:string/foo", ResourceId(0x7f020000), in TEST()
33 "com.app.test:string/bar") in TEST()
35 // Test use of local reference (w/o package name). in TEST()
36 .AddReference("com.app.test:string/bar", ResourceId(0x7f020001), in TEST()
39 .AddReference("com.app.test:string/baz", ResourceId(0x7f020002), in TEST()
44 test::ContextBuilder() in TEST()
[all …]
DNoDefaultResourceRemover_test.cpp19 #include "test/Test.h"
23 TEST(NoDefaultResourceRemoverTest, RemoveEntryWithNoDefaultAndOnlyLocales) { in TEST() function
24 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
26 test::ResourceTableBuilder() in TEST()
29 .AddSimple("android:string/foo", test::ParseConfigOrDie("en-rGB")) in TEST()
30 .AddSimple("android:string/foo", test::ParseConfigOrDie("fr-rFR")) in TEST()
31 .AddSimple("android:string/bar", test::ParseConfigOrDie("en-rGB")) in TEST()
32 .AddSimple("android:string/bar", test::ParseConfigOrDie("fr-rFR")) in TEST()
33 .AddSimple("android:string/bat", test::ParseConfigOrDie("en-rGB-xhdpi")) in TEST()
34 .AddSimple("android:string/bat", test::ParseConfigOrDie("fr-rFR-hdpi")) in TEST()
[all …]
DProductFilter_test.cpp19 #include "test/Test.h"
25 TEST(ProductFilterTest, SelectTwoProducts) { in TEST() function
26 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
28 const ConfigDescription land = test::ParseConfigOrDie("land"); in TEST()
29 const ConfigDescription port = test::ParseConfigOrDie("port"); in TEST()
33 test::ParseNameOrDie("android:string/one"), land, "", in TEST()
34 test::ValueBuilder<Id>().SetSource(Source("land/default.xml")).Build(), in TEST()
37 test::ParseNameOrDie("android:string/one"), land, "tablet", in TEST()
38 test::ValueBuilder<Id>().SetSource(Source("land/tablet.xml")).Build(), in TEST()
42 test::ParseNameOrDie("android:string/one"), port, "", in TEST()
[all …]
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp19 #include "test/Test.h"
25 TEST(TableSplitterTest, NoSplitPreferredDensity) { in TEST() function
27 test::ResourceTableBuilder() in TEST()
30 test::ParseConfigOrDie("mdpi")) in TEST()
33 test::ParseConfigOrDie("hdpi")) in TEST()
36 test::ParseConfigOrDie("xhdpi")) in TEST()
39 test::ParseConfigOrDie("xxhdpi")) in TEST()
48 EXPECT_EQ(nullptr, test::GetValueForConfig<FileReference>( in TEST()
50 test::ParseConfigOrDie("mdpi"))); in TEST()
51 EXPECT_EQ(nullptr, test::GetValueForConfig<FileReference>( in TEST()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/
Dproto_test.js31 // Test suite is written using Jasmine -- see http://jasmine.github.io/
37 // CommonJS-LoadFromFile: ../testbinary_pb proto.jspb.test
38 goog.require('proto.jspb.test.ExtendsWithMessage');
39 goog.require('proto.jspb.test.ForeignEnum');
40 goog.require('proto.jspb.test.ForeignMessage');
41 goog.require('proto.jspb.test.TestAllTypes');
42 goog.require('proto.jspb.test.TestExtendable');
43 goog.require('proto.jspb.test.extendOptionalBool');
44 goog.require('proto.jspb.test.extendOptionalBytes');
45 goog.require('proto.jspb.test.extendOptionalDouble');
[all …]
/frameworks/base/tests/HwAccelerationTest/
DAndroidManifest.xml18 package="com.android.test.hwui">
48 <category android:name="com.android.test.hwui.TEST" />
57 <category android:name="com.android.test.hwui.TEST" />
66 <category android:name="com.android.test.hwui.TEST" />
75 <category android:name="com.android.test.hwui.TEST" />
84 <category android:name="com.android.test.hwui.TEST" />
93 <category android:name="com.android.test.hwui.TEST" />
102 <category android:name="com.android.test.hwui.TEST" />
111 <category android:name="com.android.test.hwui.TEST" />
120 <category android:name="com.android.test.hwui.TEST" />
[all …]
/frameworks/base/tools/aapt2/filter/
DConfigFilter_test.cpp19 #include "test/Test.h"
23 TEST(ConfigFilterTest, EmptyFilterMatchesAnything) { in TEST() function
26 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("320dpi"))); in TEST()
27 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr"))); in TEST()
30 TEST(ConfigFilterTest, MatchesConfigWithUnrelatedAxis) { in TEST() function
32 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
34 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("320dpi"))); in TEST()
37 TEST(ConfigFilterTest, MatchesConfigWithSameValueAxis) { in TEST() function
39 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
41 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr"))); in TEST()
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java17 package android.test;
45 * @param test The test case that is being run
47 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
48 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
49 * configuring the Activity under test
52 public static void dragQuarterScreenDown(ActivityInstrumentationTestCase test) { in dragQuarterScreenDown() argument
53 dragQuarterScreenDown(test, test.getActivity()); in dragQuarterScreenDown()
58 * @param test The test case that is being run
59 * @param activity The activity that is in the foreground of the test case
61 public static void dragQuarterScreenDown(InstrumentationTestCase test, Activity activity) { in dragQuarterScreenDown() argument
[all …]
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp20 #include "test/Test.h"
35 TEST(ResourceTableTest, FailToAddResourceWithBadName) { in TEST() function
39 test::ParseNameOrDie("android:id/hey,there"), ConfigDescription{}, "", in TEST()
40 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), in TEST()
41 test::GetDiagnostics())); in TEST()
44 test::ParseNameOrDie("android:id/hey:there"), ConfigDescription{}, "", in TEST()
45 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), in TEST()
46 test::GetDiagnostics())); in TEST()
49 TEST(ResourceTableTest, AddResourceWithWeirdNameWhenAddingMangledResources) { in TEST() function
53 test::ParseNameOrDie("android:id/heythere "), ConfigDescription{}, "", in TEST()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DCompositionTest.cpp88 class CompositionTest : public testing::Test {
255 static void setupPreconditions(CompositionTest* test) { in setupPreconditions()
256 EXPECT_CALL(*test->mComposer, in setupPreconditions()
264 .setCapabilities(&test->mDefaultCapabilities) in setupPreconditions()
266 .inject(&test->mFlinger, test->mComposer); in setupPreconditions()
267 Mock::VerifyAndClear(test->mComposer); in setupPreconditions()
269 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in setupPreconditions()
271 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in setupPreconditions()
273 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)).Times(1); in setupPreconditions()
274 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)).Times(1); in setupPreconditions()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_plugin_unittest.cc33 // TODO(kenton): Share code with the versions of this test in other languages?
67 TryInsert("test.pb.h", "includes", context); in Generate()
68 TryInsert("test.pb.h", "namespace_scope", context); in Generate()
69 TryInsert("test.pb.h", "global_scope", context); in Generate()
70 TryInsert("test.pb.h", "class_scope:foo.Bar", context); in Generate()
71 TryInsert("test.pb.h", "class_scope:foo.Bar.Baz", context); in Generate()
73 TryInsert("test.pb.cc", "includes", context); in Generate()
74 TryInsert("test.pb.cc", "namespace_scope", context); in Generate()
75 TryInsert("test.pb.cc", "global_scope", context); in Generate()
78 TryInsert("test.pb.h", "field_get:foo.Bar.optInt", context); in Generate()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java38 import androidx.test.filters.SmallTest;
39 import androidx.test.runner.AndroidJUnit4;
42 import org.junit.Test;
57 @Test
59 left.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
61 right.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
69 @Test
71 left.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
73 right.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
81 @Test
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dmessage_test.js31 // Test suite is written using Jasmine -- see http://jasmine.github.io/
51 // CommonJS-LoadFromFile: test_pb proto.jspb.test
52 goog.require('proto.jspb.test.CloneExtension');
53 goog.require('proto.jspb.test.Complex');
54 goog.require('proto.jspb.test.DefaultValues');
55 goog.require('proto.jspb.test.Empty');
56 goog.require('proto.jspb.test.EnumContainer');
57 goog.require('proto.jspb.test.floatingMsgField');
58 goog.require('proto.jspb.test.FloatingPointFields');
59 goog.require('proto.jspb.test.floatingStrField');
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java50 import androidx.test.filters.SmallTest;
51 import androidx.test.runner.AndroidJUnit4;
56 import org.junit.Test;
76 @Test
102 @Test
128 @Test
153 @Test
170 @Test
172 Notification.Builder n1 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_noStyles()
173 Notification.Builder n2 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_noStyles()
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DBaseCompatActivityTest.java43 import org.junit.Test;
79 @Test
84 @Test
91 * Test that the BaseCompatActivity's content view is set to be a CarSetupWizardLayout
93 @Test
109 * Test that the BaseCompatActivity sets the back button listener to call
112 @Test
124 * Test that the BaseCompatActivity sets the secondary toolbar button listener to the default
127 @Test
139 * Test that the BaseCompatActivity sets the primary toolbar button listener to the default when
[all …]
/frameworks/base/tests/UiBench/
DAndroidManifest.xml18 package="com.android.test.uibench">
24 <uses-library android:name="android.test.runner" />
43 <category android:name="com.android.test.uibench.TEST" />
51 <category android:name="com.android.test.uibench.TEST" />
59 <category android:name="com.android.test.uibench.TEST" />
67 <category android:name="com.android.test.uibench.TEST" />
75 <category android:name="com.android.test.uibench.TEST" />
83 <category android:name="com.android.test.uibench.TEST" />
91 <category android:name="com.android.test.uibench.TEST" />
100 <category android:name="com.android.test.uibench.TEST" />
[all …]
/frameworks/base/tools/aapt2/optimize/
DVersionCollapser_test.cpp19 #include "test/Test.h"
27 test::ResourceTableBuilder builder; in BuildTableWithConfigs()
29 builder.AddSimple(name, test::ParseConfigOrDie(item)); in BuildTableWithConfigs()
34 TEST(VersionCollapserTest, CollapseVersions) { in TEST() function
36 test::ContextBuilder().SetMinSdkVersion(7).Build(); in TEST()
49 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
50 test::ParseConfigOrDie("land-v4"))); in TEST()
52 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
53 test::ParseConfigOrDie("land-v5"))); in TEST()
57 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceTest.java47 import android.platform.test.annotations.Presubmit;
56 import org.junit.Test;
110 * Test verifying that {@link BackupManagerService#MORE_DEBUG} is set to {@code false}. This is
113 @Test
120 /** Test that the constructor does not create {@link UserBackupManagerService} instances. */
121 @Test
128 /** Test that the constructor handles {@code null} parameters. */
129 @Test
140 /** Test that the constructor handles {@code null} parameters. */
141 @Test
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java35 import org.junit.Test;
87 @Test
98 @Test
100 // Test without battery level in getConnectionSummary_testSingleProfileConnectDisconnect()
101 // Set PAN profile to be connected and test connection state summary in getConnectionSummary_testSingleProfileConnectDisconnect()
105 // Set PAN profile to be disconnected and test connection state summary in getConnectionSummary_testSingleProfileConnectDisconnect()
109 // Test with battery level in getConnectionSummary_testSingleProfileConnectDisconnect()
111 // Set PAN profile to be connected and test connection state summary in getConnectionSummary_testSingleProfileConnectDisconnect()
115 // Set PAN profile to be disconnected and test connection state summary in getConnectionSummary_testSingleProfileConnectDisconnect()
119 // Test with BluetoothDevice.BATTERY_LEVEL_UNKNOWN battery level in getConnectionSummary_testSingleProfileConnectDisconnect()
[all …]
/frameworks/rs/tests/lldb/tests/
Drun_test.py17 '''This script will run one specific test.'''
47 '''This function is called before a test is executed (setup).
50 state: Test suite state collection, instance of TestState.
54 will launch the target test binary on the device and attach an
60 test could not be killed.
62 assert state.test
71 # query our test case for the remote target app it needs
74 target_name = state.test.get_bundle_target()
79 target_name = state.test.bundle_target[state.bundle_type]
84 # test case doesn't require a remote process to debug
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIntRangeManagerTest.java19 import android.test.AndroidTestCase;
20 import android.test.suitebuilder.annotation.SmallTest;
24 import org.junit.Test;
29 * Test cases for the IntRangeManager class.
82 /** Reset the object for the next test case. */
101 @Test @SmallTest
116 @Test @SmallTest
119 assertEquals("flags before test", 0, testManager.flags); in testAddSingleChannel()
121 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel()
127 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel()
[all …]

12345678910>>...178