Home
last modified time | relevance | path

Searched refs:owner (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/util/src/android/util/cts/
DCloseGuardTest.java41 ResourceOwner owner = new ResourceOwner(); in testEnabled_NotOpen() local
42 assertUnreleasedResources(owner, 0); in testEnabled_NotOpen()
47 ResourceOwner owner = new ResourceOwner(); in testEnabled_OpenNotClosed() local
48 owner.open(); in testEnabled_OpenNotClosed()
49 assertUnreleasedResources(owner, 1); in testEnabled_OpenNotClosed()
54 ResourceOwner owner = new ResourceOwner(); in testEnabled_OpenThenClosed() local
55 owner.open(); in testEnabled_OpenThenClosed()
56 owner.close(); in testEnabled_OpenThenClosed()
57 assertUnreleasedResources(owner, 0); in testEnabled_OpenThenClosed()
66 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java138 public static void putExtras(Context context, ComponentName owner, in putExtras() argument
140 putExtras(context, componentNameToKey(owner), bundleFiller); in putExtras()
144 public static void putExtras(Context context, String owner, Consumer<Bundle> bundleFiller) { in putExtras() argument
145 try (TestJournalClient client = TestJournalClient.create(context, owner)) { in putExtras() argument
191 public TestJournalClient(ContentProviderClient client, String owner) { in TestJournalClient() argument
193 mOwner = owner; in TestJournalClient()
227 static TestJournalClient create(Context context, ComponentName owner) { in create() argument
228 return create(context, componentNameToKey(owner)); in create()
232 static TestJournalClient create(Context context, String owner) { in create() argument
238 return new TestJournalClient(client, owner); in create()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarAppFocusManagerTest.java69 FocusOwnershipCallback owner = new FocusOwnershipCallback(/* assertEventThread= */ false); in setUp() local
71 mManager.requestAppFocus(activeTypes[i], owner); in setUp()
72 owner.waitForOwnershipGrantAndAssert(DEFAULT_WAIT_TIMEOUT_MS, activeTypes[i]); in setUp()
73 mManager.abandonAppFocus(owner, activeTypes[i]); in setUp()
74 owner.waitForOwnershipLossAndAssert( in setUp()
102 FocusOwnershipCallback owner = new FocusOwnershipCallback(); in testRequestAbandon() local
103 int r = mManager.requestAppFocus(APP_FOCUS_TYPE_NAVIGATION, owner); in testRequestAbandon()
105 assertThat(mManager.isOwningFocus(owner, APP_FOCUS_TYPE_NAVIGATION)).isTrue(); in testRequestAbandon()
106 mManager.abandonAppFocus(owner, APP_FOCUS_TYPE_NAVIGATION); in testRequestAbandon()
107 assertThat(mManager.isOwningFocus(owner, APP_FOCUS_TYPE_NAVIGATION)).isFalse(); in testRequestAbandon()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleLog.java134 LifecycleLogClient(ContentProviderClient client, Activity owner) { in LifecycleLogClient() argument
136 mOwner = owner.getClass().getCanonicalName(); in LifecycleLogClient()
155 static LifecycleLogClient create(Activity owner) { in create() argument
156 final ContentProviderClient client = owner.getContentResolver() in create()
161 return new LifecycleLogClient(client, owner); in create()
/cts/hostsidetests/devicepolicy/app/AccountCheck/
DAndroid.bp28 srcs: ["src-owner/**/*.java"],
49 srcs: ["src-owner/**/*.java"],
70 srcs: ["src-owner/**/*.java"],
/cts/hostsidetests/devicepolicy/app/AccountCheck/src-owner/com/android/cts/devicepolicy/accountcheck/owner/
DAdminReceiver.java16 package com.android.cts.devicepolicy.accountcheck.owner;
/cts/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java287 String owner = executeSuShellAdbCommand(1, "stat", "-c", "%U:%g", targetDir)[0]; in writeProfile() local
289 while (owner.startsWith(" ")) { in writeProfile()
290 owner = owner.substring(1); in writeProfile()
310 executeSuShellAdbCommand(0, "chown", owner, targetPath); in writeProfile()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/
DAndroid.bp16 // This allow us to have different device owner and profile owner, some APIs may behave differently
/cts/common/device-side/bedstead/dpmwrapper/
DAndroid.bp18 // device owner running on system user), but before S is shipped it should be replaced by using the
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DExternalStorageHostTest.java355 final int owner = mUsers[0]; in testMultiUserStorageIsolated() local
366 runDeviceTests(MULTIUSER_PKG, MULTIUSER_CLASS, "testCleanIsolatedStorage", owner); in testMultiUserStorageIsolated()
370 runDeviceTests(MULTIUSER_PKG, MULTIUSER_CLASS, "testWriteIsolatedStorage", owner); in testMultiUserStorageIsolated()
374 runDeviceTests(MULTIUSER_PKG, MULTIUSER_CLASS, "testReadIsolatedStorage", owner); in testMultiUserStorageIsolated()
378 runDeviceTests(MULTIUSER_PKG, MULTIUSER_CLASS, "testUserIsolation", owner); in testMultiUserStorageIsolated()
382 runDeviceTests(MULTIUSER_PKG, MULTIUSER_CLASS, "testMediaProviderUserIsolation", owner); in testMultiUserStorageIsolated()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0333/
Dlocal_poc.h193 __u8 owner; member
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestAppPrebuilt/
DREADME.md68 2. Extract CtsApkVerityTestApp\*.{apk,dm} and ask the key owner to sign
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp161 if (instance.compare(traits.owner)) { in getClient()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java662 public SimpleMultiResolutionImageReaderListener(MultiResolutionImageReader owner, in SimpleMultiResolutionImageReaderListener() argument
664 mOwner = owner; in SimpleMultiResolutionImageReaderListener()