Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java99 private void checkProfile(CamcorderProfile profile, List<Size> videoSizes) { in checkProfile() argument
104 profile.duration, in checkProfile()
105 profile.quality, in checkProfile()
106 profile.fileFormat, in checkProfile()
107 profile.videoCodec, in checkProfile()
108 profile.videoBitRate, in checkProfile()
109 profile.videoFrameRate, in checkProfile()
110 profile.videoFrameWidth, in checkProfile()
111 profile.videoFrameHeight, in checkProfile()
112 profile.audioCodec, in checkProfile()
[all …]
DMediaRecorderTest.java249 CamcorderProfile profile = CamcorderProfile.get( in testRecorderCamera() local
251 if (profile != null) { in testRecorderCamera()
252 width = profile.videoFrameWidth; in testRecorderCamera()
253 height = profile.videoFrameHeight; in testRecorderCamera()
323 CamcorderProfile profile = CamcorderProfile.get( in testRecorderMPEG2TS() local
325 if (profile != null) { in testRecorderMPEG2TS()
326 width = profile.videoFrameWidth; in testRecorderMPEG2TS()
327 height = profile.videoFrameHeight; in testRecorderMPEG2TS()
595 CamcorderProfile profile = CamcorderProfile.get( in testSetOutputFile() local
597 if (profile != null) { in testSetOutputFile()
[all …]
DMediaCodecCapabilitiesTest.java332 private boolean checkDecoder(String mime, int profile, int level) { in checkDecoder() argument
333 if (!hasDecoder(mime, profile, level)) { in checkDecoder()
335 + profile + " and level " + level); in checkDecoder()
341 private boolean hasDecoder(String mime, int profile, int level) { in hasDecoder() argument
342 return supports(mime, false /* isEncoder */, profile, level, false /* defaultOnly */); in hasDecoder()
345 private boolean hasEncoder(String mime, int profile, int level) { in hasEncoder() argument
346 return supports(mime, true /* isEncoder */, profile, level, false /* defaultOnly */); in hasEncoder()
351 private boolean checkDecodeWithDefaultPlayer(String mime, int profile, int level) { in checkDecodeWithDefaultPlayer() argument
352 if (!supports(mime, false /* isEncoder */, profile, level, true /* defaultOnly */)) { in checkDecodeWithDefaultPlayer()
360 String mime, boolean isEncoder, int profile, int level, in supports() argument
[all …]
DMediaExtractorTest.java222 int profile = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvheDtr() local
223 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtr, profile); in testDolbyVisionMediaExtractorProfileDvheDtr()
254 final int profile = trackFormat.getInteger(MediaFormat.KEY_PROFILE); in SKIP_testDolbyVisionMediaExtractorProfileDvheStn() local
255 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheStn, profile); in SKIP_testDolbyVisionMediaExtractorProfileDvheStn()
294 int profile = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvheSt() local
295 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheSt, profile); in testDolbyVisionMediaExtractorProfileDvheSt()
342 int profile = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvavSe() local
343 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvavSe, profile); in testDolbyVisionMediaExtractorProfileDvavSe()
375 final int profile = trackFormat.getInteger(MediaFormat.KEY_PROFILE); in testDolbyVisionMediaExtractorProfileDvav1() local
378 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvav110, profile); in testDolbyVisionMediaExtractorProfileDvav1()
[all …]
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java153 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_noProfileOwner_returnsNull() local
158 assertThat(RemoteDpc.profileOwner(profile.userHandle())).isNull(); in profileOwner_userHandle_noProfileOwner_returnsNull()
160 profile.remove(); in profileOwner_userHandle_noProfileOwner_returnsNull()
170 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull() local
174 sNonRemoteDpcTestApp.install(profile); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
176 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
178 assertThat(RemoteDpc.profileOwner(profile.userHandle())).isNull(); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
180 profile.remove(); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
190 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance() local
194 RemoteDpc.setAsProfileOwner(profile); in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DDataProfileTest.java46 DataProfile profile = new DataProfile.Builder() in testConstructorAndGetters() local
64 assertThat(profile.getProfileId()).isEqualTo(PROFILE_ID); in testConstructorAndGetters()
65 assertThat(profile.getApn()).isEqualTo(APN); in testConstructorAndGetters()
66 assertThat(profile.getProtocolType()).isEqualTo(PROTOCOL_TYPE); in testConstructorAndGetters()
67 assertThat(profile.getAuthType()).isEqualTo(AUTH_TYPE); in testConstructorAndGetters()
68 assertThat(profile.getUserName()).isEqualTo(USER_NAME); in testConstructorAndGetters()
69 assertThat(profile.getPassword()).isEqualTo(PASSWORD); in testConstructorAndGetters()
70 assertThat(profile.getType()).isEqualTo(TYPE); in testConstructorAndGetters()
71 assertThat(profile.isEnabled()).isEqualTo(IS_ENABLED); in testConstructorAndGetters()
72 assertThat(profile.getSupportedApnTypesBitmask()).isEqualTo(APN_BITMASK); in testConstructorAndGetters()
[all …]
DSipManagerTest.java51 for (SipProfile profile : mSipManager.getProfiles()) { in tearDown()
52 mSipManager.close(profile.getUriString()); in tearDown()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyManagerTest.java120 UserHandle profile = null; in newlyProvisionedManagedProfile_createsProfile() local
124 profile = provisionManagedProfile(params); in newlyProvisionedManagedProfile_createsProfile()
126 assertThat(profile).isNotNull(); in newlyProvisionedManagedProfile_createsProfile()
128 if (profile != null) { in newlyProvisionedManagedProfile_createsProfile()
129 TestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_createsProfile()
141 UserHandle profile = null; in newlyProvisionedManagedProfile_createsManagedProfile() local
145 profile = provisionManagedProfile(params); in newlyProvisionedManagedProfile_createsManagedProfile()
147 assertThat(sUserManager.isManagedProfile(profile.getIdentifier())).isTrue(); in newlyProvisionedManagedProfile_createsManagedProfile()
149 if (profile != null) { in newlyProvisionedManagedProfile_createsManagedProfile()
150 TestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_createsManagedProfile()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java97 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsSet() local
101 sTestApp.install(profile); in setProfileOwner_profileOwnerIsSet()
104 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsSet()
107 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isEqualTo(profileOwner); in setProfileOwner_profileOwnerIsSet()
109 profile.remove(); in setProfileOwner_profileOwnerIsSet()
117 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsAlreadySet_throwsException() local
122 sTestApp.install(profile); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
124 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
127 () -> TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME)); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
129 profile.remove(); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarBluetoothTest.java200 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() argument
202 Log.d(TAG, "Profile '" + profile + "' has connected"); in onServiceConnected()
206 sRequiredBluetoothProfiles.get(profile).mConnected = true; in onServiceConnected()
217 public void onServiceDisconnected(int profile) { in onServiceDisconnected() argument
219 Log.d(TAG, "Profile '" + profile + "' has disconnected"); in onServiceDisconnected()
223 sRequiredBluetoothProfiles.get(profile).mConnected = false; in onServiceDisconnected()
240 int profile = sRequiredBluetoothProfiles.keyAt(i); in waitForProfileConnections() local
241 mBluetoothAdapter.getProfileProxy(mContext, new ProfileServiceListener(), profile); in waitForProfileConnections()
278 int profile = sRequiredBluetoothProfiles.keyAt(i); in checkProfileConnections() local
279 String name = sRequiredBluetoothProfiles.get(profile).mName; in checkProfileConnections()
[all …]
/cts/hostsidetests/compilation/assets/
DREADME.txt1 This APK and profile file are generated from CompilationTargetActivity.java and must be
8 # Now run the app manually for a couple of minutes, look for the profile:
10 # once the profile appears and is nonempty, grab it:
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DProfileManager.java115 public boolean addProfile(PeripheralProfile profile) { in addProfile() argument
116 mProfiles.add(profile); in addProfile()
193 for(PeripheralProfile profile : mProfiles) { in getProfile()
194 if (productName.equals(profile.getProductName())) { in getProfile()
195 return profile; in getProfile()
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/
DDeviceAdminAppTest.java72 try (UserReference profile = TestApis.users().createUser() in setAsProfileOwner_isEnabled() argument
76 TestApis.packages().find(sContext.getPackageName()).installExisting(profile); in setAsProfileOwner_isEnabled()
79 profile, DeviceAdminApp.deviceAdminComponentName(sContext)); in setAsProfileOwner_isEnabled()
83 .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/media/src/android/mediav2/cts/
DEncoderProfileLevelTest.java247 int profile) { in getMinLevel() argument
258 return getMinLevelMPEG4(width, height, frameRate, bitrate, profile); in getMinLevel()
494 private int getMinLevelMPEG4(int width, int height, int frameRate, int bitrate, int profile) { in getMinLevelMPEG4() argument
496 private LevelLimitMPEG4(int profile, int level, long sampleRate, int width, in getMinLevelMPEG4() argument
498 this.profile = profile; in getMinLevelMPEG4()
507 private final int profile; in getMinLevelMPEG4() field in EncoderProfileLevelTest.LevelLimitMPEG4
544 if (((profile & (MPEG4ProfileAdvancedSimple | MPEG4ProfileSimple)) != 0) && in getMinLevelMPEG4()
545 profile != levelLimitsMPEG4.profile) continue; in getMinLevelMPEG4()
607 int profile = format.getInteger(MediaFormat.KEY_PROFILE, -1); in getAacProfile() local
609 if (aacProfile != -1 && profile != -1) { in getAacProfile()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java538 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in testRecordingFramerateLowToHigh() local
539 if (profile.videoFrameRate < minFps) { in testRecordingFramerateLowToHigh()
541 minFps = profile.videoFrameRate; in testRecordingFramerateLowToHigh()
543 if (profile.videoFrameRate > maxFps) { in testRecordingFramerateLowToHigh()
545 maxFps = profile.videoFrameRate; in testRecordingFramerateLowToHigh()
647 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in doRecordingWithDifferentPreviewSizes() local
649 Size videoSz = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in doRecordingWithDifferentPreviewSizes()
651 profile.videoFrameRate, profile.videoFrameRate); in doRecordingWithDifferentPreviewSizes()
652 if (maxVideoFrameRate < profile.videoFrameRate) { in doRecordingWithDifferentPreviewSizes()
653 maxVideoFrameRate = profile.videoFrameRate; in doRecordingWithDifferentPreviewSizes()
[all …]
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java81 public static RemoteDpc profileOwner(UserHandle profile) { in profileOwner() argument
82 if (profile == null) { in profileOwner()
86 return profileOwner(TestApis.users().find(profile)); in profileOwner()
95 public static RemoteDpc profileOwner(UserReference profile) { in profileOwner() argument
96 if (profile == null) { in profileOwner()
100 ProfileOwner profileOwner = TestApis.devicePolicy().getProfileOwner(profile); in profileOwner()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java474 CamcorderProfile profile = null; in setupCamera() local
482 profile = CamcorderProfile.get(i); in setupCamera()
486 if (j.width == profile.videoFrameWidth && in setupCamera()
487 j.height == profile.videoFrameHeight) { in setupCamera()
493 if (j.width == profile.videoFrameWidth && in setupCamera()
494 j.height == profile.videoFrameHeight) { in setupCamera()
500 param.setPreviewSize(profile.videoFrameWidth, profile.videoFrameHeight); in setupCamera()
501 param.setPictureSize(profile.videoFrameWidth, profile.videoFrameHeight); in setupCamera()
505 profile = null; in setupCamera()
522 if (profile != null) { in setupCamera()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsCallProfileTest.java234 ImsCallProfile profile = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in testGetVideoStatefromProfile() local
236 int result = ImsCallProfile.getVideoStateFromImsCallProfile(profile); in testGetVideoStatefromProfile()
246 ImsCallProfile profile = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in testGetVideoStateFromCallType() local
248 int result = ImsCallProfile.getVideoStateFromCallType(profile.getCallType()); in testGetVideoStateFromCallType()
251 profile = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in testGetVideoStateFromCallType()
253 result = ImsCallProfile.getVideoStateFromCallType(profile.getCallType()); in testGetVideoStateFromCallType()
256 profile = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in testGetVideoStateFromCallType()
258 result = ImsCallProfile.getVideoStateFromCallType(profile.getCallType()); in testGetVideoStateFromCallType()
261 profile = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in testGetVideoStateFromCallType()
263 result = ImsCallProfile.getVideoStateFromCallType(profile.getCallType()); in testGetVideoStateFromCallType()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java65 private static CamcorderProfile profile = field in MediaRecorderStressTest
90 CamcorderProfile profile = CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); in setUp() local
91 mVideoEncoder = profile.videoCodec; in setUp()
92 mAudioEncoder = profile.audioCodec; in setUp()
93 mFrameRate = profile.videoFrameRate; in setUp()
94 mVideoWidth = profile.videoFrameWidth; in setUp()
95 mVideoHeight = profile.videoFrameHeight; in setUp()
96 mBitRate = profile.videoBitRate; in setUp()
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/
DIntroActivity.java60 UserHandle profile = devicePolicyManager.createAndProvisionManagedProfile( in setupWorkProfile() local
64 if (profile == null) { in setupWorkProfile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DHidDeviceActivity.java66 public void onServiceConnected(int profile, BluetoothProfile proxy) {
67 if (profile == BluetoothProfile.HID_DEVICE) {
72 public void onServiceDisconnected(int profile) {
73 if (profile == BluetoothProfile.HID_DEVICE) {
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsPermissionToInteractTest.java220 for (UserHandle profile : mContext.getSystemService( in setAppOpOnAllProfiles()
222 if (!includeCallingProfile && profile.getIdentifier() == mContext.getUserId()) { in setAppOpOnAllProfiles()
226 final int uid = mContext.createContextAsUser(profile, /* flags= */ 0) in setAppOpOnAllProfiles()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java950 return profile(MANAGED_PROFILE_TYPE_NAME, forUser);
961 public UserReference profile(String profileType, UserType forUser) {
962 return profile(profileType, resolveUserTypeToUser(forUser));
976 public UserReference profile(String profileType) {
977 return profile(profileType, /* forUser= */ UserType.CURRENT_USER);
988 public UserReference profile(String profileType, UserReference forUser) {
997 return profile(resolvedUserType, forUser);
1008 public UserReference profile(
1065 return profile(TV_PROFILE_TYPE_NAME, forUser);
1143 UserReference profile =
[all …]
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeAudioTest.java167 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() argument
179 public void onServiceDisconnected(int profile) { in onServiceDisconnected() argument

12