/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
KeyGenerationParameters.java | 11 private int strength; field in class:KeyGenerationParameters 15 * and a strength (in bits). 18 * @param strength the size, in bits, of the keys we want to produce. 22 int strength) 25 this.strength = strength; 40 * return the bit strength for keys produced by this generator, 42 * @return the strength of the keys this generator produces (in bits). 46 return strength;
|
CipherKeyGenerator.java | 11 protected int strength; field in class:CipherKeyGenerator 22 this.strength = (param.getStrength() + 7) / 8; 32 byte[] key = new byte[strength];
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseAlgorithmParameterGenerator.java | 10 protected int strength = 1024; field in class:BaseAlgorithmParameterGenerator 13 int strength, 16 this.strength = strength;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DESedeKeyGenerator.java | 10 * initialise the key generator - if strength is set to zero 12 * strength can be 128 or 192 (or 112 or 168 if you don't count 22 this.strength = (param.getStrength() + 7) / 8; 24 if (strength == 0 || strength == (168 / 8)) 26 strength = DESedeParameters.DES_EDE_KEY_LENGTH; 28 else if (strength == (112 / 8)) 30 strength = 2 * DESedeParameters.DES_KEY_LENGTH; 32 else if (strength != DESedeParameters.DES_EDE_KEY_LENGTH 33 && strength != (2 * DESedeParameters.DES_KEY_LENGTH) [all...] |
DESKeyGenerator.java | 11 * initialise the key generator - if strength is set to zero 13 * strength can be 64 or 56 bits (if you don't count the parity bits). 22 if (strength == 0 || strength == (56 / 8)) 24 strength = DESParameters.DES_KEY_LENGTH; 26 else if (strength != DESParameters.DES_KEY_LENGTH)
|
RSAKeyPairGenerator.java | 33 // p and q values should have a length of half the strength in bits 35 int strength = param.getStrength(); local 36 int pbitlength = (strength + 1) / 2; 37 int qbitlength = strength - pbitlength; 38 int mindiffbits = strength / 3;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
AlgorithmParameterGeneratorSpi.java | 20 protected int strength = 1024; field in class:AlgorithmParameterGeneratorSpi 24 int strength, 27 if (strength < 512 || strength > 3072) 29 throw new InvalidParameterException("strength must be from 512 - 3072"); 32 if (strength <= 1024 && strength % 64 != 0) 34 throw new InvalidParameterException("strength must be a multiple of 64 below 1024 bits."); 37 if (strength > 1024 && strength % 1024 != 0 [all...] |
KeyPairGeneratorSpi.java | 23 int strength = 1024; field in class:KeyPairGeneratorSpi 34 int strength, 37 if (strength < 512 || strength > 1024 || strength % 64 != 0) 39 throw new InvalidParameterException("strength must be from 512 - 1024 and a multiple of 64"); 42 this.strength = strength; 69 pGen.init(strength, certainty, random);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
AlgorithmParameterGeneratorSpi.java | 19 protected int strength = 1024; field in class:AlgorithmParameterGeneratorSpi 24 int strength, 27 this.strength = strength; 42 this.strength = spec.getPrimeSize(); 53 pGen.init(strength, 20, random); 57 pGen.init(strength, 20, new SecureRandom());
|
KeyPairGeneratorSpi.java | 29 int strength = 1024; field in class:KeyPairGeneratorSpi 40 int strength, 43 this.strength = strength; 68 Integer paramStrength = Integers.valueOf(strength); 76 DHParameterSpec dhParams = BouncyCastleProvider.CONFIGURATION.getDHDefaultParameters(strength); 97 pGen.init(strength, certainty, random);
|
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/ |
PosterizationFilter.java | 43 * Possibly useful in cartoon styled games. Use the strength variable to lessen 56 private float strength = 1.0f; field in class:PosterizationFilter 89 material.setFloat("Strength", strength); 118 * Sets urrent strength value, i.e. influence on final image 120 public void setStrength(float strength) { 121 this.strength = strength; 123 material.setFloat("Strength", strength); [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
RSAKeyGenerationParameters.java | 17 int strength, 20 super(random, strength); 22 if (strength < 12) 24 throw new IllegalArgumentException("key strength too small");
|
/cts/tests/tests/media/src/android/media/cts/ |
BassBoostTest.java | 82 //Test case 1.0: test strength 87 short strength = mBassBoost.getRoundedStrength(); local 88 strength = (strength == TEST_STRENGTH) ? TEST_STRENGTH2 : TEST_STRENGTH; 89 mBassBoost.setStrength((short)strength); 91 // allow STRENGTH_TOLERANCE difference between set strength and rounded strength 92 assertTrue("got incorrect strength", 93 ((float)strength2 > (float)strength / STRENGTH_TOLERANCE) && 94 ((float)strength2 < (float)strength * STRENGTH_TOLERANCE)) 96 short strength = mBassBoost.getRoundedStrength(); local 119 short strength = settings.strength; local [all...] |
VirtualizerTest.java | 81 //Test case 1.0: test strength 86 short strength = mVirtualizer.getRoundedStrength(); local 87 strength = (strength == TEST_STRENGTH) ? TEST_STRENGTH2 : TEST_STRENGTH; 88 mVirtualizer.setStrength((short)strength); 90 // allow STRENGTH_TOLERANCE difference between set strength and rounded strength 91 assertTrue("got incorrect strength", 92 ((float)strength2 > (float)strength / STRENGTH_TOLERANCE) && 93 ((float)strength2 < (float)strength * STRENGTH_TOLERANCE)) 95 short strength = mVirtualizer.getRoundedStrength(); local 117 short strength = settings.strength; local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
post_filter.cpp | 189 int mbnum, strength, A_D, d1_2, d1, d2, A, B, C, D, b_size; local 220 strength = STRENGTH_tab[QP_store[mbnum]]; 233 if (d1 < -(strength << 1)) 237 else if (d1 < -strength) 239 d1 = -d1 - (strength << 1); 246 if (d1 > (strength << 1)) 250 else if (d1 > strength) 252 d1 = (strength << 1) - d1; 311 strength = STRENGTH_tab[(annex_T ? MQ_chroma_QP_table[QP_store[mbnum]] : QP_store[mbnum])]; 315 strength = STRENGTH_tab[(annex_T ? MQ_chroma_QP_table[QP_store[mbnum - nMBPerRow]] : QP_store[mbnum - nMBP (…) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
ssearch.h | 52 const char *name, const char *strength, uint32_t seed); 56 const char *name, const char *strength, uint32_t seed);
|
/frameworks/wilhelm/src/itf/ |
IBassBoost.c | 89 static SLresult IBassBoost_SetStrength(SLBassBoostItf self, SLpermille strength) 93 if ((BASSBOOST_STRENGTH_MIN > strength) || (BASSBOOST_STRENGTH_MAX < strength)) { 99 thiz->mStrength = strength; 106 android_bb_setParam(thiz->mBassBoostEffect, BASSBOOST_PARAM_STRENGTH, &strength); 126 SLpermille strength = thiz->mStrength;; local 134 android_bb_getParam(thiz->mBassBoostEffect, BASSBOOST_PARAM_STRENGTH, &strength); 139 *pStrength = strength;
|
IVirtualizer.c | 91 static SLresult IVirtualizer_SetStrength(SLVirtualizerItf self, SLpermille strength) 95 if ((VIRTUALIZER_STRENGTH_MIN > strength) || (VIRTUALIZER_STRENGTH_MAX < strength)) { 101 thiz->mStrength = strength; 108 VIRTUALIZER_PARAM_STRENGTH, &strength); 128 SLpermille strength = thiz->mStrength;; local 136 VIRTUALIZER_PARAM_STRENGTH, &strength); 141 *pStrength = strength;
|
/external/icu4c/test/intltest/ |
ssearch.h | 43 const char *name, const char *strength, uint32_t seed);
|
/frameworks/base/media/java/android/media/audiofx/ |
BassBoost.java | 55 * Is strength parameter supported by bass boost engine. Parameter ID for getParameter(). 59 * Bass boost effect strength. Parameter ID for 65 * Indicates if strength parameter is supported by the bass boost engine 113 * Indicates whether setting strength is supported. If this method returns false, only one 114 * strength is supported and the setStrength() method always rounds to that value. 115 * @return true is strength parameter is supported, false otherwise 122 * Sets the strength of the bass boost effect. If the implementation does not support per mille 123 * accuracy for setting the strength, it is allowed to round the given strength to the nearest 126 * @param strength strength of the effect. The valid range for strength strength is [0, 1000] 222 public short strength; field in class:BassBoost.Settings [all...] |
Virtualizer.java | 57 * Is strength parameter supported by virtualizer engine. Parameter ID for getParameter(). 61 * Virtualizer effect strength. Parameter ID for 67 * Indicates if strength parameter is supported by the virtualizer engine 115 * Indicates whether setting strength is supported. If this method returns false, only one 116 * strength is supported and the setStrength() method always rounds to that value. 117 * @return true is strength parameter is supported, false otherwise 124 * Sets the strength of the virtualizer effect. If the implementation does not support per mille 125 * accuracy for setting the strength, it is allowed to round the given strength to the nearest 128 * @param strength strength of the effect. The valid range for strength strength is [0, 1000] 224 public short strength; field in class:Virtualizer.Settings [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
MediaBassBoostTest.java | 119 //Test case 1.0: test strength 128 short strength = mBassBoost.getRoundedStrength(); local 129 // allow 10% difference between set strength and rounded strength 130 assertTrue(msg +": got incorrect strength", 131 ((float)strength > (float)TEST_STRENGTH * 0.9f) && 132 ((float)strength < (float)TEST_STRENGTH * 1.1f)); 134 short strength = mBassBoost.getRoundedStrength(); local 135 assertTrue(msg +": got incorrect strength", strength >= 0 && strength <= 1000) [all...] |
MediaVirtualizerTest.java | 120 //Test case 1.0: test strength 129 short strength = mVirtualizer.getRoundedStrength(); local 130 // allow 10% difference between set strength and rounded strength 131 assertTrue(msg +": got incorrect strength", 132 ((float)strength > (float)TEST_STRENGTH * 0.9f) && 133 ((float)strength < (float)TEST_STRENGTH * 1.1f)); 135 short strength = mVirtualizer.getRoundedStrength(); local 136 assertTrue(msg +": got incorrect strength", strength >= 0 && strength <= 1000) [all...] |
/external/chromium_org/third_party/mesa/src/include/VG/ |
vgext.h | 144 VG_API_CALL void VG_API_ENTRY vgParametricFilterKHR(VGImage dst,VGImage src,VGImage blur,VGfloat strength,VGfloat offsetX,VGfloat offsetY,VGbitfield filterFlags,VGPaint highlightPaint,VGPaint shadowPaint); 145 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguDropShadowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint shadowColorRGBA); 146 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGlowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint glowColorRGBA) ; 147 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguBevelKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint highlightColorRGBA,VGuint shadowColorRGBA); 148 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGradientGlowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint stopsCount,const VGfloat* glowColorRampStops); 149 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGradientBevelKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint stopsCount,const VGfloat* bevelColorRampStops); 151 typedef void (VG_API_ENTRYP PFNVGPARAMETRICFILTERKHRPROC) (VGImage dst,VGImage src,VGImage blur,VGfloat strength,VGfloat offsetX,VGfloat offsetY,VGbitfield filterFlags,VGPaint highlightPaint,VGPaint shadowPaint); 152 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUDROPSHADOWKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint shadowColorRGBA); 153 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUGLOWKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint glowColorRGBA); 154 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUBEVELKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint highlightCo (…) [all...] |
/external/mesa3d/include/VG/ |
vgext.h | 144 VG_API_CALL void VG_API_ENTRY vgParametricFilterKHR(VGImage dst,VGImage src,VGImage blur,VGfloat strength,VGfloat offsetX,VGfloat offsetY,VGbitfield filterFlags,VGPaint highlightPaint,VGPaint shadowPaint); 145 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguDropShadowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint shadowColorRGBA); 146 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGlowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint glowColorRGBA) ; 147 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguBevelKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint highlightColorRGBA,VGuint shadowColorRGBA); 148 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGradientGlowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint stopsCount,const VGfloat* glowColorRampStops); 149 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGradientBevelKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint stopsCount,const VGfloat* bevelColorRampStops); 151 typedef void (VG_API_ENTRYP PFNVGPARAMETRICFILTERKHRPROC) (VGImage dst,VGImage src,VGImage blur,VGfloat strength,VGfloat offsetX,VGfloat offsetY,VGbitfield filterFlags,VGPaint highlightPaint,VGPaint shadowPaint); 152 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUDROPSHADOWKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint shadowColorRGBA); 153 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUGLOWKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint glowColorRGBA); 154 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUBEVELKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint highlightCo (…) [all...] |