Searched refs:context (Results 1 - 25 of 1491) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/nfc/
H A DNfcManager.java46 public NfcManager(Context context) { argument
48 context = context.getApplicationContext();
49 if (context == null) {
51 "context not associated with any application (using a mock context?)");
54 adapter = NfcAdapter.getNfcAdapter(context);
/frameworks/av/libvideoeditor/osal/inc/
H A DM4OSA_Mutex.h38 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_mutexOpen( M4OSA_Context* context );
41 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_mutexLock( M4OSA_Context context,
45 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_mutexUnlock( M4OSA_Context context );
48 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_mutexClose( M4OSA_Context context );
H A DM4OSA_Semaphore.h35 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_semaphoreOpen( M4OSA_Context* context,
39 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_semaphorePost( M4OSA_Context context );
42 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_semaphoreWait( M4OSA_Context context,
46 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_semaphoreClose( M4OSA_Context context );
H A DM4OSA_FileWriter.h47 /** Get the reader context for read & write file. (M4OSA_Context*)*/
72 M4OSA_ERR (*openWrite) (M4OSA_Context* context,
76 M4OSA_ERR (*writeData) (M4OSA_Context context,
80 M4OSA_ERR (*seek) (M4OSA_Context context,
84 M4OSA_ERR (*Flush) (M4OSA_Context context);
85 M4OSA_ERR (*closeWrite) (M4OSA_Context context);
86 M4OSA_ERR (*setOption) (M4OSA_Context context,
90 M4OSA_ERR (*getOption) (M4OSA_Context context,
100 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteOpen (M4OSA_Context* context,
104 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteData (M4OSA_Context context,
[all...]
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
H A DAppWidgetContainerView.java25 public AppWidgetContainerView(Context context) { argument
26 super(context);
29 public AppWidgetContainerView(Context context, AttributeSet attrs) { argument
30 super(context, attrs);
/frameworks/av/libvideoeditor/vss/src/
H A DVideoEditorResampler.cpp81 VideoEditorResampler *context = new VideoEditorResampler(); local
82 context->mResampler = AudioResampler::create(
84 if (context->mResampler == NULL) {
87 context->mResampler->setSampleRate(android::VideoEditorResampler::kFreq32000Hz);
88 context->mResampler->setVolume(0x1000, 0x1000);
89 context->nbChannels = inChannelCount;
90 context->outSamplingRate = sampleRate;
91 context->mInput = NULL;
92 context->mTmpInBuffer = NULL;
94 return ((M4OSA_Context )context);
100 VideoEditorResampler *context = local
115 VideoEditorResampler *context = local
122 VideoEditorResampler *context = local
149 VideoEditorResampler *context = local
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DExtractButton.java27 public ExtractButton(Context context) { argument
28 super(context, null);
31 public ExtractButton(Context context, AttributeSet attrs) { argument
32 super(context, attrs, com.android.internal.R.attr.buttonStyle);
35 public ExtractButton(Context context, AttributeSet attrs, int defStyle) { argument
36 super(context, attrs, defStyle);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardLinearLayout.java29 public KeyguardLinearLayout(Context context) { argument
30 this(context, null, 0);
33 public KeyguardLinearLayout(Context context, AttributeSet attrs) { argument
34 this(context, attrs, 0);
37 public KeyguardLinearLayout(Context context, AttributeSet attrs, int defStyle) { argument
38 super(context, attrs, defStyle);
/frameworks/base/core/java/android/view/
H A DOrientationListener.java43 * @param context for the OrientationListener.
45 public OrientationListener(Context context) { argument
46 mOrientationEventLis = new OrientationEventListenerInternal(context);
52 * @param context for the OrientationListener.
58 public OrientationListener(Context context, int rate) { argument
59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate);
63 OrientationEventListenerInternal(Context context) { argument
64 super(context);
67 OrientationEventListenerInternal(Context context, int rate) { argument
68 super(context, rat
[all...]
/frameworks/base/core/java/android/webkit/
H A DPluginStub.java33 * @param context The current application's Context.
36 public abstract View getEmbeddedView(int NPP, Context context); argument
43 * @param context The current application's Context.
46 public abstract View getFullScreenView(int NPP, Context context); argument
/frameworks/support/v4/honeycomb/android/support/v4/content/
H A DContextCompatHoneycomb.java23 * Implementation of context compatibility that can call Honeycomb APIs.
27 static void startActivities(Context context, Intent[] intents) { argument
28 context.startActivities(intents);
/frameworks/base/core/java/android/service/dreams/
H A DSandman.java54 public static boolean shouldStartDockApp(Context context, Intent intent) { argument
55 ComponentName name = intent.resolveActivity(context.getPackageManager());
62 public static void startDreamByUserRequest(Context context) { argument
63 startDream(context, false);
70 public static void startDreamWhenDockedIfAppropriate(Context context) { argument
71 if (!isScreenSaverEnabled(context)
72 || !isScreenSaverActivatedOnDock(context)) {
77 startDream(context, true);
80 private static void startDream(Context context, boolean docked) { argument
94 (PowerManager)context
108 isScreenSaverEnabled(Context context) argument
116 isScreenSaverActivatedOnDock(Context context) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DPrefs.java25 public static SharedPreferences read(Context context) { argument
26 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE);
29 public static SharedPreferences.Editor edit(Context context) { argument
30 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE).edit();
/frameworks/compile/libbcc/lib/Support/
H A Dsha1.h19 void SHA1Init(SHA1_CTX* context);
20 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
22 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java29 public static Context createThemedContext(Context context, boolean forceDark) { argument
30 boolean isLightTheme = isLightTheme(context);
32 context = new ContextThemeWrapper(context, R.style.Theme_AppCompat);
35 return new ContextThemeWrapper(context, isLightTheme ?
39 public static int getThemeResource(Context context, int attr) { argument
41 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0;
44 public static Drawable getThemeDrawable(Context context, int attr) { argument
45 int res = getThemeResource(context, attr);
46 return res != 0 ? context
49 isLightTheme(Context context) argument
[all...]
/frameworks/support/v4/java/android/support/v4/content/
H A DContextCompat.java51 * @param context Start activities using this activity as the starting context
56 public static boolean startActivities(Context context, Intent[] intents) { argument
57 return startActivities(context, intents, null);
80 * @param context Start activities using this activity as the starting context
87 public static boolean startActivities(Context context, Intent[] intents, argument
91 ContextCompatJellybean.startActivities(context, intents, options);
94 ContextCompatHoneycomb.startActivities(context, intents);
/frameworks/base/core/java/android/widget/
H A DResourceCursorAdapter.java45 * @param context The context where the ListView associated with this adapter is running
51 public ResourceCursorAdapter(Context context, int layout, Cursor c) { argument
52 super(context, c);
54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
64 * @param context The context where the ListView associated with this adapter is running
73 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { argument
74 super(context, c, autoRequery);
76 mInflater = (LayoutInflater) context
90 ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) argument
103 newView(Context context, Cursor cursor, ViewGroup parent) argument
108 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument
[all...]
H A DButton.java98 public Button(Context context) { argument
99 this(context, null);
102 public Button(Context context, AttributeSet attrs) { argument
103 this(context, attrs, com.android.internal.R.attr.buttonStyle);
106 public Button(Context context, AttributeSet attrs, int defStyle) { argument
107 super(context, attrs, defStyle);
H A DCheckBox.java59 public CheckBox(Context context) { argument
60 this(context, null);
63 public CheckBox(Context context, AttributeSet attrs) { argument
64 this(context, attrs, com.android.internal.R.attr.checkboxStyle);
67 public CheckBox(Context context, AttributeSet attrs, int defStyle) { argument
68 super(context, attrs, defStyle);
/frameworks/support/v4/java/android/support/v4/widget/
H A DResourceCursorAdapter.java47 * @param context The context where the ListView associated with this adapter is running
53 public ResourceCursorAdapter(Context context, int layout, Cursor c) { argument
54 super(context, c);
56 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
66 * @param context The context where the ListView associated with this adapter is running
75 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { argument
76 super(context, c, autoRequery);
78 mInflater = (LayoutInflater) context
92 ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) argument
105 newView(Context context, Cursor cursor, ViewGroup parent) argument
110 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java181 public DevicePolicyManager getManager(Context context) { argument
185 mManager = (DevicePolicyManager)context.getSystemService(
195 public ComponentName getWho(Context context) { argument
199 mWho = new ComponentName(context, getClass());
207 * @param context The running context as per {@link #onReceive}.
210 public void onEnabled(Context context, Intent intent) { argument
219 * @param context The running context as per {@link #onReceive}.
224 public CharSequence onDisableRequested(Context context, Inten argument
236 onDisabled(Context context, Intent intent) argument
248 onPasswordChanged(Context context, Intent intent) argument
259 onPasswordFailed(Context context, Intent intent) argument
270 onPasswordSucceeded(Context context, Intent intent) argument
291 onPasswordExpiring(Context context, Intent intent) argument
300 onReceive(Context context, Intent intent) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DCompatTextView.java35 public CompatTextView(Context context) { argument
36 this(context, null);
39 public CompatTextView(Context context, AttributeSet attrs) { argument
40 this(context, attrs, 0);
43 public CompatTextView(Context context, AttributeSet attrs, int defStyle) { argument
44 super(context, attrs, defStyle);
48 TypedArray style = context
57 setTransformationMethod(new AllCapsTransformationMethod(context));
68 public AllCapsTransformationMethod(Context context) { argument
69 mLocale = context
[all...]
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetProvider.java53 * @param context The Context in which the receiver is running.
57 public void onReceive(Context context, Intent intent) { argument
66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds);
74 this.onDeleted(context, new int[] { appWidgetId });
83 this.onAppWidgetOptionsChanged(context, AppWidgetManager.getInstance(context),
88 this.onEnabled(context);
91 this.onDisabled(context);
103 * @param context Th
113 onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) argument
131 onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, int appWidgetId, Bundle newOptions) argument
148 onDeleted(Context context, int[] appWidgetIds) argument
167 onEnabled(Context context) argument
182 onDisabled(Context context) argument
[all...]
/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Semaphore.c42 M4OSA_UInt32 coreID; /* semaphore context identifiant */
53 * @note This function creates and allocates a unique context. It's the
54 * OSAL real time responsibility for managing its context. It must
55 * be freed by the M4OSA_semaphoreClose function. The context
58 * @param context:(OUT) Context of the created semaphore
61 * @return M4ERR_PARAMETER: provided context is NULL
63 * @return M4ERR_CONTEXT_FAILED: the context creation failed
66 M4OSA_ERR M4OSA_semaphoreOpen(M4OSA_Context* context, argument
72 "%d", context, initial_count);
74 M4OSA_DEBUG_IF2(context
129 M4OSA_semaphoreWait(M4OSA_Context context, M4OSA_Int32 timeout) argument
210 M4OSA_semaphorePost(M4OSA_Context context) argument
245 M4OSA_semaphoreClose(M4OSA_Context context) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceCategory.java38 public PreferenceCategory(Context context, AttributeSet attrs, int defStyle) { argument
39 super(context, attrs, defStyle);
42 public PreferenceCategory(Context context, AttributeSet attrs) { argument
43 this(context, attrs, com.android.internal.R.attr.preferenceCategoryStyle);
46 public PreferenceCategory(Context context) { argument
47 this(context, null);

Completed in 825 milliseconds

1234567891011>>