Home
last modified time | relevance | path

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

123

/cts/tests/tests/security/native/
Dutils.cpp44 int level = android::base::GetIntProperty("ro.product.first_api_level", 0); in getFirstApiLevel() local
45 if (level == 0) { in getFirstApiLevel()
46 level = android::base::GetIntProperty("ro.build.version.sdk", 0); in getFirstApiLevel()
48 if (level == 0) { in getFirstApiLevel()
51 return level; in getFirstApiLevel()
/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 …]
DMediaDrmTest.java166 for (int level : levels) { in testRequiresSecureDecoder()
168 if (!MediaDrm.isCryptoSchemeSupported(scheme, mime, level)) { in testRequiresSecureDecoder()
171 byte[] sid = drm.openSession(level); in testRequiresSecureDecoder()
175 if (level == MediaDrm.getMaxSecurityLevel()) { in testRequiresSecureDecoder()
178 supported2 = drm.requiresSecureDecoder(mime, level); in testRequiresSecureDecoder()
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.java225 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheDtr() local
226 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd30, level); in testDolbyVisionMediaExtractorProfileDvheDtr()
257 final int level = trackFormat.getInteger(MediaFormat.KEY_LEVEL); in SKIP_testDolbyVisionMediaExtractorProfileDvheStn() local
258 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60, level); in SKIP_testDolbyVisionMediaExtractorProfileDvheStn()
297 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvheSt() local
298 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60, level); in testDolbyVisionMediaExtractorProfileDvheSt()
345 int level = trackFormatForDolbyVision.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvavSe() local
346 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60, level); in testDolbyVisionMediaExtractorProfileDvavSe()
376 final int level = trackFormat.getInteger(MediaFormat.KEY_LEVEL); in testDolbyVisionMediaExtractorProfileDvav1() local
379 assertEquals(MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd30, level); in testDolbyVisionMediaExtractorProfileDvav1()
[all …]
/cts/tests/tests/libthermalndk/jni/
DNativeThermalTest.cpp64 static inline void setThermalStatusOverride(JNIEnv* env, jobject obj, int32_t level) { in setThermalStatusOverride() argument
65 env->CallVoidMethod(obj, gNativeThermalTest_thermalOverrideMethodID, level); in setThermalStatusOverride()
77 JNIEnv *env, jobject obj, int32_t level) { in testGetCurrentThermalStatus() argument
85 setThermalStatusOverride(env, obj, level); in testGetCurrentThermalStatus()
91 if (thermalStatus != static_cast<AThermalStatus>(level)) { in testGetCurrentThermalStatus()
93 thermalStatus, level); in testGetCurrentThermalStatus()
100 static jstring nativeTestGetCurrentThermalStatus(JNIEnv *env, jobject obj, jint level) { in nativeTestGetCurrentThermalStatus() argument
101 return returnJString(env, testGetCurrentThermalStatus(env, obj, static_cast<int32_t>(level))); in nativeTestGetCurrentThermalStatus()
134 for (int32_t level = ATHERMAL_STATUS_LIGHT; level <= ATHERMAL_STATUS_SHUTDOWN; level++) { in testRegisterThermalStatusListener() local
135 setThermalStatusOverride(env, obj, level); in testRegisterThermalStatusListener()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DInstallUpdateTest.java198 private void setNonChargingBatteryLevelAndWait(int level) throws Exception { in setNonChargingBatteryLevelAndWait() argument
199 setBatteryStateAndWait(/* plugged= */ false, level); in setNonChargingBatteryLevelAndWait()
208 private void setChargingBatteryLevelAndWait(int level) throws Exception { in setChargingBatteryLevelAndWait() argument
209 setBatteryStateAndWait(/* plugged= */ true, level); in setChargingBatteryLevelAndWait()
213 private void setBatteryStateAndWait(boolean plugged, int level) throws Exception { in setBatteryStateAndWait() argument
215 runShellCommand("cmd battery set -f level " + level); in setBatteryStateAndWait()
217 while (!isBatteryState(plugged, level) in setBatteryStateAndWait()
221 assertWithMessage("battery state (plugged=%s, level=%s) after %sms", plugged, level, in setBatteryStateAndWait()
223 .that(isBatteryState(plugged, level)).isTrue(); in setBatteryStateAndWait()
226 private boolean isBatteryState(boolean plugged, int level) { in isBatteryState() argument
[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/tests/tests/libthermalndk/src/android/thermal/cts/
DNativeThermalTest.java47 private native String nativeTestGetCurrentThermalStatus(int level); in nativeTestGetCurrentThermalStatus() argument
66 public void setOverrideStatus (int level) throws Exception { in setOverrideStatus() argument
67 mUiDevice.executeShellCommand("cmd thermalservice override-status " + level); in setOverrideStatus()
77 for (int level = PowerManager.THERMAL_STATUS_NONE; in testGetCurrentThermalStatus()
78 level < PowerManager.THERMAL_STATUS_SHUTDOWN; level++) { in testGetCurrentThermalStatus()
79 final String failureMessage = nativeTestGetCurrentThermalStatus(level); in testGetCurrentThermalStatus()
/cts/tests/media/src/android/mediav2/cts/
DEncoderProfileLevelTest.java273 private LevelLimitAVC(int level, int mbsPerSec, long mbs, int bitrate) { in getMinLevelAVC() argument
274 this.level = level; in getMinLevelAVC()
280 private final int level; in getMinLevelAVC() field in EncoderProfileLevelTest.LevelLimitAVC
312 return levelLimitsAVC.level; in getMinLevelAVC()
321 private LevelLimitHEVC(int level, int frameRate, long samples, int bitrate) { in getMinLevelHEVC() argument
322 this.level = level; in getMinLevelHEVC()
328 private final int level; in getMinLevelHEVC() field in EncoderProfileLevelTest.LevelLimitHEVC
360 return levelLimitsHEVC.level; in getMinLevelHEVC()
369 private LevelLimitH263(int level, int height, int width, int frameRate, in getMinLevelH263() argument
371 this.level = level; in getMinLevelH263()
[all …]
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DTapLatencyAnalyser.java90 for (float level : peakBuffer) { in scanForEdges()
91 slow = slow + (level - slow) * slowCoefficient; // low pass filter in scanForEdges()
92 fast = fast + (level - fast) * fastCoefficient; in scanForEdges()
/cts/tests/app/app/src/android/app/stubs/
DSimpleActivity.java49 public void onTrimMemory(int level) { in onTrimMemory() argument
53 data.writeInt(level); in onTrimMemory()
DTrimMemService.java46 public void onTrimMemory(int level) { in onTrimMemory() argument
50 data.writeInt(level); in onTrimMemory()
/cts/tests/app/CantSaveState1/src/com/android/test/cantsavestate2/
DCantSave1Activity.java46 public void onTrimMemory(int level) { in onTrimMemory() argument
50 data.writeInt(level); in onTrimMemory()
/cts/tests/tests/security/src/android/security/cts/
DAslrTest.java115 int level = Integer.parseInt(in.readLine().trim()); in testVaRandomize() local
117 + "greater than or equal to 2, got " + level, in testVaRandomize()
118 level >= 2); in testVaRandomize()
/cts/tests/translation/src/android/translation/cts/
DHelper.java165 public static void disableDebugLog(String level) { in disableDebugLog() argument
166 Log.d(TAG, "disableDebugLog(), set level " + level); in disableDebugLog()
167 System.setProperty(LOG_TAG, level); in disableDebugLog()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java65 public static void runDumpsysBatterySetLevel(int level) throws Exception { in runDumpsysBatterySetLevel() argument
66 SystemUtil.runShellCommandForNoOutput(("cmd battery set level " + level)); in runDumpsysBatterySetLevel()
68 Log.d(TAG, "Battery level set to " + level); in runDumpsysBatterySetLevel()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCellInfoTest.java457 int level = cdma.getLevel(); in verifyCellSignalStrengthCdma() local
458 assertTrue("getLevel() out of range [0,4], level=" + level, in verifyCellSignalStrengthCdma()
459 level >= 0 && level <= 4); in verifyCellSignalStrengthCdma()
801 int level = cellSignalStrengthLte.getLevel(); in verifyCellSignalStrengthLte() local
802 assertTrue("getLevel() out of range [0,4], level=" + level, level >= 0 && level <= 4); in verifyCellSignalStrengthLte()
938 int level = wcdma.getLevel(); in verifyCellSignalStrengthWcdma() local
939 assertTrue("getLevel() out of range [0,4], level=" + level, level >= 0 && level <= 4); in verifyCellSignalStrengthWcdma()
1038 int level = gsm.getLevel(); in verifyCellSignalStrengthGsm() local
1039 assertTrue("getLevel() out of range [0,4], level=" + level, level >= 0 && level <= 4); in verifyCellSignalStrengthGsm()
1168 int level = tdscdma.getLevel(); in verifyCellSignalStrengthTdscdma() local
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java260 if (bestTestAp == null || scanResult.level > bestTestAp.level) { in scanForTest11mcCapableAp()
293 if (bestTestAp == null || scanResult.level > bestTestAp.level) { in scanForTestNon11mcCapableAp()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAgreementTest.java176 int level = keyInfo.getSecurityLevel(); in generateEphemeralAndroidKeyPair() local
180 level == KeyProperties.SECURITY_LEVEL_TRUSTED_ENVIRONMENT || in generateEphemeralAndroidKeyPair()
181 level == KeyProperties.SECURITY_LEVEL_UNKNOWN_SECURE); in generateEphemeralAndroidKeyPair()
/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()

123