Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 54) sorted by relevance

123

/cts/tests/tests/media/src/android/media/cts/
DEnvReverbTest.java86 short level = mReverb.getRoomLevel(); in test1_0Room() local
87 level = (short)((level == 0) ? -1000 : 0); in test1_0Room()
88 mReverb.setRoomLevel(level); in test1_0Room()
91 (level2 > (level - MILLIBEL_TOLERANCE)) && in test1_0Room()
92 (level2 < (level + MILLIBEL_TOLERANCE))); in test1_0Room()
94 level = mReverb.getRoomHFLevel(); in test1_0Room()
95 level = (short)((level == 0) ? -1000 : 0); in test1_0Room()
96 mReverb.setRoomHFLevel(level); in test1_0Room()
99 (level2 > (level - MILLIBEL_TOLERANCE)) && in test1_0Room()
100 (level2 < (level + MILLIBEL_TOLERANCE))); in test1_0Room()
[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.java169 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheDtr() local
170 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd30, level); in testDolbyVisionMediaExtractorProfileDvheDtr()
199 final int level = trackFormat.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheStn() local
200 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60, level); in testDolbyVisionMediaExtractorProfileDvheStn()
238 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheSt() local
239 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60, level); in testDolbyVisionMediaExtractorProfileDvheSt()
285 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvavSe() local
286 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60, level); in testDolbyVisionMediaExtractorProfileDvavSe()
DEqualizerTest.java89 short level = mEqualizer.getBandLevel((short)0); in test1_0BandLevel() local
92 (level >= (levelRange[1] - TOLERANCE)) && in test1_0BandLevel()
93 (level <= (levelRange[1] + TOLERANCE))); in test1_0BandLevel()
/cts/tests/media/src/android/mediav2/cts/
DEncoderProfileLevelTest.java278 private LevelLimitAVC(int level, int mbsPerSec, long mbs, int bitrate) { in getMinLevelAVC() argument
279 this.level = level; in getMinLevelAVC()
285 private final int level; in getMinLevelAVC() field in EncoderProfileLevelTest.LevelLimitAVC
317 return levelLimitsAVC.level; in getMinLevelAVC()
326 private LevelLimitHEVC(int level, int frameRate, long samples, int bitrate) { in getMinLevelHEVC() argument
327 this.level = level; in getMinLevelHEVC()
333 private final int level; in getMinLevelHEVC() field in EncoderProfileLevelTest.LevelLimitHEVC
365 return levelLimitsHEVC.level; in getMinLevelHEVC()
374 private LevelLimitH263(int level, int height, int width, int frameRate, in getMinLevelH263() argument
376 this.level = level; in getMinLevelH263()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DInstallUpdateTest.java171 private void setNonChargingBatteryLevelAndWait(int level) throws Exception { in setNonChargingBatteryLevelAndWait() argument
172 setBatteryStateAndWait(/* plugged= */ false, level); in setNonChargingBatteryLevelAndWait()
181 private void setChargingBatteryLevelAndWait(int level) throws Exception { in setChargingBatteryLevelAndWait() argument
182 setBatteryStateAndWait(/* plugged= */ true, level); in setChargingBatteryLevelAndWait()
186 private void setBatteryStateAndWait(boolean plugged, int level) throws Exception { in setBatteryStateAndWait() argument
188 SystemUtil.runShellCommand("cmd battery set -f level " + level); in setBatteryStateAndWait()
190 while (!isBatteryState(plugged, level) in setBatteryStateAndWait()
196 private boolean isBatteryState(boolean plugged, int level) { in isBatteryState() argument
200 && calculateBatteryPercentage(batteryStatus) == level; in isBatteryState()
208 int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, /* defaultValue= */ -1); in calculateBatteryPercentage() local
[all …]
/cts/suite/audio_quality/lib/src/
DLog.cpp41 void Log::printf(LogLevel level, const char* fmt, ...) in printf() argument
45 FileUtil::doVprintf(level < mLogLevel, level, fmt, ap); in printf()
49 void Log::setLogLevel(LogLevel level) in setLogLevel() argument
51 mLogLevel = level; in setLogLevel()
/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryIncidentTest.java57 int level = dump.getLevel(); in verifyBatteryServiceDumpProto() local
58 assertTrue(level >= 0 && level <= scale); in verifyBatteryServiceDumpProto()
/cts/apps/OomCatcher/src/com/android/cts/oomcatcher/
DOomCatcher.java72 public void onTrimMemory(int level) { in onTrimMemory() argument
73 Log.i(LOG_TAG, "Memory trim level: " + level); in onTrimMemory()
74 switch (level) { in onTrimMemory()
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DCtsAudioClientActivity.java68 int setVolume(int stream, int level) { in setVolume() argument
72 int targetLevel = level; in setVolume()
73 if (level == -1) { in setVolume()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCellInfoTest.java424 int level = cdma.getLevel(); in verifyCellSignalStrengthCdma() local
425 assertTrue("getLevel() out of range [0,4], level=" + level, in verifyCellSignalStrengthCdma()
426 level >= 0 && level <= 4); in verifyCellSignalStrengthCdma()
732 int level = cellSignalStrengthLte.getLevel(); in verifyCellSignalStrengthLte() local
733 assertTrue("getLevel() out of range [0,4], level=" + level, level >= 0 && level <= 4); in verifyCellSignalStrengthLte()
854 int level = wcdma.getLevel(); in verifyCellSignalStrengthWcdma() local
855 assertTrue("getLevel() out of range [0,4], level=" + level, level >= 0 && level <= 4); in verifyCellSignalStrengthWcdma()
948 int level = gsm.getLevel(); in verifyCellSignalStrengthGsm() local
949 assertTrue("getLevel() out of range [0,4], level=" + level, level >= 0 && level <= 4); in verifyCellSignalStrengthGsm()
1070 int level = tdscdma.getLevel(); in verifyCellSignalStrengthTdscdma() local
[all …]
/cts/tests/app/src/android/app/cts/
DApplicationTest.java65 final int level = 2; in testOnTrimMemory() local
70 app.onTrimMemory(level); in testOnTrimMemory()
72 verify(mockCallBack2).onTrimMemory(level); in testOnTrimMemory()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBatteryUtils.java54 public static void runDumpsysBatterySetLevel(int level) throws Exception { in runDumpsysBatterySetLevel() argument
55 SystemUtil.runShellCommandForNoOutput(("cmd battery set level " + level)); in runDumpsysBatterySetLevel()
57 Log.d(TAG, "Battery level set to " + level); in runDumpsysBatterySetLevel()
/cts/tests/tests/security/src/android/security/cts/
DAslrTest.java117 int level = Integer.parseInt(in.readLine().trim()); in testVaRandomize() local
119 + "greater than or equal to 2, got " + level, in testVaRandomize()
120 level >= 2); in testVaRandomize()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java57 public static void runDumpsysBatterySetLevel(int level) throws Exception { in runDumpsysBatterySetLevel() argument
58 SystemUtil.runShellCommandForNoOutput(("cmd battery set level " + level)); in runDumpsysBatterySetLevel()
60 Log.d(TAG, "Battery level set to " + level); in runDumpsysBatterySetLevel()
/cts/suite/audio_quality/test/
DLogTest.cpp32 Log::LogLevel level = Log::Instance()->getLogLevel(); in TEST_F() local
59 Log::Instance()->setLogLevel(level); in TEST_F()
/cts/suite/audio_quality/lib/include/
DLog.h40 void printf(LogLevel level, const char* fmt, ...);
41 void setLogLevel(LogLevel level);
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DScaleDrawableTest.java362 int level = 4000; in testOnBoundsChange() local
366 mockScaleDrawable.setLevel(level); in testOnBoundsChange()
369 bounds.width() - (int) (bounds.width() * scaleWidth * (10000 - level) / 10000), in testOnBoundsChange()
370 bounds.height() - (int) (bounds.height() * scaleHeight * (10000 - level) / 10000), in testOnBoundsChange()
531 protected boolean onLevelChange(int level) { in onLevelChange() argument
533 return super.onLevelChange(level); in onLevelChange()
563 protected boolean onLevelChange(int level) { in onLevelChange() argument
564 return super.onLevelChange(level); in onLevelChange()
DDrawableWrapperTest.java455 protected boolean onLevelChange(int level) { in onLevelChange() argument
457 return super.onLevelChange(level); in onLevelChange()
484 protected boolean onLevelChange(int level) { in onLevelChange() argument
485 return super.onLevelChange(level); in onLevelChange()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java232 int level = determineHardwareLevel(device); in getBestDevice() local
237 ": level=" + level + " compute=" + compute + in getBestDevice()
240 if (level >= bestDeviceLevel && compute >= bestComputeLevel && in getBestDevice()
243 bestDeviceLevel = level; in getBestDevice()
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java94 int profile = -1, level = -1; in fixFormat() local
97 level = CodecProfileLevel.VP9Level1; in fixFormat()
100 level = CodecProfileLevel.HEVCMainTierLevel1; in fixFormat()
103 level = CodecProfileLevel.AV1Level2; in fixFormat()
112 format.setInteger(MediaFormat.KEY_LEVEL, level); in fixFormat()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyActivity.java88 public void setLevelForStream(int streamType, int level) { in setLevelForStream() argument
92 am.setStreamVolume(streamType, level, 0); in setLevelForStream()
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java227 if (bestTestAp == null || scanResult.level > bestTestAp.level) { in scanForTestAp()
/cts/tests/tests/os/assets/minijail/
Disolated-common-not-i386.policy24 # setsockopt: level==SOL_SOCKET && optname==SO_PEEK_OFF
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java103 void setBatteryState(boolean plugged, int level) throws Exception { in setBatteryState() argument
110 "cmd battery set -f level " + level).trim()); in setBatteryState()

123