Searched refs:consumer_type (Results 1 - 11 of 11) sorted by relevance

/external/chromium_org/content/browser/device_sensors/
H A Ddevice_inertial_sensor_service.cc29 void DeviceInertialSensorService::AddConsumer(ConsumerType consumer_type) { argument
30 if (!ChangeNumberConsumers(consumer_type, 1))
33 DCHECK(GetNumberConsumers(consumer_type));
37 data_fetcher_->StartFetchingDeviceData(consumer_type);
40 void DeviceInertialSensorService::RemoveConsumer(ConsumerType consumer_type) { argument
41 if (!ChangeNumberConsumers(consumer_type, -1))
44 if (GetNumberConsumers(consumer_type) == 0)
45 data_fetcher_->StopFetchingDeviceData(consumer_type);
49 ConsumerType consumer_type, int delta) {
54 switch (consumer_type) {
48 ChangeNumberConsumers( ConsumerType consumer_type, int delta) argument
89 GetSharedMemoryHandleForProcess( ConsumerType consumer_type, base::ProcessHandle handle) argument
[all...]
H A Ddata_fetcher_shared_memory_base.h28 bool StartFetchingDeviceData(ConsumerType consumer_type);
32 bool StopFetchingDeviceData(ConsumerType consumer_type);
41 // corresponding |consumer_type| parameter.
43 ConsumerType consumer_type, base::ProcessHandle process);
79 virtual bool Start(ConsumerType consumer_type, void* buffer) = 0;
80 virtual bool Stop(ConsumerType consumer_type) = 0;
86 base::SharedMemory* GetSharedMemory(ConsumerType consumer_type);
87 void* GetSharedMemoryBuffer(ConsumerType consumer_type);
H A Ddata_fetcher_shared_memory_android.cc21 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { argument
24 switch (consumer_type) {
42 bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) { argument
43 switch (consumer_type) {
H A Ddevice_inertial_sensor_service.h32 void AddConsumer(ConsumerType consumer_type);
41 ConsumerType consumer_type, base::ProcessHandle handle);
56 bool ChangeNumberConsumers(ConsumerType consumer_type,
58 int GetNumberConsumers(ConsumerType consumer_type) const;
H A Ddata_fetcher_shared_memory_base.cc20 static size_t GetConsumerSharedMemoryBufferSize(ConsumerType consumer_type) { argument
21 switch (consumer_type) {
41 void AddConsumer(ConsumerType consumer_type, void* buffer);
42 void RemoveConsumer(ConsumerType consumer_type);
70 ConsumerType consumer_type, void* buffer) {
72 if (!fetcher_->Start(consumer_type, buffer))
75 consumers_bitmask_ |= consumer_type;
86 ConsumerType consumer_type) {
88 if (!fetcher_->Stop(consumer_type))
91 consumers_bitmask_ ^= consumer_type;
69 AddConsumer( ConsumerType consumer_type, void* buffer) argument
85 RemoveConsumer( ConsumerType consumer_type) argument
120 StartFetchingDeviceData( ConsumerType consumer_type) argument
147 StopFetchingDeviceData( ConsumerType consumer_type) argument
175 GetSharedMemoryHandleForProcess( ConsumerType consumer_type, base::ProcessHandle process) argument
213 GetSharedMemory( ConsumerType consumer_type) argument
236 GetSharedMemoryBuffer( ConsumerType consumer_type) argument
[all...]
H A Ddata_fetcher_shared_memory_base_unittest.cc37 bool Init(ConsumerType consumer_type, void* buffer) { argument
40 switch (consumer_type) {
94 void WaitForStart(ConsumerType consumer_type) { argument
95 switch (consumer_type) {
108 void WaitForStop(ConsumerType consumer_type) { argument
109 switch (consumer_type) {
122 void WaitForUpdate(ConsumerType consumer_type) { argument
123 switch (consumer_type) {
160 virtual bool Start(ConsumerType consumer_type, void* buffer) OVERRIDE {
161 Init(consumer_type, buffe
[all...]
H A Ddata_fetcher_shared_memory.h33 virtual bool Start(ConsumerType consumer_type, void* buffer) OVERRIDE;
34 virtual bool Stop(ConsumerType consumer_type) OVERRIDE;
55 void DisableSensors(ConsumerType consumer_type);
56 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled);
H A Ddata_fetcher_shared_memory_default.cc53 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { argument
56 switch (consumer_type) {
77 bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) { argument
78 switch (consumer_type) {
H A Ddata_fetcher_shared_memory_win.cc238 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { argument
241 switch (consumer_type) {
255 SetBufferAvailableState(consumer_type, true);
279 SetBufferAvailableState(consumer_type, true);
288 bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) { argument
289 DisableSensors(consumer_type);
290 SetBufferAvailableState(consumer_type, false);
291 switch (consumer_type) {
355 void DataFetcherSharedMemory::DisableSensors(ConsumerType consumer_type) { argument
356 switch(consumer_type) {
378 SetBufferAvailableState( ConsumerType consumer_type, bool enabled) argument
[all...]
H A Ddata_fetcher_shared_memory_mac.cc116 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { argument
124 switch (consumer_type) {
160 bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) { argument
163 switch (consumer_type) {
H A Ddevice_inertial_sensor_browsertest.cc39 virtual bool Start(ConsumerType consumer_type, void* buffer) OVERRIDE {
42 switch (consumer_type) {
80 virtual bool Stop(ConsumerType consumer_type) OVERRIDE {
81 switch (consumer_type) {

Completed in 82 milliseconds