Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Side by Side Diff: services/device/generic_sensor/platform_sensor_android.cc

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/generic_sensor/platform_sensor_android.h" 5 #include "services/device/generic_sensor/platform_sensor_android.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "jni/PlatformSensor_jni.h" 8 #include "jni/PlatformSensor_jni.h"
9 9
10 using base::android::AttachCurrentThread; 10 using base::android::AttachCurrentThread;
11 using base::android::JavaRef; 11 using base::android::JavaRef;
12 12
13 namespace device { 13 namespace device {
14 14
15 // static 15 // static
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 reading.values[0] = value1; 91 reading.values[0] = value1;
92 reading.values[1] = value2; 92 reading.values[1] = value2;
93 reading.values[2] = value3; 93 reading.values[2] = value3;
94 reading.values[3] = value4; 94 reading.values[3] = value4;
95 95
96 bool needNotify = (GetReportingMode() == mojom::ReportingMode::ON_CHANGE); 96 bool needNotify = (GetReportingMode() == mojom::ReportingMode::ON_CHANGE);
97 UpdateSensorReading(reading, needNotify); 97 UpdateSensorReading(reading, needNotify);
98 } 98 }
99 99
100 } // namespace device 100 } // namespace device
OLDNEW
« no previous file with comments | « services/device/generic_sensor/platform_sensor_android.h ('k') | services/device/generic_sensor/platform_sensor_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698