Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 85) sorted by relevance

1234

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormatter.java48 FormattingContext context = new FormattingContext(); in format() local
49 context.setProperty(FormattingContextProperties.CONTEXT_DOCUMENT, Boolean.FALSE); in format()
50 context.setProperty(FormattingContextProperties.CONTEXT_REGION, region); in format()
52 format(document, context); in format()
61 public void format(IDocument document, IFormattingContext context) { in format() argument
62 context.setProperty(FormattingContextProperties.CONTEXT_MEDIUM, document); in format()
63 formatMaster(context, document, 0, document.getLength()); in format()
66 protected void formatMaster(IFormattingContext context, IDocument document, int offset, in formatMaster() argument
77 context.setProperty(FormattingContextProperties.CONTEXT_PARTITION, in formatMaster()
79 strategy.formatterStarts(context); in formatMaster()
DXmlFormatProcessor.java51 FormattingContext context = new FormattingContext(); in formatModel() local
52 context.setProperty(CONTEXT_MEDIUM, document); in formatModel()
53 context.setProperty(CONTEXT_PARTITION, new TypedPosition(start, length, in formatModel()
55 context.setProperty(CONTEXT_REGION, new org.eclipse.jface.text.Region(start, length)); in formatModel()
56 formatter.formatMaster(context, document, start, length); in formatModel()
/sdk/templates/other/AppWidget/root/src/app_package/
DAppWidget.java.ftl17 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
21 updateAppWidget(context, appWidgetManager, appWidgetIds[i]);
27 public void onDeleted(Context context, int[] appWidgetIds) {
31 ${className}ConfigureActivity.deleteTitlePref(context, appWidgetIds[i]);
37 public void onEnabled(Context context) {
42 public void onDisabled(Context context) {
46 static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,
50 CharSequence widgetText = ${className}ConfigureActivity.loadTitlePref(context, appWidgetId);
52 CharSequence widgetText = context.getString(R.string.appwidget_text);
55 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.${class_name});
DAppWidgetConfigureActivity.java.ftl57 final Context context = ${className}ConfigureActivity.this;
61 saveTitlePref(context,mAppWidgetId,widgetText);
64 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
65 ${className}.updateAppWidget(context, appWidgetManager, mAppWidgetId);
76 static void saveTitlePref(Context context, int appWidgetId, String text) {
77 SharedPreferences.Editor prefs = context.getSharedPreferences(PREFS_NAME, 0).edit();
84 static String loadTitlePref(Context context, int appWidgetId) {
85 SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0);
90 return context.getString(R.string.appwidget_text);
94 static void deleteTitlePref(Context context, int appWidgetId) {
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/
DActivator.java42 public void start(BundleContext context) throws Exception { in start() argument
43 super.start(context); in start()
48 public void stop(BundleContext context) throws Exception { in stop() argument
50 super.stop(context); in stop()
58 BundleContext context = mPlugin.getBundle().getBundleContext(); in getService() local
59 ServiceReference ref = context.getServiceReference(clazz.getName()); in getService()
60 return (ref != null) ? (T) context.getService(ref) : null; in getService()
/sdk/eclipse/plugins/com.android.ide.eclipse.traceview/src/com/android/ide/eclipse/traceview/
DTraceviewPlugin.java43 public void start(BundleContext context) throws Exception { in start() argument
44 super.start(context); in start()
53 public void stop(BundleContext context) throws Exception { in stop() argument
55 super.stop(context); in stop()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DJavaQuickAssistant.java37 public boolean hasAssists(IInvocationContext context) throws CoreException { in hasAssists() argument
42 public IJavaCompletionProposal[] getAssists(IInvocationContext context, in getAssists() argument
58 IProject project = context.getCompilationUnit().getJavaProject().getProject(); in getAssists()
63 ASTNode coveringNode = context.getCoveringNode(); in getAssists()
67 new ExtractStringProposal(context) in getAssists()
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/
DMonitorPlugin.java34 public void start(BundleContext context) throws Exception { in start() argument
35 super.start(context); in start()
41 public void stop(BundleContext context) throws Exception { in stop() argument
43 super.stop(context); in stop()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DHyperlinks.java193 private static boolean isAttributeNameLink(XmlContext context) { in isAttributeNameLink() argument
209 private static boolean isAttributeValueLink(XmlContext context) { in isAttributeValueLink() argument
211 Attr attribute = context.getAttribute(); in isAttributeValueLink()
216 if (isClassAttribute(context) || isOnClickAttribute(context) in isAttributeValueLink()
217 || isManifestName(context) || isStyleAttribute(context)) { in isAttributeValueLink()
241 private static boolean isElementNameLink(XmlContext context) { in isElementNameLink() argument
242 if (isClassElement(context)) { in isElementNameLink()
253 private static boolean isActivity(XmlContext context) { in isActivity() argument
256 Attr attribute = context.getAttribute(); in isActivity()
257 String tagName = context.getElement().getTagName(); in isActivity()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DResourceManager.java175 public void processDelta(IResourceDelta delta, IdeScanningContext context) { in processDelta() argument
176 doProcessDelta(delta, context); in processDelta()
180 ResourceRepository repo = context.getRepository(); in processDelta()
193 private void doProcessDelta(IResourceDelta delta, IdeScanningContext context) { in doProcessDelta() argument
207 context.startScanning(r); in doProcessDelta()
208 updateFile((IFile)r, delta.getMarkerDeltas(), kind, context); in doProcessDelta() local
209 context.finishScanning(r); in doProcessDelta()
211 updateFolder((IFolder)r, kind, context); in doProcessDelta() local
218 processDelta(child, context); in doProcessDelta()
227 private void updateFolder(IFolder folder, int kind, IdeScanningContext context) { in updateFolder() argument
[all …]
/sdk/emulator/opengl/host/libs/Translator/EGL/
DMacNative.h38 void nsWindowMakeCurrent(void* context,void* nativeWin);
39 void nsPBufferMakeCurrent(void* context,void* nativePBuffer,int level);
42 void nsDestroyContext(void* context);
DEglContext.cpp29 EglContext::EglContext(EglDisplay *dpy, EGLNativeContextType context,ContextPtr shared_context, in EglContext() argument
32 m_native(context), in EglContext()
41 mngr->attachShareGroup(context,shared_context->nativeType()): in EglContext()
42 mngr->createShareGroup(context); in EglContext()
DMacNative.m23 // and adds binding state for the context to know
25 // This is because after the context was bounded to
30 // that a window is bounded to the context it will clear the
32 // Thererfore we call clearDrawable only when we bind the context
88 void nsPBufferMakeCurrent(void* context,void* nativePBuffer,int level){
89 EmuGLContext* ctx = (EmuGLContext *)context;
102 void nsWindowMakeCurrent(void* context,void* nativeWin){
103 EmuGLContext* ctx = (EmuGLContext *)context;
129 void nsDestroyContext(void* context){
130 EmuGLContext *ctx = (EmuGLContext*)context;
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/
DShareCodeAction.java26 public static void launch(Context context, CharSequence title) { in launch() argument
27 String shareBody = CodeGenerator.generate(context); in launch()
32 context.startActivity(Intent.createChooser(sharingIntent, title)); in launch()
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/model/
DEditableItem.java76 public static void initIfNecessary(Context context) { in initIfNecessary() argument
79 loadBitmaps(context, LARGE_ICON, LARGE_ICONS); in initIfNecessary()
80 loadBitmaps(context, PICTURE, PICTURES); in initIfNecessary()
84 private static void loadBitmaps(Context context, EditableItem item, int[] bitmapResIds) { in loadBitmaps() argument
86 Resources res = context.getResources(); in loadBitmaps()
204 public String getCaption(Context context) { in getCaption() argument
205 return context.getString(mCaptionId); in getCaption()
208 public String getCategory(Context context) { in getCategory() argument
209 return context.getString(mCategoryId); in getCategory()
/sdk/testapps/customViewTest/libWithCustomView/src/com/android/tests/libwithcustom/
DLabelView.java45 public LabelView(Context context) { in LabelView() argument
46 super(context); in LabelView()
57 public LabelView(Context context, AttributeSet attrs) { in LabelView() argument
58 super(context, attrs); in LabelView()
62 TypedArray a = context.obtainStyledAttributes(attrs, in LabelView()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/
DMultiTouchView.java68 public MultiTouchView(Context context) { in MultiTouchView() argument
69 this(context, null); in MultiTouchView()
77 public MultiTouchView(Context context, AttributeSet attrs) { in MultiTouchView() argument
78 this(context, attrs, 0); in MultiTouchView()
86 public MultiTouchView(Context context, AttributeSet attrs, int defStyle) { in MultiTouchView() argument
87 super(context, attrs, defStyle); in MultiTouchView()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DGlTracePlugin.java60 public void start(BundleContext context) throws Exception { in start() argument
61 super.start(context); in start()
78 public void stop(BundleContext context) throws Exception { in stop() argument
80 super.stop(context); in stop()
/sdk/testapps/customPropAnimTest/src/com/android/custompropertyanimation/
DMyView.java10 public MyView(Context context) { in MyView() argument
11 super(context); in MyView()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DEclipseLintClient.java225 public Document parseXml(@NonNull XmlContext context) { in parseXml() argument
227 IFile file = AdtUtils.fileToIFile(context.file); in parseXml()
229 String path = context.file.getPath(); in parseXml()
243 context.setProperty(MODEL_PROPERTY, model); in parseXml()
329 public void report(@NonNull Context context, @NonNull Issue issue, @NonNull Severity s, in report() argument
739 public @NonNull Location getLocation(@NonNull XmlContext context, @NonNull Node node) { in getLocation() argument
740 IStructuredModel model = (IStructuredModel) context.getProperty(MODEL_PROPERTY); in getLocation()
741 return new LazyLocation(context.file, model.getStructuredDocument(), (IndexedRegion) node); in getLocation()
745 public @NonNull Location getLocation(@NonNull XmlContext context, @NonNull Node node, in getLocation() argument
750 IStructuredModel model = (IStructuredModel) context.getProperty(MODEL_PROPERTY); in getLocation()
[all …]
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/
DMaxHeightScrollView.java27 public MaxHeightScrollView(Context context, AttributeSet attrs) { in MaxHeightScrollView() argument
28 super(context, attrs); in MaxHeightScrollView()
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/generator/
DCodeGenerator.java51 public static String generate(Context context) { in generate() argument
56 sb.append(INDENT + ".setSmallIcon(" + getResourceVar(context, SMALL_ICON) + ")"); in generate()
131 private static String getResourceVar(Context context, EditableItem item) { in getResourceVar() argument
133 String packageName = context.getResources().getResourcePackageName(resId); in getResourceVar()
134 String type = context.getResources().getResourceTypeName(resId); in getResourceVar()
135 String entryName = context.getResources().getResourceEntryName(resId); in getResourceVar()
/sdk/templates/other/Notification/root/src/app_package/
DNotificationHelper.java.ftl49 public static void notify(final Context context,
51 final Resources res = context.getResources();
76 final NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
118 context,
162 context,
177 notify(context, builder.build());
181 private static void notify(final Context context, final Notification notification) {
182 final NotificationManager nm = (NotificationManager) context
196 public static void cancel(final Context context) {
197 final NotificationManager nm = (NotificationManager) context
/sdk/eclipse/plugins/com.android.ide.eclipse.hierarchyviewer/src/com/android/ide/eclipse/hierarchyviewer/
DHierarchyViewerPlugin.java60 public void start(BundleContext context) throws Exception { in start() argument
61 super.start(context); in start()
149 public void stop(BundleContext context) throws Exception { in stop() argument
151 super.stop(context); in stop()
/sdk/templates/other/CustomView/root/src/app_package/
DCustomView.java.ftl26 public ${viewClass}(Context context) {
27 super(context);
31 public ${viewClass}(Context context, AttributeSet attrs) {
32 super(context, attrs);
36 public ${viewClass}(Context context, AttributeSet attrs, int defStyle) {
37 super(context, attrs, defStyle);

1234