Home
last modified time | relevance | path

Searched refs:profile (Results 1 – 25 of 100) sorted by relevance

1234

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DDataProfileTest.java55 DataProfile profile = new DataProfile.Builder() in testConstructorAndGetters() local
73 assertThat(profile.getProfileId()).isEqualTo(PROFILE_ID); in testConstructorAndGetters()
74 assertThat(profile.getApn()).isEqualTo(APN); in testConstructorAndGetters()
75 assertThat(profile.getProtocolType()).isEqualTo(PROTOCOL_TYPE); in testConstructorAndGetters()
76 assertThat(profile.getAuthType()).isEqualTo(AUTH_TYPE); in testConstructorAndGetters()
77 assertThat(profile.getUserName()).isEqualTo(USER_NAME); in testConstructorAndGetters()
78 assertThat(profile.getPassword()).isEqualTo(PASSWORD); in testConstructorAndGetters()
79 assertThat(profile.getType()).isEqualTo(TYPE); in testConstructorAndGetters()
80 assertThat(profile.isEnabled()).isEqualTo(IS_ENABLED); in testConstructorAndGetters()
81 assertThat(profile.getSupportedApnTypesBitmask()).isEqualTo(APN_BITMASK); in testConstructorAndGetters()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DCamcorderProfileTest.java119 private void checkProfile(CamcorderProfile profile, List<Size> videoSizes) { in checkProfile() argument
124 profile.duration, in checkProfile()
125 profile.quality, in checkProfile()
126 profile.fileFormat, in checkProfile()
127 profile.videoCodec, in checkProfile()
128 profile.videoBitRate, in checkProfile()
129 profile.videoFrameRate, in checkProfile()
130 profile.videoFrameWidth, in checkProfile()
131 profile.videoFrameHeight, in checkProfile()
132 profile.audioCodec, in checkProfile()
[all …]
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityVisibleBackgroundUsersTestCase.java84 runTestOnSecondaryDisplay((user, profile, displayId, instance) -> in testIsUserVisible_stoppedProfileOfBackgroundUserOnSecondaryDisplay()
86 + "on display %s", profile.id(), user.id(), displayId) in testIsUserVisible_stoppedProfileOfBackgroundUserOnSecondaryDisplay()
111 runTestOnSecondaryDisplay((user, profile, display, instance) -> { in testGetVisibleUsers_stoppedProfileOfBackgroundUserOnSecondaryDisplay() argument
118 .doesNotContain(profile.userHandle()); in testGetVisibleUsers_stoppedProfileOfBackgroundUserOnSecondaryDisplay()
145 try (UserReference profile = TestApis.users().createUser() in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() argument
151 Log.d(TAG, "profile: id=" + profile.id()); in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay()
158 Log.d(TAG, "Stopping profile " + profile.id()); profile.stop(); in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay()
159 boolean started = tryToStartVisibleBackgroundUser(profile.id(), in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay()
162 assertWithMessage("profile user (id=%s) started on display %s", profile.id(), in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay()
180 try (UserReference profile = TestApis.users().createUser() in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay() argument
[all …]
DUserVisibilityTest.java115 UserReference profile = sDeviceState.workProfile(); in testIsUserVisible_stoppedProfileOfCurrentUser() local
116 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testIsUserVisible_stoppedProfileOfCurrentUser()
117 profile.stop(); in testIsUserVisible_stoppedProfileOfCurrentUser()
119 Context context = getContextForUser(profile.userHandle().getIdentifier()); in testIsUserVisible_stoppedProfileOfCurrentUser()
123 profile.id()).that(um.isUserVisible()).isFalse(); in testIsUserVisible_stoppedProfileOfCurrentUser()
179 UserReference profile = sDeviceState.workProfile(); in testGetVisibleUsers_stoppedProfileOfCurrentUser() local
180 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
181 profile.stop(); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
183 Context context = getContextForUser(profile.userHandle().getIdentifier()); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
191 .doesNotContain(profile.userHandle()); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
DUserVisibilityTestCase.java137 try (UserReference profile = TestApis.users().createUser() in runTestOnSecondaryDisplay() argument
143 Log.d(TAG, "profile: id=" + profile.id()); in runTestOnSecondaryDisplay()
150 Log.d(TAG, "Stopping profile " + profile.id()); profile.stop(); in runTestOnSecondaryDisplay()
152 try (TestAppInstance instance = testApp.install(profile)) { in runTestOnSecondaryDisplay()
153 tester.run(user, profile, displayId, instance); in runTestOnSecondaryDisplay()
167 void run(UserReference user, UserReference profile, int displayId, in run() argument
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java151 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_noProfileOwner_returnsNull() local
156 assertThat(RemoteDpc.profileOwner(profile.userHandle())).isNull(); in profileOwner_userHandle_noProfileOwner_returnsNull()
158 profile.remove(); in profileOwner_userHandle_noProfileOwner_returnsNull()
168 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull() local
172 sNonRemoteDpcTestApp.install(profile); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
174 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
176 assertThat(RemoteDpc.profileOwner(profile.userHandle())).isNull(); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
178 profile.remove(); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
188 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance() local
192 RemoteDpc.setAsProfileOwner(profile); in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance()
[all …]
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationEndToEndTest.kt38 profile: String?,
41 ) : UiAutomationTestBase(profile, profilePermission) {
48 assumeFalse(profile == DEVICE_PROFILE_COMPUTER) in setUp()
49 assumeFalse(profile == DEVICE_PROFILE_APP_STREAMING) in setUp()
50 assumeFalse(profile == DEVICE_PROFILE_AUTOMOTIVE_PROJECTION) in setUp()
51 assumeFalse(profile == DEVICE_PROFILE_NEARBY_DEVICE_STREAMING) in setUp()
DAssociationEndToEndSingleDeviceTest.kt23 profile: String?,
26 ) : UiAutomationTestBase(profile, profilePermission) {
33 assumeFalse(profile == DEVICE_PROFILE_COMPUTER) in setUp()
34 assumeFalse(profile == DEVICE_PROFILE_APP_STREAMING) in setUp()
35 assumeFalse(profile == DEVICE_PROFILE_AUTOMOTIVE_PROJECTION) in setUp()
36 assumeFalse(profile == DEVICE_PROFILE_NEARBY_DEVICE_STREAMING) in setUp()
DAssociationEndToEndSelfManagedTest.kt32 profile: String?,
35 ) : UiAutomationTestBase(profile, profilePermission) {
43 assumeFalse(profile == null) in setUp()
44 assumeFalse(profile == DEVICE_PROFILE_WATCH) in setUp()
45 assumeFalse(profile == DEVICE_PROFILE_GLASSES) in setUp()
48 assumeFalse(profile == DEVICE_PROFILE_AUTOMOTIVE_PROJECTION) in setUp()
63 if (profile != null) { in test_userRejected()
DUiAutomationTestBase.kt70 protected val profile: String?, in <lambda>() constant in android.companion.cts.uiautomation.UiAutomationTestBase
106 profile?.let { roleName -> targetApp.removeFromHoldersOfRole(roleName) } in <lambda>()
165 if ((singleDevice || selfManaged) && profile != null) { in <lambda>()
232 if (profile != null) { in <lambda>()
315 profile?.let { setDeviceProfile(it) } in <lambda>()
362 protected fun assertIsProfileRoleHolder() = profile?.let { roleName -> in <lambda>()
413 profile -> in <lambda>() method
414 arrayOf(profile, in <lambda>()
415 DEVICE_PROFILE_TO_PERMISSION[profile]!!, in <lambda>()
416 DEVICE_PROFILE_TO_NAME[profile]!!) in <lambda>()
/cts/tests/tests/car/src/android/car/cts/
DCarBluetoothTest.java196 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() argument
198 Log.d(TAG, "Profile '" + profile + "' has connected"); in onServiceConnected()
202 sRequiredBluetoothProfiles.get(profile).mConnected = true; in onServiceConnected()
213 public void onServiceDisconnected(int profile) { in onServiceDisconnected() argument
215 Log.d(TAG, "Profile '" + profile + "' has disconnected"); in onServiceDisconnected()
219 sRequiredBluetoothProfiles.get(profile).mConnected = false; in onServiceDisconnected()
236 int profile = sRequiredBluetoothProfiles.keyAt(i); in waitForProfileConnections() local
237 mBluetoothAdapter.getProfileProxy(mContext, new ProfileServiceListener(), profile); in waitForProfileConnections()
274 int profile = sRequiredBluetoothProfiles.keyAt(i); in checkProfileConnections() local
275 String name = sRequiredBluetoothProfiles.get(profile).mName; in checkProfileConnections()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java102 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsSet() local
106 sTestApp.install(profile); in setProfileOwner_profileOwnerIsSet()
109 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsSet()
112 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isEqualTo(profileOwner); in setProfileOwner_profileOwnerIsSet()
114 profile.remove(); in setProfileOwner_profileOwnerIsSet()
123 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsAlreadySet_throwsException() local
128 sTestApp.install(profile); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
130 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
133 () -> TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME)); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
135 profile.remove(); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DBitStreamUtils.java184 public Pair<Integer, Integer> plToPair(int profile, int level) { in plToPair() argument
185 return Pair.create(profile, level); in plToPair()
273 int profile = H263ProfileBaseline; in getProfileLevel() local
274 if (ap == 1) profile = H263ProfileBackwardCompatible; in getProfileLevel()
275 if (aic == 1 && df == 1 && ss == 1 && mq == 1) profile = H263ProfileISWV2; in getProfileLevel()
276 return plToPair(profile, -1); in getProfileLevel()
369 int profile = -1; in getProfileLevel() local
371 profile = constraintSet1Flag == 1 ? AVCProfileConstrainedBaseline : in getProfileLevel()
374 profile = AVCProfileMain; in getProfileLevel()
376 profile = AVCProfileExtended; in getProfileLevel()
[all …]
/cts/hostsidetests/dexmetadata/host/
DREADME.md33 1. Create a binary profile from the text profile.
37 --create-profile-from=res/CtsDexMetadataSplitApp.prof.txt \
40 --reference-profile-file=/tmp/primary.prof \
41 --output-profile-type=app
47 Note: `--reference-profile-file` is the output. You can specify a different
52 2. Delete the existing DM file and create the DM file from the binary profile.
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothConfigTest.java80 private int checkIsProfileEnabledInList(int profile, List<Integer> supportedProfiles) { in checkIsProfileEnabledInList() argument
81 final boolean isEnabled = TestUtils.isProfileEnabled(profile); in checkIsProfileEnabledInList()
82 final boolean isSupported = supportedProfiles.contains(profile); in checkIsProfileEnabledInList()
89 + BluetoothProfile.getProfileName(profile) in checkIsProfileEnabledInList()
128 private int checkIsProfileEnabled(int profile, int adapterSupport) { in checkIsProfileEnabled() argument
129 final boolean isEnabled = TestUtils.isProfileEnabled(profile); in checkIsProfileEnabled()
137 + BluetoothProfile.getProfileName(profile) in checkIsProfileEnabled()
138 + ". Config currently return: " + TestUtils.isProfileEnabled(profile) in checkIsProfileEnabled()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_VulkanFeaturesTest.cpp48 VpProfileProperties profile { in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
53 result = vpGetInstanceProfileSupport(nullptr, &profile, &supported); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
87 vpInstanceCreateInfo.pProfile = &profile; in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
117 result = vpGetPhysicalDeviceProfileSupport(instance, devices[i], &profile, &supported); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
145 VpProfileProperties profile { in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport() local
150 result = vpGetInstanceProfileSupport(nullptr, &profile, &supported); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
184 vpInstanceCreateInfo.pProfile = &profile; in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
214 result = vpGetPhysicalDeviceProfileSupport(instance, devices[i], &profile, &supported); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
/cts/tests/media/src/android/mediav2/cts/
DEncoderHDRInfoTest.java80 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int profile, in getVideoEncoderCfgParams() argument
88 .setProfile(profile) in getVideoEncoderCfgParams()
114 int profile = Objects.requireNonNull(PROFILE_HDR10_MAP.get(mediaType), in input() local
117 profile, maxBFrame), String.format("%dkbps_%dx%d_%s_%s_%d-bframes", 512, in input()
120 profile = Objects.requireNonNull(PROFILE_HDR10_PLUS_MAP.get(mediaType), in input()
123 profile, maxBFrame), String.format("%dkbps_%dx%d_%s_%s_%d-bframes", 512, in input()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DProfileManager.java113 public boolean addProfile(PeripheralProfile profile) { in addProfile() argument
114 mProfiles.add(profile); in addProfile()
191 for(PeripheralProfile profile : mProfiles) { in getProfile()
192 if (productName.equals(profile.getProductName())) { in getProfile()
193 return profile; in getProfile()
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java524 CamcorderProfile profile = CamcorderProfile.get(cameraId, camcorderProfile); in testBasic10BitRecording() local
526 Size videoSize = new Size(profile.videoFrameWidth, in testBasic10BitRecording()
527 profile.videoFrameHeight); in testBasic10BitRecording()
533 format.setInteger(MediaFormat.KEY_BIT_RATE, profile.videoBitRate); in testBasic10BitRecording()
534 format.setInteger(MediaFormat.KEY_FRAME_RATE, profile.videoFrameRate); in testBasic10BitRecording()
575 updatePreviewSurfaceWithVideo(videoSize, profile.videoFrameRate); in testBasic10BitRecording()
597 new Range<>(profile.videoFrameRate, profile.videoFrameRate)); in testBasic10BitRecording()
645 float frameDurationMinMs = 1000.0f / profile.videoFrameRate; in testBasic10BitRecording()
867 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in testRecordingFramerateLowToHigh() local
868 if (profile.videoFrameRate < minFps) { in testRecordingFramerateLowToHigh()
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DManagedProfileTest.java85 UserHandle profile = null; in createProfile_noProfileExists_creates() local
87 profile = sUserManager.createProfile("testProfile", in createProfile_noProfileExists_creates()
90 assertThat(profile).isNotNull(); in createProfile_noProfileExists_creates()
92 if (profile != null) { in createProfile_noProfileExists_creates()
93 UserReference.of(profile).remove(); in createProfile_noProfileExists_creates()
DDevicePolicyManagementRoleHolderTest.java98 try (UserReference profile = UserReference.of( in createAndProvisionManagedProfile_roleHolderIsInWorkProfile() argument
101 Poll.forValue(() -> TestApis.packages().installedForUser(profile)) in createAndProvisionManagedProfile_roleHolderIsInWorkProfile()
139 UserHandle profile = sDevicePolicyManager.createAndProvisionManagedProfile( in profileRemoved_roleHolderReceivesBroadcast() local
142 TestApis.users().find(profile).remove(); in profileRemoved_roleHolderReceivesBroadcast()
156 try (UserReference profile = UserReference.of( in profileEntersQuietMode_roleHolderReceivesBroadcast() argument
159 profile.setQuietMode(true); in profileEntersQuietMode_roleHolderReceivesBroadcast()
174 try (UserReference profile = UserReference.of( in profileStarted_roleHolderReceivesBroadcast() argument
177 profile.setQuietMode(true); in profileStarted_roleHolderReceivesBroadcast()
179 profile.setQuietMode(false); in profileStarted_roleHolderReceivesBroadcast()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackSurroundTest.java123 for (AudioProfile profile : profiles) { in scanProfilesForEncodings()
124 log(MTAG, "scanning profiles, profile = " + profile.toString()); in scanProfilesForEncodings()
125 if (profile.getEncapsulationType() == AudioProfile.AUDIO_ENCAPSULATION_TYPE_IEC61937) { in scanProfilesForEncodings()
126 mProfileIEC61937 = profile; in scanProfilesForEncodings()
127 log(MTAG, "mProfileIEC61937 set to " + profile); in scanProfilesForEncodings()
130 switch (profile.getFormat()) { in scanProfilesForEncodings()
132 mProfilePCM16 = profile; in scanProfilesForEncodings()
133 log(MTAG, "mProfilePCM16 set to " + profile); in scanProfilesForEncodings()
136 mProfileAC3 = profile; in scanProfilesForEncodings()
137 log(MTAG, "mProfileAC3 set to " + profile); in scanProfilesForEncodings()
[all …]
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/
DDeviceAdminAppTest.java75 try (UserReference profile = TestApis.users().createUser() in setAsProfileOwner_isEnabled() argument
79 TestApis.packages().find(sContext.getPackageName()).installExisting(profile); in setAsProfileOwner_isEnabled()
82 profile, DeviceAdminApp.deviceAdminComponentName(sContext)); in setAsProfileOwner_isEnabled()
86 .onUser(profile); in setAsProfileOwner_isEnabled()
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/testdata/
DREADME.md1 How to generate dex metadata (.dm) with profile for testing
4 adb shell profman --generate-test-profile=/data/local/tmp/primary.prof
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsCallSessionImpl.java76 public TestImsCallSessionImpl(ImsCallProfile profile) { in TestImsCallSessionImpl() argument
77 mCallProfile = profile; in TestImsCallSessionImpl()
118 public void start(String callee, ImsCallProfile profile) { in start() argument
120 mLocalCallProfile = profile; in start()
165 ImsCallProfile profile = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in startInternal() local
167 mCallProfile.updateMediaProfile(profile); in startInternal()
227 public void accept(int callType, ImsStreamMediaProfile profile) { in accept() argument
337 public void hold(ImsStreamMediaProfile profile) { in hold() argument
339 holdFailed(profile); in hold()
341 int audioDirection = profile.getAudioDirection(); in hold()
[all …]

1234