/external/qemu/distrib/sdl-1.2.15/src/audio/sun/ |
SDL_sunaudio.c | 51 static int DSP_OpenAudio(_THIS, SDL_AudioSpec *spec); 166 /* Assuming that this->spec.freq >= 8000 Hz */ 171 incr = this->spec.freq/8; 217 if ( write(audio_fd, mixbuf, this->spec.size) < 0 ) { 243 int DSP_OpenAudio(_THIS, SDL_AudioSpec *spec) 249 int desired_freq = spec->freq; 257 switch ( spec->format & 0xFF ) { 260 spec->format = AUDIO_U8; 268 spec->format = AUDIO_S16SYS; 280 audio_fmt = spec->format [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
TranslatorHLSL.cpp | 11 TranslatorHLSL::TranslatorHLSL(ShShaderType type, ShShaderSpec spec) 12 : TCompiler(type, spec)
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
DHGenParameterSpec.java | 18 package javax.crypto.spec; 20 import java.security.spec.AlgorithmParameterSpec;
|
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
AlgorithmParametersTestDES.java | 16 package libcore.javax.crypto.spec; 18 import javax.crypto.spec.IvParameterSpec;
|
AlgorithmParametersTestDESede.java | 16 package libcore.javax.crypto.spec; 18 import javax.crypto.spec.IvParameterSpec;
|
/libcore/luni/src/test/java/tests/security/spec/ |
ECGenParameterSpecTest.java | 23 package tests.security.spec; 27 import java.security.spec.ECGenParameterSpec;
|
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/ |
MyKeyManagerFactorySpi.java | 51 protected void engineInit(ManagerFactoryParameters spec) 53 if (spec == null) { 56 if (spec instanceof Parameters) { 58 engineInit(((Parameters)spec).getKeyStore(), 59 ((Parameters)spec).getPassword());
|
/external/chromium/googleurl/src/ |
url_file.h | 55 inline int FindNextSlash(const CHAR* spec, int begin_index, int spec_len) { 57 while (idx < spec_len && !IsURLSlash(spec[idx])) 64 // Returns true if the start_offset in the given spec looks like it begins a 65 // drive spec, for example "c:". This function explicitly handles start_offset 68 // If this returns true, the spec is guaranteed to have a valid drive letter 71 inline bool DoesBeginWindowsDriveSpec(const CHAR* spec, int start_offset, 76 if (!IsWindowsDriveLetter(spec[start_offset])) 78 if (!IsWindowsDriveSeparator(spec[start_offset + 1]))
|
url_canon_ip.cc | 58 bool DoFindIPv4Components(const CHAR* spec, 68 if (i >= end || spec[i] == '.') { 91 if (spec[i] == '.' && i + 1 == end) 95 } else if (static_cast<UCHAR>(spec[i]) >= 0x80 || 96 !IsIPv4Char(static_cast<unsigned char>(spec[i]))) { 120 const CHAR* spec, 126 if (spec[component.begin] == '0') { 130 } else if (spec[component.begin + 1] == 'X' || 131 spec[component.begin + 1] == 'x') { 144 spec[component.begin + base_prefix_len] == '0' [all...] |
url_parse_file.cc | 76 void DoParseUNC(const CHAR* spec, 80 int next_slash = FindNextSlash(spec, after_slashes, spec_len); 97 if (DoesBeginWindowsDriveSpec(spec, next_slash + 1, spec_len)) { 99 ParsePathInternal(spec, MakeRange(next_slash, spec_len), 116 ParsePathInternal(spec, MakeRange(next_slash, spec_len), 128 void DoParseLocalFile(const CHAR* spec, 133 ParsePathInternal(spec, MakeRange(path_begin, spec_len), 138 // We are handed the character after the "file:" at the beginning of the spec. 141 void DoParseFileURL(const CHAR* spec, int spec_len, Parsed* parsed) { 156 TrimURL(spec, &begin, &spec_len) [all...] |
url_parse_internal.h | 53 // in the input string (so the string starts at character |*begin| in the spec, 56 inline void TrimURL(const CHAR* spec, int* begin, int* len) { 58 while (*begin < *len && ShouldTrimFromURL(spec[*begin])) 63 while (*len > *begin && ShouldTrimFromURL(spec[*len - 1])) 86 void ParsePathInternal(const char* spec, 91 void ParsePathInternal(const char16* spec, 98 // Given a spec and a pointer to the character after the colon following the 101 void ParseAfterScheme(const char* spec, 105 void ParseAfterScheme(const char16* spec,
|
url_canon_query.cc | 55 // This is more conformant to the URL spec, and there do not seem to be many 70 bool IsAllASCII(const CHAR* spec, const url_parse::Component& query) { 73 if (static_cast<UCHAR>(spec[i]) >= 0x80) 96 void RunConverter(const char* spec, 103 ConvertUTF8ToUTF16(&spec[query.begin], query.len, &utf16); 110 void RunConverter(const char16* spec, 114 converter->ConvertFromUTF16(&spec[query.begin], query.len, output); 118 void DoConvertToQueryEncoding(const CHAR* spec, 122 if (IsAllASCII<CHAR, UCHAR>(spec, query)) { 124 AppendRaw8BitQueryString(&spec[query.begin], query.len, output) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/dmedia/ |
SDL_irixaudio.c | 48 static int AL_OpenAudio(_THIS, SDL_AudioSpec *spec); 109 timeleft = this->spec.samples - alGetFillable(audio_port); 111 timeleft /= (this->spec.freq/1000); 119 if ( alWriteFrames(audio_port, mixbuf, this->spec.samples) < 0 ) { 142 static int AL_OpenAudio(_THIS, SDL_AudioSpec * spec) 144 Uint16 test_format = SDL_FirstAudioFormat(spec->format); 153 audio_param[1] = spec->freq; 160 audio_param.value.i = spec->freq; 167 spec->format = test_format; 190 if (alSetChannels(audio_config, spec->channels) < 0) [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
TrustManagerFactorySpiImpl.java | 15 private static ManagerFactoryParameters spec = null; field in class:TrustManagerFactorySpiImpl 22 public void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException { 24 this.spec = spec; 50 return spec;
|
/frameworks/base/keystore/tests/src/android/security/ |
KeyPairGeneratorSpecTest.java | 42 KeyPairGeneratorSpec spec = local 46 assertEquals("Context should be the one specified", getContext(), spec.getContext()); 48 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); 50 assertEquals("subjectDN should be the one specified", TEST_DN_1, spec.getSubjectDN()); 52 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); 54 assertEquals("endDate should be the one specified", NOW_PLUS_10_YEARS, spec.getEndDate()); 58 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) local 67 assertEquals("Context should be the one specified", getContext(), spec.getContext()); 69 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); 71 assertEquals("subjectDN should be the one specified", TEST_DN_1, spec.getSubjectDN()) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/dma/ |
SDL_dmaaudio.c | 63 static int DMA_OpenAudio(_THIS, SDL_AudioSpec *spec); 187 frame_ticks = (float)(this->spec->samples*1000) / 188 this->spec->freq; 233 playing = info.ptr / this->spec.size; 235 return (dma_buf + (filling * this->spec.size)); 251 SDL_AudioSpec *spec) 265 SDL_CalculateAudioSpec(spec); 268 for ( frag_spec = 0; (0x01<<frag_spec) < spec->size; ++frag_spec ); 269 if ( (0x01<<frag_spec) != spec->size ) { 276 SDL_SetError("Couldn't set audio fragment spec"); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/mint/ |
SDL_mintaudio_dma8.c | 67 static int Mint_OpenAudio(_THIS, SDL_AudioSpec *spec); 72 static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec); 198 static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec) 203 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff)); 204 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 205 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); 206 DEBUG_PRINT(("channels=%d, ", spec->channels)); 207 DEBUG_PRINT(("freq=%d\n", spec->freq)); 209 if (spec->channels > 2) 210 spec->channels = 2 [all...] |
SDL_mintaudio_xbios.c | 71 static int Mint_OpenAudio(_THIS, SDL_AudioSpec *spec); 76 static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec); 77 static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec); 331 static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec) 335 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff)); 336 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 337 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); 338 DEBUG_PRINT(("channels=%d, ", spec->channels)); 339 DEBUG_PRINT(("freq=%d\n", spec->freq)); 341 if (spec->channels > 2) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SchemePrefixBenchmark.java | 29 @Override String execute(String spec) { 30 int colon = spec.indexOf(':'); 37 char c = spec.charAt(i); 43 return spec.substring(0, colon).toLowerCase(Locale.US); 60 @Override String execute(String spec) { 61 Matcher matcher = pattern.matcher(spec); 71 abstract String execute(String spec);
|
/external/qemu/distrib/sdl-1.2.15/src/audio/dummy/ |
SDL_dummyaudio.c | 40 static int DUMMYAUD_OpenAudio(_THIS, SDL_AudioSpec *spec); 127 static int DUMMYAUD_OpenAudio(_THIS, SDL_AudioSpec *spec) 132 this->hidden->mixlen = spec->size; 137 SDL_memset(this->hidden->mixbuf, spec->silence, spec->size); 139 bytes_per_sec = (float) (((spec->format & 0xFF) / 8) * 140 spec->channels * spec->freq); 144 * a given audio spec, so timing stays fairly faithful. 151 (Uint32) ((((float) spec->size) / bytes_per_sec) * 1000.0f) [all...] |
/external/webkit/Source/JavaScriptCore/wtf/url/src/ |
URLParser.h | 64 static void parseAuthority(const CHAR* spec, const URLComponent& auth, URLComponent& username, URLComponent& password, URLComponent& host, URLComponent& port) 79 while (i > auth.begin() && spec[i] != '@') 82 if (spec[i] == '@') { 84 parseUserInfo(spec, URLComponent(auth.begin(), i - auth.begin()), username, password); 85 parseServerInfo(spec, URLComponent::fromRange(i + 1, auth.begin() + auth.length()), host, port); 90 parseServerInfo(spec, auth, host, port); 94 static bool extractScheme(const CHAR* spec, int specLength, URLComponent& scheme) 98 while (begin < specLength && shouldTrimFromURL(spec[begin])) 105 if (spec[i] == ':') { 116 // |spec| is the full spec being parsed, of length |specLength| [all...] |
/external/webkit/Source/WebKit/chromium/public/ |
WebURL.h | 55 WebURL(const WebCString& spec, const url_parse::Parsed& parsed, bool isValid) 56 : m_spec(spec) 77 void assign(const WebCString& spec, const url_parse::Parsed& parsed, bool isValid) 79 m_spec = spec; 84 const WebCString& spec() const function in class:WebKit::WebURL 143 return a.spec() < b.spec(); 148 return !a.spec().compare(b.spec());
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GridLayout3.java | 50 Spec titleRow = spec(0); 51 Spec introRow = spec(1); 52 Spec emailRow = spec(2, BASELINE); 53 Spec passwordRow = spec(3, BASELINE); 54 Spec button1Row = spec(5) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
KeyFactorySpi.java | 10 import java.security.spec.InvalidKeySpecException; 11 import java.security.spec.KeySpec; 21 import org.bouncycastle.jce.spec.ECParameterSpec; 22 import org.bouncycastle.jce.spec.ECPrivateKeySpec; 23 import org.bouncycastle.jce.spec.ECPublicKeySpec; 58 Class spec) 61 if (spec.isAssignableFrom(java.security.spec.ECPublicKeySpec.class) && key instanceof ECPublicKey) 66 return new java.security.spec.ECPublicKeySpec(k.getW(), k.getParams()); 72 return new java.security.spec.ECPublicKeySpec(k.getW(), EC5Util.convertSpec(EC5Util.convertCurve(implicitSpec.getCurve(), implic (…) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/dc/ |
SDL_dcaudio.c | 38 static int DCAUD_OpenAudio(_THIS, SDL_AudioSpec *spec); 100 while(aica_get_pos(0)/this->spec.samples == this->hidden->nextbuf) { 150 SDL_AudioSpec *spec = &this->spec; local 155 while(aica_get_pos(0)/spec->samples == this->hidden->nextbuf) { 160 offset = this->hidden->nextbuf*spec->size; 163 if (spec->channels==1) { 167 if ((this->spec.format&255)==8) { 177 mode = (spec->format==AUDIO_S8)?SM_8BIT:SM_16BIT; 178 if (spec->channels==1) [all...] |