Home
last modified time | relevance | path

Searched refs:isEnabled (Results 1 – 16 of 16) sorted by relevance

/development/samples/DataWiper/src/com.example.android.datawiper/
DMyMain.java55 final boolean isEnabled = MyAdmin.isEnabled(this); in refreshUi()
57 isEnabled ? "Disable Admin" : "Enable Admin"); in refreshUi()
58 findViewById(R.id.wipe_data).setEnabled(isEnabled); in refreshUi()
62 if (MyAdmin.isEnabled(this)) { in onAddAsAdmin()
DMyAdmin.java30 public static boolean isEnabled(Context context) { in isEnabled() method in MyAdmin
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DMain.java133 if (shortcut.isEnabled()) { in onClick()
162 if (!shortcut.isEnabled()) { in getType()
206 public boolean isEnabled(int position) { in isEnabled() method in Main.MyAdapter
243 shortcut.isEnabled() ? R.string.disable_shortcut : R.string.enable_shortcut); in bindView()
/development/tools/checkcolor/src/test/java/com/google/checkcolor/lint/
DHardcodedColorDetectorTest.java49 public boolean isEnabled(@NonNull Issue issue) { in getConfiguration()
50 return super.isEnabled(issue) && mEnabled.contains(issue); in getConfiguration()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DMain.java189 if (shortcut.isEnabled()) { in onClick()
228 if (!shortcut.isEnabled()) { in getType()
272 public boolean isEnabled(int position) { in isEnabled() method in Main.MyAdapter
309 shortcut.isEnabled() ? R.string.disable_shortcut : R.string.enable_shortcut); in bindView()
/development/tools/checkcolor/src/main/java/com/google/checkcolor/lint/
DHardcodedColorDetector.java125 if (context.isEnabled(ISSUE)) { in visitAttribute()
174 if (isHardcodedColor(value) && context.isEnabled(ISSUE)) { in visitElement()
188 if (context.isEnabled(ISSUE)) { in afterCheckProject()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DList5.java58 public boolean isEnabled(int position) { in isEnabled() method in List5.MyListAdapter
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/
DShortcutAdapter.java122 public boolean isEnabled(int position) { in isEnabled() method in ShortcutAdapter
170 + (si.isEnabled() ? "" : si.getDisabledMessage()) + "\n" in bindView()
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DMainActivity.java51 if (mBluetoothAdapter.isEnabled()) { in onCreate()
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DDeviceScanActivity.java117 if (!mBluetoothAdapter.isEnabled()) { in onResume()
118 if (!mBluetoothAdapter.isEnabled()) { in onResume()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java166 public boolean isEnabled(int position) { in isEnabled() method in RecipeListAdapter
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java308 if (isEnabled() && x >= 0 && x < 3 && y >= 0 & y < 3) {
360 b.putBoolean("gv_en", isEnabled());
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DBaseActivityListFragment.java132 public boolean isEnabled(int position) { in isEnabled() method in BaseActivityListFragment.AppAdapter
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatFragment.java110 if (!mBluetoothAdapter.isEnabled()) { in onStart()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java110 if (!mBluetoothAdapter.isEnabled()) { in onStart()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetworkViews.java368 return new MonkeyCommandReturn(true, Boolean.toString(node.isEnabled())); in query()