Switched from deprecated StopWatch api to a recommended one

Change-Id: I1f643b66aca2b17bcd47208c55fa7170c4a3101d
Implement logic for SDK setup pages and HAXM page.

Change-Id: I2a4a312e4167fda69d6d707efc379bdd9062bf05
Use Android Studio APIs to detect and set JDK

Change-Id: I1549871eb73e14cd040eb86c4a4ff23151d54b85
navigator: Implement equals() method for module nodes

IntelliJ's project view nodes implement equality and hashCode.
However, they only compare certain parameters. For a module
node for instance, they only compare that the modules are the
same. This caused an incorrect equality comparison between the
nodes of type NonAndroidModuleNode and NonAndroidSourceTypeNode,
since both are parametrized on the module, hence the default
comparison by module says that they are equal.

This CL constrains the equals method to only accept classes of
the same type.

Fix for https://code.google.com/p/android/issues/detail?id=75619

Change-Id: I3abc6acc6476612338f2479c653d0f59ad80cb04
Merge "navigator: Implement equals() method for module nodes" into idea133
Merge "Switched from deprecated StopWatch api to a recommended one" into idea133
Merge "Implement logic for SDK setup pages and HAXM page." into idea133
Revert "Switched from deprecated StopWatch api to a recommended one"

This reverts commit d5b46dddcc23c6d10e3647ad4a8fe54727665ff4.

It looks like old guava version is picked up at runtime

Change-Id: I000e6bccb268f8861b0a219d1e0ffe06a55f9d64
Merge "Revert "Switched from deprecated StopWatch api to a recommended one"" into idea133
76262: False warning in onClick when associated method is in a superclass

Change-Id: I9c9ec7d87c6a52ccd99a224c5365cb5062d19739
Make the goto-related provider consult the tools:context attribute

The Android Goto Related provider is responsible for finding the corresponding
activity for a layout (which is used not just for navigation but by the
onClick validator etc). This CL makes this provider also consult the tools:context
attribute which can be used to pick a specific activity the user wants to work
with (since a layout can be used by multiple activities, or be used only by fragments
where the activity association is not as obvious.)

Change-Id: I71bb6f450b1e1d170289a7a89bfbc267c9ad3271
Add API for supressing editor opens

This change adds a function to NewAndroidActivityWizard that
allows the client to set whether it wants editors opened pointing
to files created by the template.

Change-Id: I24164ddd881d2377c2d8fcd0923ee70a168dbf4a
Merge "Add API for supressing editor opens" into idea133
Add 'press' gesture icon from UX in London

First step to aligning gesture icons more closely with:

http://www.google.com/design/spec/patterns/gestures.html#gestures-gestures

Also remove references to deprecated NewTemplateWizard in favour of NewAndroidActivityWizard.

Change-Id: I07f02bd798fa2ccc18d71e9686741647cd57bb25
Merge "Add 'press' gesture icon from UX in London" into idea133
Fix NoClassFoundException on attempt to run UI tests

There is a race condition at JB custom class loading stuff.
We did the following:
1. Reported the problem with detailed analysis to JetBrains guys
because proper fix requires a lot of (performance) testing;
2. Created a temporary work-around solution at our codebase which
eliminates the problem at our environment;

More details might be found at the
IdeTestApplication.forceEagerClassPathLoading() javadoc.

Change-Id: Ia442997961083c59b88b9cad5febf65e714803bd
Merge "Fix NoClassFoundException on attempt to run UI tests" into idea133
GradleImport: Also look at MAVEN_URL environment variable.

All the test projects in testData/projects have a build.gradle
that contains something like:

      if (System.getenv("MAVEN_URL") != null) {
         maven {url System.getenv("MAVEN_URL")}
      }

This CL fixes the Gradle Importer to also look at the MAVEN_URL
environment variable as used in the CI server in addition to the
android.mavenRepoUrl system property.

Change-Id: I77a35768c22043bcfd446e4bb145f3dc75e2f808
[UI Testing] Fixed test GradleSyncTest#testUnsupportedGradleVersion

This CL:
- Fixes that broken test (passes when run individually, but gets
  stuck when ran with the rest of test methods in the class)
- Adds a new project: OldAndroidPlugin, which uses plug-in 0.12
  and build files use mavenCentral() to be able to use Gradle 1.5
- Changes SimpleApplication to use jCentral()
- Introduces super class for all the fixtures that deal with
  IDEA dialogs.

Change-Id: I7ba0c48107b76243fef2a2d4e6dc827322a7cbc8
Merge "[UI Testing] Fixed test GradleSyncTest#testUnsupportedGradleVersion" into idea133