Home
last modified time | relevance | path

Searched refs:TestContext (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/
Dsecure_simple_pairing.rs851 use crate::lmp::test::{sequence, TestContext};
856 fn local_p192_public_key(context: &crate::lmp::test::TestContext) -> [[u8; 16]; 3] { in local_p192_public_key()
877 let context = crate::lmp::test::TestContext::new(); in initiate_size()
892 let context = TestContext::new(); in numeric_comparison_initiator_success()
900 let context = TestContext::new(); in numeric_comparison_responder_success()
908 let context = TestContext::new(); in numeric_comparison_initiator_failure_on_initiating_side()
916 let context = TestContext::new(); in numeric_comparison_responder_failure_on_initiating_side()
924 let context = TestContext::new(); in numeric_comparison_initiator_failure_on_responding_side()
932 let context = TestContext::new(); in numeric_comparison_responder_failure_on_responding_side()
940 let context = TestContext::new(); in passkey_entry_initiator_success()
[all …]
Dencryption.rs122 use crate::lmp::test::{sequence, TestContext};
129 let context = TestContext::new(); in accept_encryption()
137 let context = TestContext::new(); in initiate_encryption()
145 let context = TestContext::new() in accept_aes_ccm_encryption_request()
157 let context = TestContext::new() in initiate_aes_ccm_encryption()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastActivityTestCase.java44 protected TestContext mContext;
55 mContext = new TestContext(getInstrumentation().getTargetContext()); in setUp()
119 public static class TestContext extends ContextWrapper { class in CellBroadcastActivityTestCase
121 private static final String TAG = TestContext.class.getSimpleName();
133 public TestContext(Context base) { in TestContext() method in CellBroadcastActivityTestCase.TestContext
202 TestContext newTestContext = new TestContext( in createConfigurationContext()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java180 TestContext testContext = new TestContext(testService); in testGetSystemService_notRegistered_delegatesToBaseContext()
205 TestContext testContext = new TestContext(testService); in testGetSystemService_registered_mutatesService()
282 TestContext baseContext = new TestContext(testService); in testCreateContextWithNewBase()
294 Context newBaseContext = new TestContext(testService); in testCreateContextWithNewBase()
301 private static class TestContext extends MockContext { class in SandboxedSdkContextUnitTest
305 private TestContext(TestService mockService) { in TestContext() method in SandboxedSdkContextUnitTest.TestContext
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProviderTestBase.java44 protected TestContext mContext;
51 mContext = new TestContext(context); in setUp()
66 class TestContext extends ContextWrapper { class in FakeContactsProviderTestBase
70 TestContext(Context base) { in TestContext() method in FakeContactsProviderTestBase.TestContext
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dcontext.py67 class TestContext(object): class
170 class RootContext(TestContext):
185 class TestCaseContext(TestContext):
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/test/
Dcontext.rs28 pub struct TestContext { struct
38 impl TestContext { argument
66 impl Context for TestContext { implementation
Dmod.rs18 pub(crate) use context::{poll, TestContext};
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java47 protected TestContext mContext;
54 mContext = spy(new TestContext()); in setUp()
178 protected TestContext getTestContext() { in getTestContext()
DTestContext.java53 public class TestContext extends MockContext { class
75 public TestContext() { in TestContext() method in TestContext
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java74 protected TestContext mTestContext;
137 static class TestContext extends RenamingDelegatingContext { class in AbstractDownloadProviderFunctionalTest
145 public TestContext(Context realContext) { in TestContext() method in AbstractDownloadProviderFunctionalTest.TestContext
194 mTestContext = new TestContext(realContext); in setUp()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DDomainSelectorBaseTest.java33 import com.android.TestContext;
84 mContext = new TestContext(); in setUp()
DDynamicRoutingControllerTest.java40 import com.android.TestContext;
78 mContext = new TestContext() { in setUp()
DSmsDomainSelectorTest.java45 import com.android.TestContext;
79 mContext = new TestContext(); in setUp()
DTelephonyDomainSelectionServiceTest.java48 import com.android.TestContext;
153 mContext = new TestContext(); in setUp()
DDataConnectionStateHelperTest.java49 import com.android.TestContext;
85 mContext = new TestContext() { in setUp()
DCrossSimRedialingControllerTest.java50 import com.android.TestContext;
90 mContext = new TestContext() { in setUp()
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs170 struct TestContext<'a> { struct
205 fn run_test(apk: &[u8], idsig: &[u8], name: &str, check: fn(TestContext)) { in run_test() argument
214 check: fn(TestContext), in run_test_with_hash() argument
228 check(TestContext { in run_test_with_hash()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerUserInstanceTest.java66 private TestContext mContext;
82 mContext = new TestContext(context); in setUp()
242 new TestContext(ApplicationProvider.getApplicationContext()) { in testHandleMultipleNotifications_onlyOneUpdateCanBeScheduledAndRun()
726 class TestContext extends ContextWrapper { class in AppsIndexerUserInstanceTest
729 TestContext(Context base) { in TestContext() method in AppsIndexerUserInstanceTest.TestContext
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestContext.java26 public final class TestContext { class
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt95 private lateinit var context: TestContext
109 private inner class TestContext(c: Context) : BroadcastInterceptingContext(c) { class in com.android.networkstack.tethering.TetheringNotificationUpdaterTest
147 context = TestContext(InstrumentationRegistry.getInstrumentation().context) in setUp()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DModelBackedDocumentsAdapterTest.java45 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY); in setUp()
DModelBackedDocumentsAdapterPrivateSpaceTest.java49 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY); in setUp()
DDirectoryAddonsAdapterTest.java56 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY); in setUp()
DDirectoryAddonsAdapterPrivateSpaceTest.java79 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY); in setUp()

12