summaryrefslogtreecommitdiff
path: root/core/java/android/ddm/DdmRegister.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:45 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:45 -0800
commitd83a98f4ce9cfa908f5c54bbd70f03eec07e7553 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /core/java/android/ddm/DdmRegister.java
parent076357b8567458d4b6dfdcf839ef751634cd2bfb (diff)
auto import from //depot/cupcake/@135843
Diffstat (limited to 'core/java/android/ddm/DdmRegister.java')
-rw-r--r--core/java/android/ddm/DdmRegister.java58
1 files changed, 0 insertions, 58 deletions
diff --git a/core/java/android/ddm/DdmRegister.java b/core/java/android/ddm/DdmRegister.java
deleted file mode 100644
index b7f1ab8dbb35..000000000000
--- a/core/java/android/ddm/DdmRegister.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2007 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.
- */
-
-package android.ddm;
-
-import org.apache.harmony.dalvik.ddmc.DdmServer;
-import android.util.Config;
-import android.util.Log;
-
-/**
- * Just a place to stick handler registrations, instead of scattering
- * them around.
- */
-public class DdmRegister {
-
- private DdmRegister() {}
-
- /**
- * Register handlers for all known chunk types.
- *
- * If you write a handler, add a registration call here.
- *
- * Note that this is invoked by the application (usually through a
- * static initializer in the main class), not the VM. It's done this
- * way so that the handlers can use Android classes with native calls
- * that aren't registered until after the VM is initialized (e.g.
- * logging). It also allows debugging of DDM handler initialization.
- *
- * The chunk dispatcher will pause until we call registrationComplete(),
- * so that we don't have a race that causes us to drop packets before
- * we finish here.
- */
- public static void registerHandlers() {
- if (Config.LOGV)
- Log.v("ddm", "Registering DDM message handlers");
- DdmHandleHello.register();
- DdmHandleThread.register();
- DdmHandleHeap.register();
- DdmHandleNativeHeap.register();
- DdmHandleExit.register();
-
- DdmServer.registrationComplete();
- }
-}
-