Home | History | Annotate | Download | only in api_legacy
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.google.android.wearable {
     18 
     19   public final class WearableSharedLib {
     20     method public static int version();
     21   }
     22 
     23 }
     24 
     25 package com.google.android.wearable.compat {
     26 
     27   public class WearableActivityController {
     28     ctor public WearableActivityController(java.lang.String, android.app.Activity, com.google.android.wearable.compat.WearableActivityController.AmbientCallback);
     29     method public void dump(java.lang.String, java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]);
     30     method public final boolean isAmbient();
     31     method public void onCreate();
     32     method public void onDestroy();
     33     method public void onPause();
     34     method public void onResume();
     35     method public void onStop();
     36     method public final void setAmbientEnabled();
     37     method public final void setAutoResumeEnabled(boolean);
     38     field public static final java.lang.String EXTRA_BURN_IN_PROTECTION = "com.google.android.wearable.compat.extra.BURN_IN_PROTECTION";
     39     field public static final java.lang.String EXTRA_LOWBIT_AMBIENT = "com.google.android.wearable.compat.extra.LOWBIT_AMBIENT";
     40   }
     41 
     42   public static abstract class WearableActivityController.AmbientCallback {
     43     ctor public WearableActivityController.AmbientCallback();
     44     method public void onEnterAmbient(android.os.Bundle);
     45     method public void onExitAmbient();
     46     method public void onUpdateAmbient();
     47   }
     48 
     49 }
     50 
     51 package com.google.android.wearable.input {
     52 
     53   public class RotaryEncoderHelper {
     54     method public static float getRotaryAxisValue(android.view.MotionEvent);
     55     method public static float getScaledScrollFactor(android.content.Context);
     56     method public static boolean isFromRotaryEncoder(android.view.MotionEvent);
     57   }
     58 
     59   public final class WearableInputDevice {
     60     method public static final int[] getAvailableButtonKeyCodes(android.content.Context);
     61     method public static final android.os.Bundle getButtonInfo(android.content.Context, int);
     62     field public static final java.lang.String X_KEY = "x_key";
     63     field public static final java.lang.String Y_KEY = "y_key";
     64   }
     65 
     66 }
     67 
     68