HomeSort by relevance Sort by last modified time
    Searched refs:context (Results 176 - 200 of 20653) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
InstallEventReceiver.java 20 import android.content.Context;
36 @NonNull private static EventResultPersister getReceiver(@NonNull Context context) {
40 TemporaryFileManager.getInstallStateFile(context));
48 public void onReceive(Context context, Intent intent) {
49 getReceiver(context).onEventReceived(context, intent);
55 * @param context A context of the current ap
    [all...]
  /external/tensorflow/tensorflow/core/kernels/
base64_ops.cc 29 explicit EncodeBase64Op(OpKernelConstruction* context) : OpKernel(context) {
30 OP_REQUIRES_OK(context, context->GetAttr("pad", &pad_));
33 void Compute(OpKernelContext* context) override {
34 const Tensor& input_tensor = context->input(0);
36 OP_REQUIRES_OK(context, context->allocate_output(0, input_tensor.shape(),
43 OP_REQUIRES_OK(context, Base64Encode(input(i), pad_, &output(i)));
58 void Compute(OpKernelContext* context) override
    [all...]
restore_op.cc 29 explicit RestoreOp(OpKernelConstruction* context) : OpKernel(context) {
31 OP_REQUIRES_OK(context,
32 context->GetAttr("preferred_shard", &preferred_shard));
36 OP_REQUIRES(context, preferred_shard >= 0,
42 void Compute(OpKernelContext* context) override {
43 RestoreTensor(context, &checkpoint::OpenTableTensorSliceReader,
55 explicit RestoreSliceOp(OpKernelConstruction* context) : OpKernel(context) {
57 OP_REQUIRES_OK(context,
    [all...]
  /hardware/qcom/audio/post_proc/
bundle.h 55 int (*init)(effect_context_t *context);
56 int (*release)(effect_context_t *context);
57 int (*reset)(effect_context_t *context);
58 int (*enable)(effect_context_t *context);
59 int (*start)(effect_context_t *context, output_context_t *output);
60 int (*stop)(effect_context_t *context, output_context_t *output);
61 int (*disable)(effect_context_t *context);
62 int (*process)(effect_context_t *context, audio_buffer_t *in, audio_buffer_t *out);
63 int (*set_parameter)(effect_context_t *context, effect_param_t *param, uint32_t size);
64 int (*get_parameter)(effect_context_t *context, effect_param_t *param, uint32_t *size)
    [all...]
reverb.c 98 void reverb_auxiliary_init(reverb_context_t *context)
100 context->auxiliary = true;
101 context->preset = false;
104 void reverb_insert_init(reverb_context_t *context)
106 context->auxiliary = false;
107 context->preset = true;
108 context->cur_preset = REVERB_PRESET_LAST + 1;
109 context->next_preset = REVERB_DEFAULT_PRESET;
112 void reverb_preset_init(reverb_context_t *context)
114 context->auxiliary = false
    [all...]
  /packages/apps/Car/Radio/src/com/android/car/radio/
RadioBandButton.java 19 import android.content.Context;
36 public RadioBandButton(Context context) {
37 super(context);
38 init(context, null);
41 public RadioBandButton(Context context, AttributeSet attrs) {
42 super(context, attrs);
43 init(context, attrs);
46 public RadioBandButton(Context context, AttributeSet attrs, int defStyleAttrs)
    [all...]
  /packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
SuggestionFeatureProvider.java 19 import android.content.Context;
39 public SharedPreferences getSharedPrefs(Context context) {
40 return context.getApplicationContext()
41 .getSharedPreferences(SHARED_PREF_FILENAME, Context.MODE_PRIVATE);
47 public List<Suggestion> getSuggestions(Context context) {
48 final SuggestionParser parser = new SuggestionParser(context);
51 final List<Suggestion> rankedSuggestions = getRanker(context).rankRelevantSuggestions(list);
53 final SuggestionEventStore eventStore = SuggestionEventStore.get(context);
    [all...]
  /packages/apps/TV/tuner/src/com/android/tv/tuner/
TunerPreferences.java 19 import android.content.Context;
39 protected static SharedPreferences getSharedPreferences(Context context) {
40 return context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);
43 public static synchronized int getChannelDataVersion(Context context) {
45 return getSharedPreferences(context)
51 public static synchronized void setChannelDataVersion(Context context, int version)
    [all...]
  /cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
AppWidgetProviderCallbacks.java 21 import android.content.Context;
36 public abstract void onUpdate(Context context, AppWidgetManager appWidgetManager,
39 public abstract void onAppWidgetOptionsChanged(Context context,
42 public abstract void onDeleted(Context context, int[] appWidgetIds);
44 public abstract void onEnabled(Context context);
46 public abstract void onDisabled(Context context)
    [all...]
  /device/sample/apps/LeanbackWidget/src/com/google/android/leanbacklauncher/partnerwidget/
ClockWidgetProvider.java 6 import android.content.Context;
21 public void onReceive(Context context, Intent intent) {
32 writeConnectivity(context, connectionStatus > INET_CONDITION_THRESHOLD);
35 update(context);
38 super.onReceive(context, intent);
42 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager,
44 update(context);
47 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
    [all...]
  /external/libunwind/android/tests/
local_test.cpp 27 unw_context_t* context; local
28 context = reinterpret_cast<unw_context_t*>(malloc(sizeof(unw_context_t) + EXTRA_CONTEXT_BYTES));
29 ASSERT_TRUE(context != NULL);
30 uint8_t* extra = reinterpret_cast<uint8_t*>(reinterpret_cast<uintptr_t>(context) + sizeof(unw_context_t));
34 ASSERT_TRUE(unw_getcontext(context) == 0);
40 free(context);
  /external/mesa3d/src/gallium/state_trackers/va/
picture_mpeg12.c 30 void vlVaHandlePictureParameterBufferMPEG12(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf)
35 context->desc.mpeg12.num_slices = 0;
38 vlVaGetReferenceFrame(drv, mpeg2->forward_reference_picture, &context->desc.mpeg12.ref[0]);
39 vlVaGetReferenceFrame(drv, mpeg2->backward_reference_picture, &context->desc.mpeg12.ref[1]);
40 context->desc.mpeg12.picture_coding_type = mpeg2->picture_coding_type;
41 context->desc.mpeg12.f_code[0][0] = ((mpeg2->f_code >> 12) & 0xf) - 1;
42 context->desc.mpeg12.f_code[0][1] = ((mpeg2->f_code >> 8) & 0xf) - 1;
43 context->desc.mpeg12.f_code[1][0] = ((mpeg2->f_code >> 4) & 0xf) - 1;
44 context->desc.mpeg12.f_code[1][1] = (mpeg2->f_code & 0xf) - 1;
45 context->desc.mpeg12.intra_dc_precision
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMenuInflater.java 3 import android.content.Context;
18 private Context context; field in class:ShadowMenuInflater
20 public void __constructor__(Context context) {
21 this.context = context;
26 shadowOf(context.getApplicationContext()).getResourceLoader().inflateMenu(context, resource, root);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
CustomStateView.java 3 import android.content.Context;
14 public CustomStateView(Context context) {
15 super(context);
18 public CustomStateView(Context context, AttributeSet attrs) {
19 super(context, attrs);
22 public CustomStateView(Context context, AttributeSet attrs, int defStyle) {
23 super(context, attrs, defStyle)
    [all...]
  /external/snakeyaml/src/test/java/examples/
SpringTest.java 20 import org.springframework.context.ApplicationContext;
21 import org.springframework.context.support.ClassPathXmlApplicationContext;
26 ApplicationContext context = new ClassPathXmlApplicationContext("examples/spring.xml"); local
27 Yaml yaml = (Yaml) context.getBean("standardYaml");
30 yaml = (Yaml) context.getBean("javabeanYaml");
33 yaml = (Yaml) context.getBean("snakeYaml");
  /external/tensorflow/tensorflow/core/lib/png/
png_io.cc 122 void CommonFreeDecode(DecodeContext* context) {
123 if (context->png_ptr) {
124 png_destroy_read_struct(&context->png_ptr,
125 context->info_ptr ? &context->info_ptr : nullptr,
127 context->png_ptr = nullptr;
128 context->info_ptr = nullptr;
135 DecodeContext context; local
144 &context)) {
148 *width = static_cast<int>(context.width)
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
BatterySaverUtils.java 20 import android.content.Context;
53 private final Context mContext;
66 public Parameters(Context context) {
67 mContext = context;
91 public static synchronized boolean setPowerSaveMode(Context context,
96 final ContentResolver cr = context.getContentResolver();
98 if (enable && needFirstTimeWarning && maybeShowBatterySaverConfirmation(context)) {
102 setBatterySaverConfirmationAcknowledged(context);
    [all...]
  /frameworks/base/tests/Assist/src/com/android/test/assist/
ScrimView.java 20 import android.content.Context;
26 public ScrimView(Context context) {
27 super(context);
30 public ScrimView(Context context, @Nullable AttributeSet attrs) {
31 super(context, attrs);
34 public ScrimView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
35 super(context, attrs, defStyleAttr)
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
ShowInstallAppNotificationReceiver.java 20 import android.content.Context;
31 public static Intent get(Context context, String pkgName) {
32 Intent intent = new Intent(context, ShowInstallAppNotificationReceiver.class);
38 public void onReceive(Context context, Intent intent) {
41 if (!UiccProfile.isPackageInstalled(context, pkgName)) {
42 InstallCarrierAppUtils.showNotification(context, pkgName);
43 InstallCarrierAppUtils.registerPackageInstallReceiver(context);
  /frameworks/support/coordinatorlayout/src/androidTest/java/androidx/coordinatorlayout/custom/
CustomTextView2.java 18 import android.content.Context;
27 public CustomTextView2(Context context) {
28 super(context);
31 public CustomTextView2(Context context, AttributeSet attrs) {
32 super(context, attrs);
35 public CustomTextView2(Context context, AttributeSet attrs, int defStyleAttr) {
36 super(context, attrs, defStyleAttr)
    [all...]
  /frameworks/support/leanback/src/main/java/androidx/leanback/widget/
VideoSurfaceView.java 19 import android.content.Context;
34 public VideoSurfaceView(Context context) {
35 super(context);
38 public VideoSurfaceView(Context context, AttributeSet attrs) {
39 super(context, attrs);
42 public VideoSurfaceView(Context context, AttributeSet attrs, int defStyleAttr) {
43 super(context, attrs, defStyleAttr)
    [all...]
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
CustomCollapsibleView.java 19 import android.content.Context;
27 public CustomCollapsibleView(Context context) {
28 this(context, null, 0);
31 public CustomCollapsibleView(Context context,
33 this(context, attrs, 0);
36 public CustomCollapsibleView(Context context,
38 super(context, attrs, defStyleAttr)
    [all...]
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/custom/
CustomDrawerLayout.java 18 import android.content.Context;
27 public CustomDrawerLayout(Context context) {
28 super(context);
31 public CustomDrawerLayout(Context context, AttributeSet attrs) {
32 super(context, attrs);
35 public CustomDrawerLayout(Context context, AttributeSet attrs, int defStyle) {
36 super(context, attrs, defStyle)
    [all...]
FitWindowsContentLayout.java 19 import android.content.Context;
29 public FitWindowsContentLayout(Context context) {
30 super(context);
33 public FitWindowsContentLayout(Context context, AttributeSet attrs) {
34 super(context, attrs);
37 public FitWindowsContentLayout(Context context, AttributeSet attrs, int defStyleAttr) {
38 super(context, attrs, defStyleAttr)
    [all...]
  /frameworks/support/wear/src/main/java/androidx/wear/internal/widget/
ResourcesUtil.java 19 import android.content.Context;
36 public static int getScreenWidthPx(Context context) {
37 return context.getResources().getDisplayMetrics().widthPixels;
43 public static int getScreenHeightPx(Context context) {
44 return context.getResources().getDisplayMetrics().heightPixels;
51 public static int getFractionOfScreenPx(Context context, int screenPx, @FractionRes int resId) {
52 float marginPercent = context.getResources().getFraction(resId, 1, 1)
    [all...]

Completed in 395 milliseconds

1 2 3 4 5 6 78 91011>>