Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 118) sorted by relevance

12345

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/grid/
DGridModelTest.java50 GridModel model = GridModel.get(null, targetNode, null); in testReadModel1() local
51 assertEquals(3, model.declaredColumnCount); in testReadModel1()
52 assertEquals(1, model.actualColumnCount); in testReadModel1()
53 assertEquals(1, model.actualRowCount); in testReadModel1()
60 model = GridModel.get(null, targetNode, null); in testReadModel1()
61 assertEquals(3, model.declaredColumnCount); in testReadModel1()
62 assertEquals(3, model.actualColumnCount); in testReadModel1()
63 assertEquals(2, model.actualRowCount); in testReadModel1()
79 GridModel model = GridModel.get(new LayoutTestBase.TestRulesEngine(targetNode.getFqcn()), in testSplitColumn() local
81 assertEquals(3, model.declaredColumnCount); in testSplitColumn()
[all …]
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/generator/
DCodeGenerator.java18 import static com.android.notificationstudio.model.EditableItem.ACTION1_ICON;
19 import static com.android.notificationstudio.model.EditableItem.ACTION1_TEXT;
20 import static com.android.notificationstudio.model.EditableItem.ACTION2_ICON;
21 import static com.android.notificationstudio.model.EditableItem.ACTION2_TEXT;
22 import static com.android.notificationstudio.model.EditableItem.ACTION3_ICON;
23 import static com.android.notificationstudio.model.EditableItem.ACTION3_TEXT;
24 import static com.android.notificationstudio.model.EditableItem.BIG_CONTENT_TITLE;
25 import static com.android.notificationstudio.model.EditableItem.BIG_TEXT;
26 import static com.android.notificationstudio.model.EditableItem.CONTENT_INFO;
27 import static com.android.notificationstudio.model.EditableItem.CONTENT_TEXT;
[all …]
DNotificationGenerator.java18 import static com.android.notificationstudio.model.EditableItem.ACTION1_ICON;
19 import static com.android.notificationstudio.model.EditableItem.ACTION1_TEXT;
20 import static com.android.notificationstudio.model.EditableItem.ACTION2_ICON;
21 import static com.android.notificationstudio.model.EditableItem.ACTION2_TEXT;
22 import static com.android.notificationstudio.model.EditableItem.ACTION3_ICON;
23 import static com.android.notificationstudio.model.EditableItem.ACTION3_TEXT;
24 import static com.android.notificationstudio.model.EditableItem.BIG_CONTENT_TITLE;
25 import static com.android.notificationstudio.model.EditableItem.BIG_TEXT;
26 import static com.android.notificationstudio.model.EditableItem.CONTENT_INFO;
27 import static com.android.notificationstudio.model.EditableItem.CONTENT_TEXT;
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DDomUtilities.java166 IStructuredModel model = modelManager.getExistingModelForRead(file); in getDocument() local
167 if (model == null) { in getDocument()
168 model = modelManager.getModelForRead(file); in getDocument()
170 if (model != null) { in getDocument()
171 if (model instanceof IDOMModel) { in getDocument()
172 IDOMModel domModel = (IDOMModel) model; in getDocument()
177 model.releaseFromRead(); in getDocument()
196 IStructuredModel model = editor.getModelForRead(); in getDocument() local
198 if (model instanceof IDOMModel) { in getDocument()
199 IDOMModel domModel = (IDOMModel) model; in getDocument()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRefactoringUtil.java60 public static void fixModel(IStructuredModel model, IDocument document) { in fixModel() argument
61 if (model != null) { in fixModel()
62 model.releaseFromRead(); in fixModel()
64 model = null; in fixModel()
69 model = StructuredModelManager.getModelManager().getExistingModelForEdit(document); in fixModel()
70 if (model != null) { in fixModel()
71 model.save(); in fixModel()
80 if (model != null) { in fixModel()
81 model.releaseFromEdit(); in fixModel()
DAndroidTypeMoveParticipant.java226 IStructuredModel model = null; in addXmlFileChanges() local
228 model = modelManager.getExistingModelForRead(file); in addXmlFileChanges()
229 if (model == null) { in addXmlFileChanges()
230 model = modelManager.getModelForRead(file); in addXmlFileChanges()
232 if (model != null) { in addXmlFileChanges()
233 IStructuredDocument document = model.getStructuredDocument(); in addXmlFileChanges()
234 if (model instanceof IDOMModel) { in addXmlFileChanges()
235 IDOMModel domModel = (IDOMModel) model; in addXmlFileChanges()
264 if (model != null) { in addXmlFileChanges()
265 model.releaseFromRead(); in addXmlFileChanges()
DAndroidTypeRenameParticipant.java363 IStructuredModel model = null; in addXmlFileChanges() local
365 model = modelManager.getExistingModelForRead(file); in addXmlFileChanges()
366 if (model == null) { in addXmlFileChanges()
367 model = modelManager.getModelForRead(file); in addXmlFileChanges()
369 if (model != null) { in addXmlFileChanges()
370 IStructuredDocument document = model.getStructuredDocument(); in addXmlFileChanges()
371 if (model instanceof IDOMModel) { in addXmlFileChanges()
372 IDOMModel domModel = (IDOMModel) model; in addXmlFileChanges()
405 if (model != null) { in addXmlFileChanges()
406 model.releaseFromRead(); in addXmlFileChanges()
DAndroidPackageRenameParticipant.java386 IStructuredModel model = null;
388 model = modelManager.getExistingModelForRead(file);
389 if (model == null) {
390 model = modelManager.getModelForRead(file);
392 if (model != null) {
393 IStructuredDocument document = model.getStructuredDocument();
394 if (model instanceof IDOMModel) {
395 IDOMModel domModel = (IDOMModel) model;
424 if (model != null) {
425 model.releaseFromRead();
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DDocumentFix.java36 protected abstract void apply(IDocument document, IStructuredModel model, Node node, in apply() argument
50 IStructuredModel model = manager.getModelForEdit((IStructuredDocument) document); in apply() local
53 apply(document, model, node, start, end); in apply()
55 model.releaseFromEdit(); in apply()
DEclipseLintClient.java221 IStructuredModel model = null; in getXmlParser() local
229 model = modelManager.getModelForRead(file); in getXmlParser()
230 if (model instanceof IDOMModel) { in getXmlParser()
231 context.setProperty(MODEL_PROPERTY, model); in getXmlParser()
232 IDOMModel domModel = (IDOMModel) model; in getXmlParser()
246 IStructuredModel model = (IStructuredModel) context.getProperty(MODEL_PROPERTY); in getXmlParser() local
247 return new LazyLocation(context.file, model.getStructuredDocument(), in getXmlParser()
257 IStructuredModel model = (IStructuredModel) context.getProperty(MODEL_PROPERTY); in getXmlParser() local
260 model.getStructuredDocument(), region); in getXmlParser()
283 IStructuredModel model = (IStructuredModel) context.getProperty(MODEL_PROPERTY); in getXmlParser() local
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategy.java138 IStructuredModel model = modelManager.getModelForEdit(structuredDocument); in format() local
139 if (model != null) { in format()
141 TextEdit edit = format(model, mRegion.getOffset(), in format()
145 model.aboutToChangeModel(); in format()
149 model.changedModel(); in format()
154 model.releaseFromEdit(); in format()
175 private static TextEdit format(IStructuredModel model, int start, int length) { in format() argument
179 IStructuredDocument document = model.getStructuredDocument(); in format()
185 if (model instanceof IDOMModel) { in format()
186 IDOMModel domModel = (IDOMModel) model; in format()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DAaptQuickFix.java224 IStructuredModel model = manager.getExistingModelForEdit(doc); in perform() local
225 if (model != null) { in perform()
227 perform(model); in perform()
229 model.releaseFromEdit(); in perform()
238 IStructuredModel model; in perform() local
240 model = manager.getModelForEdit(file); in perform()
241 if (model != null) { in perform()
243 perform(model); in perform()
245 model.releaseFromEdit(); in perform()
255 private IndexedRegion perform(IStructuredModel model) { in perform() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/editors/
DUiAutomatorViewer.java102 UiAutomatorModel model = null; in createPartControl() local
105 model = new UiAutomatorModel(modelFile); in createPartControl()
112 mView.setModel(model, modelFile, null); in createPartControl()
161 ((UiAutomatorViewer) editor).setModel(r.model, r.uiHierarchy, r.screenshot); in openEditor()
169 protected void setModel(UiAutomatorModel model, File modelFile, Image screenshot) { in setModel() argument
170 mView.setModel(model, modelFile, screenshot); in setModel()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/color/
DColorEditorDelegate.java106 IStructuredModel model = getEditor().getModelForRead(); in onDescriptorsChanged() local
107 if (model != null) { in onDescriptorsChanged()
109 Node node = getEditor().getXmlDocument(model).getDocumentElement(); in onDescriptorsChanged()
112 model.releaseFromRead(); in onDescriptorsChanged()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/views/detail/
DICallDetailProvider.java19 import com.android.ide.eclipse.gltrace.model.GLCall;
20 import com.android.ide.eclipse.gltrace.model.GLTrace;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/
DDrawableEditorDelegate.java143 IStructuredModel model = getEditor().getModelForRead(); in onDescriptorsChanged() local
144 if (model != null) { in onDescriptorsChanged()
146 Node node = getEditor().getXmlDocument(model).getDocumentElement(); in onDescriptorsChanged()
149 model.releaseFromRead(); in onDescriptorsChanged()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DEnumXmlPropertyEditor.java23 import org.eclipse.wb.internal.core.model.property.Property;
24 import org.eclipse.wb.internal.core.model.property.editor.AbstractComboPropertyEditor;
25 import org.eclipse.wb.internal.core.model.property.editor.ITextValuePropertyEditor;
DStringXmlPropertyDialog.java23 import org.eclipse.wb.internal.core.model.property.Property;
24 import org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyDialog;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/
DAnimationEditorDelegate.java163 IStructuredModel model = getEditor().getModelForRead(); in onDescriptorsChanged() local
164 if (model != null) { in onDescriptorsChanged()
166 Node node = getEditor().getXmlDocument(model).getDocumentElement(); in onDescriptorsChanged()
169 model.releaseFromRead(); in onDescriptorsChanged()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DEclipseXmlPrettyPrinterTest.java52 IStructuredModel model = DomUtilities.createStructuredModel(xml); in checkFormat() local
53 assertNotNull(model); in checkFormat()
54 model.setBaseLocation(baseLocation); in checkFormat()
56 if (model instanceof IDOMModel) { in checkFormat()
57 IDOMModel domModel = (IDOMModel) model; in checkFormat()
63 XmlFormatStyle style = AndroidXmlFormattingStrategy.guessStyle(model, document); in checkFormat()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DAndroidXmlEditor.java1003 IStructuredModel model = null;
1009 model = getModelForEdit();
1036 model.beginRecording(this, undoLabel);
1040 model.aboutToChangeModel();
1052 if (model != null) {
1086 model.changedModel();
1091 model.endRecording(this);
1099 model.releaseFromEdit();
1206 public final Document getXmlDocument(IStructuredModel model) {
1207 if (model == null) {
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceHelper.java349 IStructuredModel model = null; in createResource() local
351 model = manager.getExistingModelForEdit(file); in createResource()
352 if (model == null) { in createResource()
353 model = manager.getModelForEdit(file); in createResource()
355 if (model instanceof IDOMModel) { in createResource()
356 model.beginRecording(editRequester, String.format("Add %1$s", in createResource()
358 IDOMModel domModel = (IDOMModel) model; in createResource()
361 IStructuredDocument structuredDocument = model.getStructuredDocument(); in createResource()
406 model.save(); in createResource()
412 if (model != null) { in createResource()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/templates/
DSetFolders.java22 import org.eclipse.cdt.core.model.CoreModel;
23 import org.eclipse.cdt.core.model.ICProject;
24 import org.eclipse.cdt.core.model.IPathEntry;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DExtractIncludeRefactoring.java255 IStructuredModel model = null; in computeChanges() local
265 model = modelManager.getModelForRead(file); in computeChanges()
266 if (model instanceof IDOMModel) { in computeChanges()
267 IDOMModel domModel = (IDOMModel) model; in computeChanges()
310 if (model != null) { in computeChanges()
311 model.releaseFromRead(); in computeChanges()
363 IStructuredModel model = null; in handleIncludingFile() local
365 model = StructuredModelManager.getModelManager().getModelForRead(sourceFile); in handleIncludingFile()
366 IStructuredDocument doc = model.getStructuredDocument(); in handleIncludingFile()
387 if (model != null) { in handleIncludingFile()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/descriptors/
DClassAttributeDescriptor.java22 import com.android.ide.eclipse.adt.internal.editors.manifest.model.UiClassAttributeNode;
23 import com.android.ide.eclipse.adt.internal.editors.manifest.model.UiClassAttributeNode.IPostTypeCr…

12345