/external/chromium/net/websockets/ |
websocket_frame_handler_unittest.cc | 47 std::vector<WebSocketFrameHandler::FrameInfo> frames; local 54 kInputData, kInputDataLen, &frames)); 55 EXPECT_EQ(2UL, frames.size()); 57 EXPECT_EQ(kInputData, frames[0].frame_start); 58 EXPECT_EQ(kHelloWorldFrameLen, frames[0].frame_length); 59 EXPECT_EQ(kInputData + 1, frames[0].message_start); 60 EXPECT_EQ(kHelloWorldFrameLen - 2, frames[0].message_length); 62 EXPECT_EQ(kInputData + kHelloWorldFrameLen, frames[1].frame_start); 63 EXPECT_EQ(2, frames[1].frame_length); 64 EXPECT_EQ(0, frames[1].message_length) 68 std::vector<WebSocketFrameHandler::FrameInfo> frames; local 106 std::vector<WebSocketFrameHandler::FrameInfo> frames; local [all...] |
/external/chromium_org/media/base/ |
audio_pull_fifo.cc | 14 AudioPullFifo::AudioPullFifo(int channels, int frames, const ReadCB& read_cb) 16 fifo_(AudioBus::Create(channels, frames)), 17 fifo_index_(frames) {} 22 DCHECK_LE(frames_to_consume, destination->frames()); 31 // Get the remaining audio frames from the producer using the callback. 33 DCHECK_EQ(fifo_index_, fifo_->frames()); 47 void AudioPullFifo::Clear() { fifo_index_ = fifo_->frames(); } 52 int frames = std::min(frames_to_provide, fifo_->frames() - fifo_index_); local 53 if (frames <= 0 [all...] |
audio_bus.h | 28 // Creates a new AudioBus and allocates |channels| of length |frames|. Uses 30 static scoped_ptr<AudioBus> Create(int channels, int frames); 42 int frames, const std::vector<float*>& channel_data); 47 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data); 53 // and frames. 54 static int CalculateMemorySize(int channels, int frames); 61 // any unfilled frames when |frames| is less than frames(). 62 void FromInterleaved(const void* source, int frames, int bytes_per_sample) 95 int frames() const { return frames_; } function in class:media::AudioBus [all...] |
audio_bus.cc | 24 static int CalculateMemorySizeInternal(int channels, int frames, 29 ((frames * sizeof(float) + AudioBus::kChannelAlignment - 1) & 43 int frames, AudioBus* dest, 51 for (int i = start_frame, offset = ch; i < start_frame + frames; 64 int frames, void* dst, Fixed min, Fixed max) { 71 for (int i = start_frame, offset = ch; i < start_frame + frames; 86 static void ValidateConfig(int channels, int frames) { 87 CHECK_GT(frames, 0); 92 static void CheckOverflow(int start_frame, int frames, int total_frames) { 94 CHECK_GE(frames, 0) 197 ValidateConfig(static_cast<int>(channel_data_.size()), frames); local [all...] |
audio_fifo_unittest.cc | 31 EXPECT_EQ(fifo.frames(), 0); 42 EXPECT_EQ(fifo.frames(), 0); 44 EXPECT_EQ(fifo.frames(), bus->frames()); 50 EXPECT_EQ(fifo.frames(), 0); 52 EXPECT_EQ(fifo.frames(), bus->frames()); 65 EXPECT_EQ(fifo.frames(), kMaxFrameCount); 70 fifo.Consume(bus.get(), 0, bus->frames()); 71 EXPECT_TRUE(fifo.frames() == bus->frames()) [all...] |
audio_buffer_unittest.cc | 15 int frames, 18 for (int i = 0; i < frames; ++i) { 20 "i=%d/%d start=%f, increment=%f", i, frames, start, increment)); 28 const int frames = 8; local 30 const base::TimeDelta duration = base::TimeDelta::FromSeconds(frames); 32 kSampleFormatU8, channels, 1, 1, frames, start_time, duration); 33 EXPECT_EQ(frames, buffer->frame_count()); 35 EXPECT_EQ(buffer->duration().InSeconds(), frames); 63 const int frames = 4; local 65 const base::TimeDelta duration = base::TimeDelta::FromSeconds(frames); 83 const int frames = 10; local 108 const int frames = 6; local 131 const int frames = 20; local 153 const int frames = 20; local 186 const int frames = 100; local 219 const int frames = 100; local 240 const int frames = 100; local [all...] |
audio_buffer_queue.cc | 38 // Update the |frames_| counter since we have added frames. 43 int AudioBufferQueue::ReadFrames(int frames, 46 DCHECK_GE(dest->frames(), frames + dest_frame_offset); 47 return InternalRead(frames, true, 0, dest_frame_offset, dest); 50 int AudioBufferQueue::PeekFrames(int frames, 54 DCHECK_GE(dest->frames(), frames); 56 frames, false, source_frame_offset, dest_frame_offset, dest); 59 void AudioBufferQueue::SeekFrames(int frames) { [all...] |
audio_buffer_queue.h | 36 // Reads a maximum of |frames| frames into |dest| from the current position. 37 // Returns the number of frames read. The current position will advance by the 38 // amount of frames read. |dest_frame_offset| specifies a starting offset into 39 // |dest|. On each call, the frames are converted from their source format 41 int ReadFrames(int frames, int dest_frame_offset, AudioBus* dest); 43 // Copies up to |frames| frames from current position to |dest|. Returns 44 // number of frames copied. Doesn't advance current position. Starts at 46 // a starting offset into |dest|. On each call, the frames are converted fro 58 int frames() const { return frames_; } function in class:media::AudioBufferQueue [all...] |
audio_buffer_queue_unittest.cc | 20 int frames, 23 for (int i = 0; i < frames; ++i) { 25 "i=%d/%d start=%f, increment=%f", i, frames, start, increment)); 33 const int frames = 8; local 36 EXPECT_EQ(0, buffer.frames()); 38 kSampleFormatU8, channels, 10, 1, frames, kNoTime, kNoTime)); 39 EXPECT_EQ(frames, buffer.frames()); 41 EXPECT_EQ(0, buffer.frames()); 43 kSampleFormatU8, channels, 20, 1, frames, kNoTime, kNoTime)) 49 const int frames = 8; local 73 const int frames = 8; local 119 const int frames = 6; local 180 const int frames = 4; local [all...] |
audio_hash_unittest.cc | 31 wrapped_bus->set_frames(audio_bus->frames()); 54 hash_one.Update(bus_one_.get(), bus_one_->frames()); 57 hash_two.Update(bus_one_.get(), bus_one_->frames()); 65 original_hash.Update(bus_one_.get(), bus_one_->frames()); 71 swapped_hash.Update(bus_one_.get(), bus_one_->frames()); 79 original_hash.Update(bus_one_.get(), bus_one_->frames()); 84 swapped_ch_bus->set_frames(bus_one_->frames()); 89 swapped_hash.Update(swapped_ch_bus.get(), swapped_ch_bus->frames()); 97 original_hash.Update(bus_one_.get(), bus_one_->frames()); 98 original_hash.Update(bus_two_.get(), bus_two_->frames()); [all...] |
audio_fifo.h | 15 // The maximum number of audio frames in the FIFO is set at construction and 22 // Creates a new AudioFifo and allocates |channels| of length |frames|. 23 AudioFifo(int channels, int frames); 30 // Consumes |frames_to_consume| audio frames from the FIFO and copies 33 // frames or if there is insufficient space in |destination| to store the 34 // frames. 40 // Number of actual audio frames in the FIFO. 41 int frames() const; 50 // This value is set by |frames| in the constructor.
|
multi_channel_resampler.cc | 45 void MultiChannelResampler::Resample(int frames, AudioBus* audio_bus) { 50 resamplers_[0]->Resample(frames, audio_bus->channel(0)); 55 // channel. To ensure this, we chunk the number of requested frames into 59 while (output_frames_ready_ < frames) { 61 int frames_this_time = std::min(frames - output_frames_ready_, chunk_size); 72 // number of frames. 82 int frames, 93 DCHECK_EQ(frames, wrapped_resampler_audio_bus_->frames()); 97 sizeof(*wrapped_resampler_audio_bus_->channel(channel)) * frames); [all...] |
/external/chromium_org/net/websockets/ |
websocket_deflate_predictor_impl_test.cc | 20 ScopedVector<WebSocketFrame> frames; local 21 frames.push_back(new WebSocketFrame(WebSocketFrameHeader::kOpCodeText)); 22 Result result = predictor.Predict(frames, 0);
|
websocket_deflate_stream_test.cc | 74 void AppendTo(ScopedVector<WebSocketFrame>* frames, 83 frames->push_back(frame.release()); 86 void AppendTo(ScopedVector<WebSocketFrame>* frames, 92 frames->push_back(frame.release()); 116 ADD_FAILURE() << "There are missing frames to be input."; 120 ADD_FAILURE() << "There are extra written frames."; 126 virtual Result Predict(const ScopedVector<WebSocketFrame>& frames, 132 ADD_FAILURE() << "Control frames should not be recorded."; 151 ADD_FAILURE() << "Control frames should not be recorded."; 171 ADD_FAILURE() << "There are missing frames to be written." 309 ScopedVector<WebSocketFrame>* frames() { return &frames_; } function in class:net::__anon9609::WriteFramesStub 319 ScopedVector<WebSocketFrame> frames; local 336 ScopedVector<WebSocketFrame> frames; local 354 ScopedVector<WebSocketFrame> frames; local 385 ScopedVector<WebSocketFrame> frames; local 418 ScopedVector<WebSocketFrame> frames; local 437 ScopedVector<WebSocketFrame> frames; local 475 ScopedVector<WebSocketFrame> frames; local 512 ScopedVector<WebSocketFrame> frames; local 538 ScopedVector<WebSocketFrame> frames; local 563 ScopedVector<WebSocketFrame> frames; local 594 ScopedVector<WebSocketFrame> frames; local 622 ScopedVector<WebSocketFrame> frames; local 649 ScopedVector<WebSocketFrame> frames; local 683 ScopedVector<WebSocketFrame> frames; local 725 ScopedVector<WebSocketFrame> frames; local 749 ScopedVector<WebSocketFrame> frames; local 773 ScopedVector<WebSocketFrame> frames; local 804 ScopedVector<WebSocketFrame> frames; local 837 ScopedVector<WebSocketFrame> frames; local 870 ScopedVector<WebSocketFrame> frames; local 890 ScopedVector<WebSocketFrame> frames; local 900 ScopedVector<WebSocketFrame> frames; local 915 ScopedVector<WebSocketFrame> frames; local 940 ScopedVector<WebSocketFrame> frames; local 965 ScopedVector<WebSocketFrame> frames; local 992 ScopedVector<WebSocketFrame> frames; local 1013 ScopedVector<WebSocketFrame> frames; local 1058 ScopedVector<WebSocketFrame> frames; local 1097 ScopedVector<WebSocketFrame> frames; local 1125 ScopedVector<WebSocketFrame> frames; local 1156 ScopedVector<WebSocketFrame> frames; local [all...] |
websocket_deflate_stream.h | 31 // data message frames, the control frame can overtake data frames. 32 // Say there are frames df1, df2 and cf, df1 and df2 are frames of a 34 // data frames may follow cf. 48 virtual int ReadFrames(ScopedVector<WebSocketFrame>* frames, 50 virtual int WriteFrames(ScopedVector<WebSocketFrame>* frames, 70 void OnReadComplete(ScopedVector<WebSocketFrame>* frames, 74 // This function deflates |frames| and stores the result to |frames| itself [all...] |
websocket_deflate_stream.cc | 55 int WebSocketDeflateStream::ReadFrames(ScopedVector<WebSocketFrame>* frames, 60 base::Unretained(frames), 62 int result = stream_->ReadFrames(frames, callback_to_pass); 66 return InflateAndReadIfNecessary(frames, callback_to_pass); 69 int WebSocketDeflateStream::WriteFrames(ScopedVector<WebSocketFrame>* frames, 71 int result = Deflate(frames); 74 if (frames->empty()) 76 return stream_->WriteFrames(frames, callback); 90 ScopedVector<WebSocketFrame>* frames, 94 frames->clear() [all...] |
/bionic/libc/bionic/ |
debug_stacktrace.cpp | 73 uintptr_t* frames; member in struct:stack_crawl_state_t 78 stack_crawl_state_t(uintptr_t* frames, size_t max_depth) 79 : frames(frames), frame_count(0), max_depth(max_depth), have_skipped_self(false) { 112 state->frames[state->frame_count++] = ip; 116 __LIBC_HIDDEN__ int get_backtrace(uintptr_t* frames, size_t max_depth) { 117 stack_crawl_state_t state(frames, max_depth); 122 __LIBC_HIDDEN__ void log_backtrace(uintptr_t* frames, size_t frame_count) { 124 if (frames == NULL) { 126 frames = self_bt [all...] |
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-2564.js | 33 Error.prepareStackTrace = function(error, frames) { 36 assertEquals(5, frames.length); 38 for (var i = 0; i < frames.length - 1; i++) { 39 assertEquals(o[i], frames[i].getFunction()); 40 assertEquals(o, frames[i].getThis()); 42 assertEquals(undefined, frames[i].receiver); 43 assertEquals(undefined, frames[i].fun); 44 assertEquals(undefined, frames[i].pos); 64 Error.prepareStackTrace = function(error, frames) { 67 assertEquals(5, frames.length) [all...] |
/external/chromium_org/media/audio/ |
virtual_audio_output_stream.cc | 80 const int frames = callback_->OnMoreData(audio_bus, AudioBuffersState()); local 81 if (frames < audio_bus->frames()) 82 audio_bus->ZeroFramesPartial(frames, audio_bus->frames() - frames); 84 return frames > 0 ? volume_ : 0;
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
ScriptCallStack.cpp | 37 PassRefPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCallFrame>& frames) 39 return adoptRef(new ScriptCallStack(frames)); 42 ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames) 44 m_frames.swap(frames); 81 RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBuilder::Array<TypeBuilder::Console::CallFrame>::create(); local 83 frames->addItem(m_frames.at(i).buildInspectorObject()); 84 return frames;
|
/external/replicaisland/src/com/replica/replicaisland/ |
SpriteAnimation.java | 45 final FixedSizeArray<AnimationFrame> frames = mFrames; local 46 assert frames.getCount() == frames.getCapacity(); 47 final int frameCount = frames.getCount(); 48 result = frames.get(frameCount - 1); 58 // When there are very few frames it's actually slower to do a binary search 66 result = frames.get(index); 69 AnimationFrame frame = frames.get(x);
|
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
FramePool.java | 46 // Maps each summary code (see summarizeFrameDimensions()) to a list of frames 58 LinkedList<I420Frame> frames = availableFrames.get(desc); local 59 if (frames == null) { 60 frames = new LinkedList<I420Frame>(); 61 availableFrames.put(desc, frames); 63 if (!frames.isEmpty()) { 64 dst = frames.pop(); 76 LinkedList<I420Frame> frames = availableFrames.get(desc); local 77 if (frames == null) { 80 frames.add(frame) [all...] |
/external/srec/srec/ca/ |
utt_proc.c | 40 int ii, frames = 0; local 42 frames = get_background_statistics(hUtt->data.gen_utt.frame, 47 /* log_report ("UTT (%d): ", frames); */ 54 return (frames);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAnimationDrawable.java | 14 private List<Drawable> frames = new ArrayList<Drawable>(); field in class:ShadowAnimationDrawable 19 frames.add(frame); 24 return frames.size(); 37 return frames;
|
/external/qemu/distrib/sdl-1.2.15/test/ |
testvidinfo.c | 80 Uint32 frames; local 95 frames = 0; 102 ++frames; 110 ++frames; 118 ++frames; 123 printf("%d fills and flips in %2.2f seconds, %2.2f FPS\n", frames, seconds, (float)frames / seconds); 125 printf("%d fills and flips in zero seconds!n", frames); 148 frames = RunBlitTests(screen, bmp, NUM_BLITS); 152 printf("%d blits / %d updates in %2.2f seconds, %2.2f FPS\n", NUM_BLITS*frames, frames, seconds, (float)frames / seconds) [all...] |