| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/android/base_jni_registrar.h" | 5 #include "base/android/base_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/android/animation_frame_time_histogram.h" | 7 #include "base/android/animation_frame_time_histogram.h" |
| 8 #include "base/android/application_status_listener.h" | 8 #include "base/android/application_status_listener.h" |
| 9 #include "base/android/command_line_android.h" | 9 #include "base/android/command_line_android.h" |
| 10 #include "base/android/context_utils.h" | 10 #include "base/android/context_utils.h" |
| 11 #include "base/android/cpu_features.h" | 11 #include "base/android/cpu_features.h" |
| 12 #include "base/android/early_trace_event_binding.h" | 12 #include "base/android/early_trace_event_binding.h" |
| 13 #include "base/android/field_trial_list.h" | 13 #include "base/android/field_trial_list.h" |
| 14 #include "base/android/important_file_writer_android.h" | 14 #include "base/android/important_file_writer_android.h" |
| 15 #include "base/android/java_handler_thread.h" | 15 #include "base/android/java_handler_thread.h" |
| 16 #include "base/android/jni_android.h" | 16 #include "base/android/jni_android.h" |
| 17 #include "base/android/jni_registrar.h" | 17 #include "base/android/jni_registrar.h" |
| 18 #include "base/android/memory_pressure_listener_android.h" | 18 #include "base/android/memory_pressure_listener_android.h" |
| 19 #include "base/android/path_service_android.h" | 19 #include "base/android/path_service_android.h" |
| 20 #include "base/android/record_histogram.h" | 20 #include "base/android/record_histogram.h" |
| 21 #include "base/android/record_user_action.h" | 21 #include "base/android/record_user_action.h" |
| 22 #include "base/android/statistics_recorder_android.h" | 22 #include "base/android/statistics_recorder_android.h" |
| 23 #include "base/android/time_utils.h" |
| 23 #include "base/android/trace_event_binding.h" | 24 #include "base/android/trace_event_binding.h" |
| 24 #include "base/macros.h" | 25 #include "base/macros.h" |
| 25 #include "base/message_loop/message_pump_android.h" | 26 #include "base/message_loop/message_pump_android.h" |
| 26 #include "base/power_monitor/power_monitor_device_source_android.h" | 27 #include "base/power_monitor/power_monitor_device_source_android.h" |
| 27 #include "base/trace_event/trace_event.h" | 28 #include "base/trace_event/trace_event.h" |
| 28 | 29 |
| 29 namespace base { | 30 namespace base { |
| 30 namespace android { | 31 namespace android { |
| 31 | 32 |
| 32 static RegistrationMethod kBaseRegisteredMethods[] = { | 33 static RegistrationMethod kBaseRegisteredMethods[] = { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 44 {"MemoryPressureListenerAndroid", | 45 {"MemoryPressureListenerAndroid", |
| 45 base::android::MemoryPressureListenerAndroid::Register}, | 46 base::android::MemoryPressureListenerAndroid::Register}, |
| 46 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings}, | 47 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings}, |
| 47 {"PathService", base::android::RegisterPathService}, | 48 {"PathService", base::android::RegisterPathService}, |
| 48 {"PowerMonitor", base::RegisterPowerMonitor}, | 49 {"PowerMonitor", base::RegisterPowerMonitor}, |
| 49 {"RecordHistogram", base::android::RegisterRecordHistogram}, | 50 {"RecordHistogram", base::android::RegisterRecordHistogram}, |
| 50 {"RecordUserAction", base::android::RegisterRecordUserAction}, | 51 {"RecordUserAction", base::android::RegisterRecordUserAction}, |
| 51 {"StatisticsRecorderAndroid", | 52 {"StatisticsRecorderAndroid", |
| 52 base::android::RegisterStatisticsRecorderAndroid}, | 53 base::android::RegisterStatisticsRecorderAndroid}, |
| 53 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings}, | 54 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings}, |
| 55 {"TimeUtils", base::android::RegisterTimeUtils}, |
| 54 {"TraceEvent", base::android::RegisterTraceEvent}, | 56 {"TraceEvent", base::android::RegisterTraceEvent}, |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 bool RegisterJni(JNIEnv* env) { | 59 bool RegisterJni(JNIEnv* env) { |
| 58 TRACE_EVENT0("startup", "base_android::RegisterJni"); | 60 TRACE_EVENT0("startup", "base_android::RegisterJni"); |
| 59 return RegisterNativeMethods(env, kBaseRegisteredMethods, | 61 return RegisterNativeMethods(env, kBaseRegisteredMethods, |
| 60 arraysize(kBaseRegisteredMethods)); | 62 arraysize(kBaseRegisteredMethods)); |
| 61 } | 63 } |
| 62 | 64 |
| 63 } // namespace android | 65 } // namespace android |
| 64 } // namespace base | 66 } // namespace base |
| OLD | NEW |