Searched refs:context (Results 201 - 225 of 3259) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/view/textclassifier/
H A DSmartSelection.java45 * Given a string context and current selection, computes the SmartSelection suggestion.
47 * The begin and end are character indices into the context UTF8 string. selectionBegin is the
54 public int[] suggest(String context, int selectionBegin, int selectionEnd) { argument
55 return nativeSuggest(mCtx, context, selectionBegin, selectionEnd);
59 * Given a string context and current selection, classifies the type of the selected text.
61 * The begin and end params are character indices in the context string.
67 String context, int selectionBegin, int selectionEnd, int hintFlags) {
68 return nativeClassifyText(mCtx, context, selectionBegin, selectionEnd, hintFlags);
95 long context, String text, int selectionBegin, int selectionEnd);
98 long context, Strin
66 classifyText( String context, int selectionBegin, int selectionEnd, int hintFlags) argument
94 nativeSuggest( long context, String text, int selectionBegin, int selectionEnd) argument
97 nativeClassifyText( long context, String text, int selectionBegin, int selectionEnd, int hintFlags) argument
100 nativeClose(long context) argument
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DFood.java34 public Icon getIcon(Context context) { argument
36 TypedArray icons = context.getResources().obtainTypedArray(R.array.food_icons);
43 return Icon.createWithResource(context, sIcons[mType]);
46 public String getName(Context context) { argument
48 sNames = context.getResources().getStringArray(R.array.food_names);
53 public long getInterval(Context context) { argument
54 return context.getResources().getIntArray(R.array.food_intervals)[mType];
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DUserUtil.java27 public static void deleteUserWithPrompt(Context context, int userId, argument
29 new RemoveUserDialog(context, userId, userSwitcherController).show();
38 public RemoveUserDialog(Context context, int userId, argument
40 super(context);
42 setMessage(context.getString(R.string.user_remove_user_message));
44 context.getString(android.R.string.cancel), this);
46 context.getString(R.string.user_remove_user_remove), this);
/frameworks/base/services/core/java/com/android/server/webkit/
H A DSystemInterface.java41 public String getUserChosenWebViewProvider(Context context); argument
42 public void updateUserSetting(Context context, String newProviderName); argument
48 public void uninstallAndDisablePackageForAllUsers(Context context, String packageName); argument
49 public void enablePackageForAllUsers(Context context, String packageName, boolean enable); argument
61 public List<UserPackage> getPackageInfoForProviderAllUsers(Context context, argument
64 public int getMultiProcessSetting(Context context); argument
65 public void setMultiProcessSetting(Context context, int value); argument
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestViewDrawText.java33 public BiDiTestViewDrawText(Context context) { argument
34 this(context, null);
37 public BiDiTestViewDrawText(Context context, AttributeSet attrs) { argument
38 this(context, attrs, 0);
41 public BiDiTestViewDrawText(Context context, AttributeSet attrs, int defStyle) { argument
42 super(context, attrs, defStyle);
44 final TypedArray a = context.obtainStyledAttributes(attrs,
/frameworks/support/compat/java/android/support/v4/view/
H A DViewConfigurationCompat.java74 * @param context Used to locate a resource value.
81 @NonNull Context context) {
85 return getLegacyScrollFactor(config, context);
91 * @param context Used to locate a resource value.
98 @NonNull Context context) {
102 return getLegacyScrollFactor(config, context);
106 private static float getLegacyScrollFactor(ViewConfiguration config, Context context) { argument
116 if (context.getTheme().resolveAttribute(
118 return outValue.getDimension(context.getResources().getDisplayMetrics());
80 getScaledHorizontalScrollFactor(@onNull ViewConfiguration config, @NonNull Context context) argument
97 getScaledVerticalScrollFactor(@onNull ViewConfiguration config, @NonNull Context context) argument
/frameworks/support/fragment/java/android/support/v4/app/
H A DBaseFragmentActivityApi14.java38 public View onCreateView(View parent, String name, Context context, AttributeSet attrs) { argument
39 final View v = dispatchFragmentsOnCreateView(parent, name, context, attrs);
41 return super.onCreateView(parent, name, context, attrs);
47 public View onCreateView(String name, Context context, AttributeSet attrs) { argument
48 final View v = dispatchFragmentsOnCreateView(null, name, context, attrs);
50 return super.onCreateView(name, context, attrs);
56 Context context, AttributeSet attrs);
55 dispatchFragmentsOnCreateView(View parent, String name, Context context, AttributeSet attrs) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DListRowHoverCardView.java33 public ListRowHoverCardView(Context context) { argument
34 this(context, null);
37 public ListRowHoverCardView(Context context, AttributeSet attrs) { argument
38 this(context, attrs, 0);
41 public ListRowHoverCardView(Context context, AttributeSet attrs, int defStyle) { argument
42 super(context, attrs, defStyle);
43 LayoutInflater inflater = LayoutInflater.from(context);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuWrapperFactory.java39 public static Menu wrapSupportMenu(Context context, SupportMenu supportMenu) { argument
40 return new MenuWrapperICS(context, supportMenu);
43 public static MenuItem wrapSupportMenuItem(Context context, SupportMenuItem supportMenuItem) { argument
45 return new MenuItemWrapperJB(context, supportMenuItem);
47 return new MenuItemWrapperICS(context, supportMenuItem);
51 public static SubMenu wrapSupportSubMenu(Context context, SupportSubMenu supportSubMenu) { argument
52 return new SubMenuWrapperICS(context, supportSubMenu);
/frameworks/av/camera/include/camera/ndk/
H A DNdkCameraCaptureSession.h58 * @param context The optional application context provided by user in
62 typedef void (*ACameraCaptureSession_stateCallback)(void* context, ACameraCaptureSession *session);
65 /// optional application context.
66 void* context; member in struct:ACameraCaptureSession_stateCallbacks
157 * @param context The optional application context provided by user in
169 void* context, ACameraCaptureSession* session,
175 * @param context The optional application context provide
251 void* context; member in struct:ACameraCaptureSession_captureCallbacks
[all...]
/frameworks/av/include/camera/ndk/
H A DNdkCameraCaptureSession.h58 * @param context The optional application context provided by user in
62 typedef void (*ACameraCaptureSession_stateCallback)(void* context, ACameraCaptureSession *session);
65 /// optional application context.
66 void* context; member in struct:ACameraCaptureSession_stateCallbacks
157 * @param context The optional application context provided by user in
169 void* context, ACameraCaptureSession* session,
175 * @param context The optional application context provide
251 void* context; member in struct:ACameraCaptureSession_captureCallbacks
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DSimpleImageFilter.java63 public void process(FilterContext context) { argument
69 Frame output = context.getFrameManager().newFrame(inputFormat);
72 updateProgramWithTarget(inputFormat.getTarget(), context);
84 protected void updateProgramWithTarget(int target, FilterContext context) { argument
88 mProgram = getNativeProgram(context);
92 mProgram = getShaderProgram(context);
102 initProgramInputs(mProgram, context);
107 protected abstract Program getNativeProgram(FilterContext context); argument
109 protected abstract Program getShaderProgram(FilterContext context); argument
H A DInvert.java47 protected Program getNativeProgram(FilterContext context) { argument
52 protected Program getShaderProgram(FilterContext context) { argument
53 return new ShaderProgram(context, mInvertShader);
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchWarningWindow.java30 public LaunchWarningWindow(Context context, ActivityRecord cur, ActivityRecord next) { argument
31 super(context, R.style.Theme_Toast);
39 setTitle(context.getText(R.string.launch_warning_title));
46 icon.setImageDrawable(next.info.applicationInfo.loadIcon(context.getPackageManager()));
48 text.setText(context.getResources().getString(R.string.launch_warning_replace,
49 next.info.applicationInfo.loadLabel(context.getPackageManager()).toString()));
51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager()));
53 text.setText(context.getResources().getString(R.string.launch_warning_original,
54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString()));
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DMockView.java36 public MockView(Context context) { argument
37 this(context, null);
40 public MockView(Context context, AttributeSet attrs) { argument
41 this(context, attrs, 0);
44 public MockView(Context context, AttributeSet attrs, int defStyleAttr) { argument
45 this(context, attrs, defStyleAttr, 0);
48 public MockView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
49 super(context, attrs, defStyleAttr, defStyleRes);
50 mView = new TextView(context, attrs);
/frameworks/support/compat/java/android/support/v4/hardware/display/
H A DDisplayManagerCompat.java54 * Gets an instance of the display manager given the context.
56 public static DisplayManagerCompat getInstance(Context context) { argument
58 DisplayManagerCompat instance = sInstances.get(context);
61 instance = new DisplayManagerCompatApi17Impl(context);
63 instance = new DisplayManagerCompatApi14Impl(context);
65 sInstances.put(context, instance);
110 DisplayManagerCompatApi14Impl(Context context) { argument
111 mWindowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
138 DisplayManagerCompatApi17Impl(Context context) { argument
139 mDisplayManager = (DisplayManager) context
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/plugin/
H A DInputSource.cpp25 const CMappingContext &context, core::log::Logger &logger)
31 context),
36 mId = static_cast<audio_source_t>(context.getItemAsInteger(MappingKeyIdentifier));
23 InputSource(const string &mappingValue, CInstanceConfigurableElement *instanceConfigurableElement, const CMappingContext &context, core::log::Logger &logger) argument
H A DStrategy.cpp26 const CMappingContext &context,
33 context),
38 mId = static_cast<routing_strategy>(context.getItemAsInteger(MappingKeyIdentifier));
24 Strategy(const string &mappingValue, CInstanceConfigurableElement *instanceConfigurableElement, const CMappingContext &context, core::log::Logger& logger) argument
H A DUsage.cpp26 const CMappingContext &context, core::log::Logger &logger)
32 context),
37 mId = static_cast<audio_usage_t>(context.getItemAsInteger(MappingKeyIdentifier));
24 Usage(const string &mappingValue, CInstanceConfigurableElement *instanceConfigurableElement, const CMappingContext &context, core::log::Logger &logger) argument
/frameworks/base/core/java/android/database/sqlite/
H A DSqliteWrapper.java47 public static void checkSQLiteException(Context context, SQLiteException e) { argument
49 Toast.makeText(context, com.android.internal.R.string.low_memory,
56 public static Cursor query(Context context, ContentResolver resolver, Uri uri, argument
62 checkSQLiteException(context, e);
67 public static boolean requery(Context context, Cursor cursor) { argument
72 checkSQLiteException(context, e);
76 public static int update(Context context, ContentResolver resolver, Uri uri, argument
82 checkSQLiteException(context, e);
87 public static int delete(Context context, ContentResolver resolver, Uri uri, argument
93 checkSQLiteException(context,
98 insert(Context context, ContentResolver resolver, Uri uri, ContentValues values) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_ToneGenerator.cpp37 jfieldID context; member in struct:fields_t
45 fields.context);
58 fields.context);
70 fields.context);
80 fields.context);
83 env->SetLongField(thiz, fields.context, 0);
92 env->SetLongField(thiz, fields.context, 0);
106 env->SetLongField(thiz, fields.context, (jlong)lpToneGen);
108 ALOGV("ToneGenerator fields.context: %p", (void*) env->GetLongField(thiz, fields.context));
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/car/
H A DCarSystemUIFactory.java32 Context context) {
33 super.injectDependencies(providers, context);
34 providers.put(VolumeDialogController.class, () -> new CarVolumeDialogController(context));
31 injectDependencies(ArrayMap<Object, DependencyProvider> providers, Context context) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeFactory.java37 Context context = dozeService;
38 SensorManager sensorManager = context.getSystemService(SensorManager.class);
39 AlarmManager alarmManager = context.getSystemService(AlarmManager.class);
42 AmbientDisplayConfiguration config = new AmbientDisplayConfiguration(context);
43 DozeParameters params = new DozeParameters(context);
45 WakeLock wakeLock = WakeLock.createPartial(context, "Doze");
52 createDozeTriggers(context, sensorManager, host, config, params, handler, wakeLock,
54 createDozeUi(context, host, wakeLock, machine, handler, alarmManager),
60 private DozeTriggers createDozeTriggers(Context context, SensorManager sensorManager, argument
64 return new DozeTriggers(context, machin
68 createDozeUi(Context context, DozeHost host, WakeLock wakeLock, DozeMachine machine, Handler handler, AlarmManager alarmManager) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScreenshotServiceErrorReceiver.java33 public void onReceive(final Context context, Intent intent) { argument
36 context.getSystemService(Context.NOTIFICATION_SERVICE);
37 GlobalScreenshot.notifyScreenshotError(context, nm,
/frameworks/base/services/core/java/com/android/server/
H A DBluetoothService.java25 public BluetoothService(Context context) { argument
26 super(context);
27 mBluetoothManagerService = new BluetoothManagerService(context);

Completed in 449 milliseconds

1234567891011>>