summaryrefslogtreecommitdiff
path: root/services/displayservice/DisplayService.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2017-05-17 18:15:15 -0700
committer Steven Moreland <smoreland@google.com> 2017-05-17 18:27:26 -0700
commit5577d39c380c63ad02a5ca2d7cc5f08c3ebee533 (patch)
treefbe99483740cebb34f35472a53c0fdf033035bfd /services/displayservice/DisplayService.cpp
parent5c580eaeb6510fee596825d2435182cf9895ae10 (diff)
Fix race condition in displayservice.
Also addressed a couple of format nits and added copyright headers. Note, this race condition wouldn't have occured as is because the service is only being served on one thread. Test: no race condition still Bug: 38311538 Change-Id: I7516c800eb89280a16468934677fa978daa5dcec
Diffstat (limited to 'services/displayservice/DisplayService.cpp')
-rw-r--r--services/displayservice/DisplayService.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/services/displayservice/DisplayService.cpp b/services/displayservice/DisplayService.cpp
index 1699673188..18418fdd4f 100644
--- a/services/displayservice/DisplayService.cpp
+++ b/services/displayservice/DisplayService.cpp
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2017 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#include <displayservice/DisplayService.h>
#include <displayservice/DisplayEventReceiver.h>