/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
MockNodeProxy.java | 32 * Generates a {@link NodeProxy} using an FQCN (e.g. android.view.View) 33 * and making the last segment of the FQCN the XML name of the view (e.g. "View") 36 * @param fqcn The fully qualified name of the class to wrap, e.g. "android.view.Button". 44 public MockNodeProxy(String fqcn, Rectangle bounds, NodeFactory factory) { 45 super(makeUiViewNode(fqcn), bounds, factory); 49 * Generates a {@link ViewElementDescriptor} using an FQCN (e.g. android.view.View) 50 * and making the last segment of the FQCN the XML name of the view (e.g. "View"). 52 * @param fqcn The fully qualified name of the class to wrap, e.g. "android.view.Button" 53 * @return A new view element node with a new descriptor for the FQCN and an XML name 54 * matching the last FQCN segment (e.g. "Button" [all...] |
ViewMetadataRepositoryTest.java | 48 for (String fqcn : repository.getAllFqcns()) { 49 repository.getRelatedTo(fqcn);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
FragmentRule.java | 33 String fqcn = mRulesEngine.displayFragmentSourceInput(); local 34 if (fqcn != null) { 37 fqcn.length() > 0 ? fqcn : null));
|
AdapterViewRule.java | 43 String fqcn = targetNode.getFqcn(); local 44 String name = fqcn.substring(fqcn.lastIndexOf('.') +1);
|
FrameLayoutRule.java | 148 String fqcn = element.getFqcn(); 150 INode newChild = targetNode.appendChild(fqcn); 175 String fqcn = node.getFqcn(); 176 IViewMetadata metadata = mRulesEngine.getMetadata(fqcn);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
WidgetClassLoader.java | 59 ClassDescriptor(String fqcn) { 60 mFqcn = fqcn; 61 mSimpleName = getSimpleName(fqcn); 131 private String getSimpleName(String fqcn) { 132 String[] segments = fqcn.split("\\."); 139 /** Output map of FQCN => descriptor on all classes */ 141 /** Output map of FQCN => descriptor on View classes */ 143 /** Output map of FQCN => descriptor on ViewGroup classes */ 145 /** Output map of FQCN => descriptor on LayoutParams classes */ 239 String fqcn = classes[index] local 274 String fqcn = param.getFullClassName(); local [all...] |
LayoutParamsParser.java | 89 /** Output map of FQCN => info on View classes */ 91 /** Output map of FQCN => info on ViewGroup classes */ 93 /** Output map of FQCN => info on LayoutParams classes */ 113 /** Returns the map of FQCN => info on View classes */ 118 /** Returns the map of FQCN => info on ViewGroup classes */ 129 * Note on Vocabulary: FQCN=Fully Qualified Class Name (e.g. "my.package.class$innerClass") 221 String fqcn = viewClass.getFullClassName(); local 222 if (mViewMap.containsKey(fqcn)) { 223 return mViewMap.get(fqcn); 224 } else if (mGroupMap.containsKey(fqcn)) { 249 String fqcn = groupClass.getFullClassName(); local 317 String fqcn = layoutParamsClass.getFullClassName(); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/ |
CustomViewDescriptorService.java | 124 * @param fqcn the fully qualified name of the class. 128 public ViewElementDescriptor getDescriptor(IProject project, String fqcn) { 134 ViewElementDescriptor descriptor = map.get(fqcn); 149 String javaClassName = fqcn.replaceAll("\\$", "\\."); //$NON-NLS-1$ //$NON-NLS-2$ 166 String name = DescriptorsUtils.getBasename(fqcn); 167 ViewElementDescriptor descriptor = new CustomViewDescriptor(name, fqcn, 180 map.put(fqcn, descriptor); 211 String fqcn = type.getFullyQualifiedName(); local 220 ViewElementDescriptor d = descriptors.findDescriptorByClass(fqcn); 243 String name = DescriptorsUtils.getBasename(fqcn); [all...] |
ViewElementDescriptor.java | 60 /** The full class name (FQCN) of this view. */ 234 * @param fqcn the fully qualified class name, such as android.widget.Button 238 public static boolean viewNeedsPackage(String fqcn) { 239 return !(fqcn.startsWith(ANDROID_WIDGET_PREFIX) 240 || fqcn.startsWith(ANDROID_VIEW_PKG) 241 || fqcn.startsWith(ANDROID_WEBKIT_PKG));
|
LayoutDescriptors.java | 267 String fqcn = info.getFullClassName(); local 268 if (ViewElementDescriptor.viewNeedsPackage(fqcn)) { 269 xmlName = fqcn; 299 attributeSources.add(fqcn); 339 fqcn, 563 * @param fqcn the fully qualified class name 566 public ViewElementDescriptor findDescriptorByClass(String fqcn) { 567 return mFqcnToDescriptor.get(fqcn);
|
/sdk/apigenerator/src/com/android/apigenerator/ |
ParserState.java | 52 String fqcn = makeJavaClass(mCurrentPackage + "." + className); local 53 mCurrentClass = addClass(fqcn, mApiLevel); 117 private String makeJavaClass(String fqcn) { 118 final int length = fqcn.length(); 122 boolean isClass = Character.isUpperCase(fqcn.charAt(0)); 124 if (fqcn.charAt(i) == '.') { 132 isClass = Character.isUpperCase(fqcn.charAt(i+1)); 135 if (fqcn.charAt(i) == '<') { 139 sb.append(fqcn.charAt(i));
|
/sdk/rule_api/src/com/android/ide/common/api/ |
IClientRulesEngine.java | 39 * Returns the FQCN for which the rule was loaded. 55 * Loads and returns an {@link IViewRule} for the given FQCN. 57 * @param fqcn A non-null, non-empty FQCN for the rule to load. 58 * @return The rule that best matches the given FQCN according to the 59 * inheritance chain. Rules are cached and requesting the same FQCN twice 63 IViewRule loadRule(@NonNull String fqcn); 72 * @param fqcn a fully qualified class name for an Android view class 76 IViewMetadata getMetadata(@NonNull String fqcn); 265 * @param fqcn The fully qualified class name of the view to generate a unique id fo [all...] |
/sdk/lint/libs/lint_api/src/com/android/tools/lint/client/api/ |
SdkInfo.java | 60 * @param fqcn the fully qualified class name of the view 64 public abstract String getParentViewClass(@NonNull String fqcn);
|
DefaultSdkInfo.java | 87 public String getParentViewClass(@NonNull String fqcn) { 88 int index = fqcn.lastIndexOf('.'); 90 fqcn = fqcn.substring(index + 1); 93 String parent = PARENTS.get(fqcn); 110 // Do analysis just on non-fqcn paths
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
ProjectCallback.java | 228 private String getShortClassName(String fqcn) { 231 if (fqcn.startsWith("android.")) { //$NON-NLS-1$ 233 int first = fqcn.indexOf('.'); 234 int last = fqcn.lastIndexOf('.'); 236 return fqcn.substring(0, first) + ".." + fqcn.substring(last); //$NON-NLS-1$ 241 int first = fqcn.indexOf('.'); 242 first = fqcn.indexOf('.', first + 1); 243 int last = fqcn.lastIndexOf('.'); 245 return fqcn.substring(0, first) + ".." + fqcn.substring(last); //$NON-NLS-1 507 String fqcn = clz.getName(); local 535 String fqcn = viewObject.getClass().getName(); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
ViewMetadataRepository.java | 148 * @param element the element to look up the fqcn for 149 * @return the fqcn of the view the element represents a preview for 248 String fqcn = child.getAttribute("class"); //$NON-NLS-1$ local 249 if (fqcn.length() == 0) { 250 fqcn = defaultFqcn; 274 ViewData view = new ViewData(fqcn, displayName, fillPreference, 295 fqcn, fillPreference, renderMode, resize); 324 // First record map of FQCN to ViewElementDescriptor such that we can quickly 330 String fqcn = view.getFullClassName(); local 331 if (fqcn == null) 353 String fqcn = view.getFcqn(); local [all...] |
ClientRulesEngine.java | 107 public ClientRulesEngine(RulesEngine rulesEngine, String fqcn) { 109 mFqcn = fqcn; 126 public IViewRule loadRule(String fqcn) { 127 return mRulesEngine.loadRule(fqcn, fqcn); 169 public IViewMetadata getMetadata(final String fqcn) { 174 return fqcn.substring(fqcn.lastIndexOf('.') + 1); 179 return ViewMetadataRepository.get().getFillPreference(fqcn); 184 return mRulesEngine.getEditor().getCanvasControl().getInsets(fqcn); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
WrapInRefactoringTest.java | 45 private void checkRefactoring(String basename, String fqcn, String... ids) throws Exception { 55 refactoring.setType(fqcn);
|
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
Api.java | 72 public ApiClass getClass(String fqcn) { 73 return mClasses.get(fqcn);
|
ApiDetector.java | 270 String fqcn = className.replace('/', '.').replace('$', '.'); local 273 api, minSdk, fqcn); 293 String fqcn = type.replace('/', '.').replace('$', '.'); local 296 api, minSdk, fqcn); 322 String fqcn = owner.replace('/', '.') + '#' + name; local 325 api, minSdk, fqcn); 346 String fqcn = owner.replace('/', '.') + '#' + name; local 349 api, minSdk, fqcn); 360 String fqcn = className.replace('/', '.'); local 363 api, minSdk, fqcn); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
FragmentMenu.java | 98 String fqcn = getFragmentClass(element); local 99 if (fqcn != null) { 107 IType type = javaProject.findType(fqcn); 180 String fqcn = element.getAttribute(ATTR_CLASS); local 181 if (fqcn == null || fqcn.length() == 0) { 182 fqcn = element.getAttributeNS(ANDROID_URI, ATTR_NAME); 184 if (fqcn != null && fqcn.length() > 0) { 185 return fqcn; [all...] |
SimpleElement.java | 52 * @param fqcn A fully qualified class name of a View to inflate, e.g. 60 public SimpleElement(String fqcn, String parentFqcn, Rect bounds, Rect parentBounds) { 61 mFqcn = fqcn; 197 String fqcn = null; local 220 fqcn = value; 249 if (version != null && fqcn != null && fqcn.length() > 0) { 250 e = new SimpleElement(fqcn, parent, bounds, pbounds);
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ |
Main.java | 113 for (String fqcn : notRenamed) { 114 log.error("- Class not found: %s", fqcn.replace('/', '.'));
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
LayoutTestBase.java | 222 public IViewMetadata getMetadata(final String fqcn) { 227 return fqcn.substring(fqcn.lastIndexOf('.') + 1); 232 return ViewMetadataRepository.get().getFillPreference(fqcn); 242 return ViewMetadataRepository.get().getTopAttributes(fqcn); 253 public IViewRule loadRule(String fqcn) {
|
/cts/tools/vm-tests-tf/src/util/build/ |
BuildDalvikSuite.java | 169 String fqcn = test.getClass().getName(); // e.g. 173 if (restrictTo != null && !fqcn.contains(restrictTo)) return; 176 List<String> li = map.get(fqcn); 180 map.put(fqcn, li); 273 String fqcn = entry.getKey(); 274 int lastDotPos = fqcn.lastIndexOf('.'); 275 String pName = fqcn.substring(0, lastDotPos); 276 String classOnlyName = fqcn.substring(lastDotPos + 1);
|