12a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn/* 22a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * Copyright (C) 2011 The Android Open Source Project 32a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * 42a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * Licensed under the Apache License, Version 2.0 (the "License"); 52a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * you may not use this file except in compliance with the License. 62a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * You may obtain a copy of the License at 72a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * 82a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * http://www.apache.org/licenses/LICENSE-2.0 92a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * 102a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * Unless required by applicable law or agreed to in writing, software 112a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * distributed under the License is distributed on an "AS IS" BASIS, 122a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 132a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * See the License for the specific language governing permissions and 142a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * limitations under the License. 152a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn */ 162a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn 172a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackbornpackage android.support.v4.view; 182a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn 192a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackbornimport android.view.KeyEvent; 202a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn 212a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn/** 222a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn * Implementation of key event compatibility that can call Honeycomb APIs. 232a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn */ 242a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackbornclass KeyEventCompatHoneycomb { 252a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn public static int normalizeMetaState(int metaState) { 262a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn return KeyEvent.normalizeMetaState(metaState); 272a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn } 282a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn 292a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn public static boolean metaStateHasModifiers(int metaState, int modifiers) { 302a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn return KeyEvent.metaStateHasModifiers(metaState, modifiers); 312a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn } 322a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn 332a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn public static boolean metaStateHasNoModifiers(int metaState) { 342a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn return KeyEvent.metaStateHasNoModifiers(metaState); 352a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn } 362a4d8518f36346ea25a22a736453ff28f2954165Dianne Hackborn} 37