Skip to content

Commit

Permalink
services: Add iorap forwarding service
Browse files Browse the repository at this point in the history
Add a new service to system_server. It purely forwards
data from internal APIs to iorapd over binder, it is not a binder
service itself.

Currently forwards ActivityMetricsLaunchObserver APIs from
ActivityTaskManagerInternal.

Bug: 72170747
Change-Id: Ic4fa283df1c16660099030c74a0039ef24866819
  • Loading branch information
iam committed Jan 7, 2019
1 parent ffdf092 commit 4de1e16
Show file tree
Hide file tree
Showing 8 changed files with 627 additions and 5 deletions.
1 change: 1 addition & 0 deletions services/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ java_library {
"services.net",
"services.print",
"services.restrictions",
"services.startop",
"services.usage",
"services.usb",
"services.voiceinteraction",
Expand Down
6 changes: 5 additions & 1 deletion services/java/com/android/server/SystemServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
import com.android.server.wm.ActivityTaskManagerService;
import com.android.server.wm.WindowManagerGlobalLock;
import com.android.server.wm.WindowManagerService;
import com.google.android.startop.iorap.IorapForwardingService;

import dalvik.system.VMRuntime;

Expand Down Expand Up @@ -1007,10 +1008,13 @@ private void startOtherServices() {
mSystemServiceManager.startService(PinnerService.class);
traceEnd();

traceBeginAndSlog("IorapForwardingService");
mSystemServiceManager.startService(IorapForwardingService.class);
traceEnd();

traceBeginAndSlog("SignedConfigService");
SignedConfigService.registerUpdateReceiver(mSystemContext);
traceEnd();

} catch (RuntimeException e) {
Slog.e("System", "******************************************");
Slog.e("System", "************ Failure starting core service", e);
Expand Down
24 changes: 24 additions & 0 deletions services/startop/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2018 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.
*/

java_library_static {
name: "services.startop",

static_libs: [
// frameworks/base/startop/iorap
"services.startop.iorap",
],
}
4 changes: 3 additions & 1 deletion startop/iorap/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
// limitations under the License.

java_library_static {
name: "libiorap-java",
name: "services.startop.iorap",

aidl: {
include_dirs: [
"system/iorap/binder",
],
},

libs: ["services.core"],

srcs: [
":iorap-aidl",
"**/*.java",
Expand Down
Loading

0 comments on commit 4de1e16

Please sign in to comment.