/external/swiftshader/src/OpenGL/compiler/ |
glslang.l | 76 static int ES2_reserved_ES3_keyword(TParseContext *context, int token); 77 static int ES2_keyword_ES3_reserved(TParseContext *context, int token); 78 static int ES2_identifier_ES3_keyword(TParseContext *context, int token); 79 static int uint_constant(TParseContext *context); 82 static int floatsuffix_check(TParseContext* context); 99 TParseContext* context = yyextra; 108 "attribute" { return ES2_keyword_ES3_reserved(context, ATTRIBUTE); } 111 "varying" { return ES2_keyword_ES3_reserved(context, VARYING); } 121 "switch" { return ES2_reserved_ES3_keyword(context, SWITCH); } 122 "case" { return ES2_reserved_ES3_keyword(context, CASE); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/api/ |
vktApiNullHandleTests.cpp | 42 inline void release (Context& context, VkBuffer buffer, const VkAllocationCallbacks* pAllocator) 44 context.getDeviceInterface().destroyBuffer(context.getDevice(), buffer, pAllocator); 47 inline void release (Context& context, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator) 49 context.getDeviceInterface().destroyBufferView(context.getDevice(), bufferView, pAllocator); 52 inline void release (Context& context, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
fake_quant_ops.cc | 59 explicit FakeQuantWithMinMaxArgsOp(OpKernelConstruction* context) 60 : Base::UnaryElementWiseOp(context) { 61 OP_REQUIRES_OK(context, context->GetAttr("min", &min_)); 62 OP_REQUIRES_OK(context, context->GetAttr("max", &max_)); 63 OP_REQUIRES(context, min_ < max_, 67 OP_REQUIRES_OK(context, context->GetAttr("num_bits", &num_bits)); 69 context, IsNumBitsValid(num_bits) [all...] |
count_up_to_op.cc | 27 explicit CountUpToOp(OpKernelConstruction* context) : OpKernel(context) { 28 OP_REQUIRES_OK(context, context->GetAttr("limit", &limit_)); 31 void Compute(OpKernelContext* context) override { 34 mutex_lock l(*context->input_ref_mutex(0)); 35 Tensor tensor = context->mutable_input(0, true); 36 OP_REQUIRES(context, TensorShapeUtils::IsScalar(tensor.shape()), 42 context->SetStatus(errors::OutOfRange("Reached limit of ", limit_)); 49 OP_REQUIRES_OK(context, context->allocate_output("output", TensorShape({}) [all...] |
quantized_pooling_ops.cc | 39 explicit QuantizedAvgPoolingOp(OpKernelConstruction* context) 40 : OpKernel(context) { 41 OP_REQUIRES_OK(context, context->GetAttr("ksize", &ksize_)); 42 OP_REQUIRES(context, ksize_.size() == 4, 45 OP_REQUIRES_OK(context, context->GetAttr("strides", &stride_)); 46 OP_REQUIRES(context, stride_.size() == 4, 49 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)) [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
TranscriptionConfigProvider.java | 18 import android.content.Context; 25 private final Context context; field in class:TranscriptionConfigProvider 27 public TranscriptionConfigProvider(Context context) { 28 this.context = context; 33 && ConfigProviderBindings.get(context) 39 return ConfigProviderBindings.get(context) 46 return ConfigProviderBindings.get(context) [all...] |
/packages/apps/Dialer/java/com/android/dialer/telecom/ |
TelecomUtil.java | 22 import android.content.Context; 62 * Cache for {@link #isVoicemailNumber(Context, PhoneAccountHandle, String)}. Both 64 * comparing with {@link #getVoicemailNumber(Context, PhoneAccountHandle)} will not suffice. 74 public static void showInCallScreen(Context context, boolean showDialpad) { 75 if (hasReadPhoneStatePermission(context)) { 77 getTelecomManager(context).showInCallScreen(showDialpad); 85 public static void silenceRinger(Context context) { 86 if (hasModifyPhoneStatePermission(context)) { [all...] |
/system/core/logcat/ |
logcat.cpp | 125 // Creates a context associated with this logcat instance 127 android_logcat_context_internal* context; local 129 context = (android_logcat_context_internal*)calloc( 131 if (!context) return nullptr; 133 context->fds[0] = -1; 134 context->fds[1] = -1; 135 context->output_fd = -1; 136 context->error_fd = -1; 137 context->maxRotatedLogs = DEFAULT_MAX_ROTATED_LOGS; 139 context->argv_hold.clear() 1698 android_logcat_context_internal* context = ctx; local 1714 android_logcat_context_internal* context = ctx; local 1804 android_logcat_context_internal* context = ctx; local 1811 android_logcat_context_internal* context = *ctx; local [all...] |
/external/mesa3d/src/gallium/state_trackers/va/ |
picture_mpeg4.c | 30 void vlVaHandlePictureParameterBufferMPEG4(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf) 40 context->mpeg4.pps = *mpeg4; 46 context->desc.mpeg4.short_video_header = 49 context->desc.mpeg4.interlaced = mpeg4->vol_fields.bits.interlaced; 53 context->desc.mpeg4.quant_type = mpeg4->vol_fields.bits.quant_type; 54 context->desc.mpeg4.quarter_sample = mpeg4->vol_fields.bits.quarter_sample; 57 context->desc.mpeg4.resync_marker_disable = 63 context->desc.mpeg4.vop_coding_type = mpeg4->vop_fields.bits.vop_coding_type; 67 context->desc.mpeg4.top_field_first = 69 context->desc.mpeg4.alternate_vertical_scan_flag [all...] |
/system/bt/embdrv/sbc/decoder/srce/ |
decoder-sbc.c | 41 PRIVATE OI_STATUS FindSyncword(OI_CODEC_SBC_DECODER_CONTEXT* context, 54 if (context->limitFrameFormat && context->enhancedEnabled) { 55 /* If the context is restricted, only search for specified SYNCWORD */ 57 } else if (context->enhancedEnabled == FALSE) { 69 context->common.frameInfo.enhanced = 87 context->common.frameInfo.enhanced = FALSE; 98 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT* context, 102 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * 103 context->common.frameInfo.nrof_subbands [all...] |
/external/pdfium/fxbarcode/datamatrix/ |
BC_X12Encoder.cpp | 38 void CBC_X12Encoder::Encode(CBC_EncoderContext& context, int32_t& e) { 40 while (context.hasMoreCharacters()) { 41 wchar_t c = context.getCurrentChar(); 42 context.m_pos++; 49 writeNextTriplet(context, buffer); 51 context.m_msg, context.m_pos, getEncodingMode()); 53 context.signalEncoderChange(newMode); 58 handleEOD(context, buffer, e); 60 void CBC_X12Encoder::handleEOD(CBC_EncoderContext& context, [all...] |
/cts/tests/tests/text/src/android/text/format/cts/ |
FormatterTest.java | 21 import android.content.Context; 41 // test null Context 48 final Context context = local 52 assertEquals("0 B", Formatter.formatFileSize(context, 0)); 53 assertEquals("1 B", Formatter.formatFileSize(context, 1)); 54 assertEquals("9 B", Formatter.formatFileSize(context, 9)); 55 assertEquals("10 B", Formatter.formatFileSize(context, 10)); 56 assertEquals("99 B", Formatter.formatFileSize(context, 99)); 57 assertEquals("100 B", Formatter.formatFileSize(context, 100)) 88 final Context context = local [all...] |
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
test_context.c | 45 XvMCContext context = {0}; local 74 /* Test NULL context */ 79 assert(XvMCCreateContext(display, -1, surface_type_id, width, height, XVMC_DIRECT, &context) == XvBadPort); 81 assert(XvMCCreateContext(display, port_num, -1, width, height, XVMC_DIRECT, &context) == BadMatch); 83 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, -1, &context) == BadValue); 85 assert(XvMCCreateContext(display, port_num, surface_type_id, 16384, height, XVMC_DIRECT, &context) == BadValue); 87 assert(XvMCCreateContext(display, port_num, surface_type_id, width, 16384, XVMC_DIRECT, &context) == BadValue); 89 assert(XvMCCreateContext(display, port_num, surface_type_id, 16384, 16384, XVMC_DIRECT, &context) == BadValue); 91 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, XVMC_DIRECT, &context) == Success); 92 /* Test context id assigned * [all...] |
/external/wpa_supplicant_8/src/crypto/ |
fips_prf_openssl.c | 18 SHA_CTX context; local 19 os_memset(&context, 0, sizeof(context)); 21 context.h[0] = state[0]; 22 context.h[1] = state[1]; 23 context.h[2] = state[2]; 24 context.h[3] = state[3]; 25 context.h[4] = state[4]; 26 SHA1_Transform(&context, data); 27 state[0] = context.h[0] [all...] |
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/LibTwo/src/com/android/aapt/namespace/libtwo/ |
TextView.java | 18 import android.content.Context; 26 public TextView(Context context) { 27 this(context, null); 30 public TextView(Context context, AttributeSet attrs) { 31 this(context, attrs, 0); 34 public TextView(Context context, AttributeSet attrs, int defStyleAttr) { 35 this(context, attrs, defStyleAttr, 0) [all...] |
/hardware/qcom/audio/post_proc/ |
bass_boost.h | 36 int bassboost_get_parameter(effect_context_t *context, effect_param_t *p, 39 int bassboost_set_parameter(effect_context_t *context, effect_param_t *p, 42 int bassboost_set_device(effect_context_t *context, uint32_t device); 44 int bassboost_reset(effect_context_t *context); 46 int bassboost_init(effect_context_t *context); 48 int bassboost_enable(effect_context_t *context); 50 int bassboost_disable(effect_context_t *context); 52 int bassboost_start(effect_context_t *context, output_context_t *output); 54 int bassboost_stop(effect_context_t *context, output_context_t *output);
|
equalizer.h | 40 int equalizer_get_parameter(effect_context_t *context, effect_param_t *p, 43 int equalizer_set_parameter(effect_context_t *context, effect_param_t *p, 46 int equalizer_set_device(effect_context_t *context, uint32_t device); 48 int equalizer_reset(effect_context_t *context); 50 int equalizer_init(effect_context_t *context); 52 int equalizer_enable(effect_context_t *context); 54 int equalizer_disable(effect_context_t *context); 56 int equalizer_start(effect_context_t *context, output_context_t *output); 58 int equalizer_stop(effect_context_t *context, output_context_t *output);
|
virtualizer.h | 36 int virtualizer_get_parameter(effect_context_t *context, effect_param_t *p, 39 int virtualizer_set_parameter(effect_context_t *context, effect_param_t *p, 42 int virtualizer_set_device(effect_context_t *context, uint32_t device); 44 int virtualizer_reset(effect_context_t *context); 46 int virtualizer_init(effect_context_t *context); 48 int virtualizer_enable(effect_context_t *context); 50 int virtualizer_disable(effect_context_t *context); 52 int virtualizer_start(effect_context_t *context, output_context_t *output); 54 int virtualizer_stop(effect_context_t *context, output_context_t *output);
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_thread_helper.h | 45 int (*thread_proc_init) (void * context); 46 int (*thread_proc_pre) (void * context); 47 int (*thread_proc) (void * context); 48 int (*thread_proc_post) (void * context); 53 int (*thread_proc_init) (void * context), 54 int (*thread_proc_pre) (void * context), 55 int (*thread_proc) (void * context), 56 int (*thread_proc_post) (void * context), 58 void * context);
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_thread_helper.h | 45 int (*thread_proc_init) (void * context); 46 int (*thread_proc_pre) (void * context); 47 int (*thread_proc) (void * context); 48 int (*thread_proc_post) (void * context); 53 int (*thread_proc_init) (void * context), 54 int (*thread_proc_pre) (void * context), 55 int (*thread_proc) (void * context), 56 int (*thread_proc_post) (void * context), 58 void * context);
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_thread_helper.h | 45 int (*thread_proc_init) (void * context); 46 int (*thread_proc_pre) (void * context); 47 int (*thread_proc) (void * context); 48 int (*thread_proc_post) (void * context); 53 int (*thread_proc_init) (void * context), 54 int (*thread_proc_pre) (void * context), 55 int (*thread_proc) (void * context), 56 int (*thread_proc_post) (void * context), 58 void * context);
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_thread_helper.h | 45 int (*thread_proc_init) (void * context); 46 int (*thread_proc_pre) (void * context); 47 int (*thread_proc) (void * context); 48 int (*thread_proc_post) (void * context); 53 int (*thread_proc_init) (void * context), 54 int (*thread_proc_pre) (void * context), 55 int (*thread_proc) (void * context), 56 int (*thread_proc_post) (void * context), 58 void * context);
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_thread_helper.h | 45 int (*thread_proc_init) (void * context); 46 int (*thread_proc_pre) (void * context); 47 int (*thread_proc) (void * context); 48 int (*thread_proc_post) (void * context); 53 int (*thread_proc_init) (void * context), 54 int (*thread_proc_pre) (void * context), 55 int (*thread_proc) (void * context), 56 int (*thread_proc_post) (void * context), 58 void * context);
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn_thread_helper.h | 45 int (*thread_proc_init) (void * context); 46 int (*thread_proc_pre) (void * context); 47 int (*thread_proc) (void * context); 48 int (*thread_proc_post) (void * context); 53 int (*thread_proc_init) (void * context), 54 int (*thread_proc_pre) (void * context), 55 int (*thread_proc) (void * context), 56 int (*thread_proc_post) (void * context), 58 void * context);
|
/packages/apps/Dialer/java/com/android/dialer/oem/ |
MotorolaUtils.java | 18 import android.content.Context; 56 private static boolean isSpnMatched(Context context) { 58 String spnResource = context.getResources().getString(R.string.motorola_enabled_spn); 60 context.getSystemService(TelephonyManager.class).getSimOperatorName()); 67 static boolean isSupportingHiddenMenu(Context context) { 68 return context.getPackageManager().hasSystemFeature(HIDDEN_MENU_FEATURE); 71 public static boolean shouldBlinkHdIconWhenConnectingCall(Context context) { [all...] |