/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/ |
StreamUriLoader.java | 3 import android.content.Context; 26 public ModelLoader<Uri, InputStream> build(Context context, GenericLoaderFactory factories) { 27 return new StreamUriLoader(context, factories.buildModelLoader(GlideUrl.class, InputStream.class, context)); 34 public StreamUriLoader(Context context) { 35 this(context, Glide.buildStreamModelLoader(GlideUrl.class, context)); 38 public StreamUriLoader(Context context, ModelLoader<GlideUrl, InputStream> urlLoader) [all...] |
/external/ltrace/ |
fetch.h | 44 /* Make a clone of context. */ 46 struct fetch_context *context); 51 int fetch_arg_next(struct fetch_context *context, enum tof type, 57 int fetch_retval(struct fetch_context *context, enum tof type, 61 /* Destroy fetch context. CONTEXT shall be the same memory location 63 void fetch_arg_done(struct fetch_context *context); 67 int fetch_param_pack_start(struct fetch_context *context, 71 void fetch_param_pack_end(struct fetch_context *context); 81 struct fetch_context *context); [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
VerticalGridView.java | 16 import android.content.Context; 29 public VerticalGridView(Context context) { 30 this(context, null); 33 public VerticalGridView(Context context, AttributeSet attrs) { 34 this(context, attrs, 0); 37 public VerticalGridView(Context context, AttributeSet attrs, int defStyle) { 38 super(context, attrs, defStyle) [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouterThemeHelper.java | 19 import android.content.Context; 29 public static Context createThemedContext(Context context) { 30 boolean isLightTheme = isLightTheme(context); 31 return new ContextThemeWrapper(context, isLightTheme ? 35 public static int getThemeResource(Context context, int attr) { 37 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; 40 public static Drawable getThemeDrawable(Context context, int attr) [all...] |
/ndk/sources/android/crazy_linker/tests/ |
test_jni_hooks.cpp | 20 crazy_context_t* context = crazy_context_create(); local 24 crazy_context_add_search_path_for_address(context, (void*)&main); 26 crazy_context_set_java_vm(context, kJavaVM, JNI_VERSION_1_2); 31 if (!crazy_library_open(&library, kJniLibName, context)) 32 Panic("Could not open library: %s\n", crazy_context_get_error(context)); 45 crazy_context_set_java_vm(context, kJavaVM, JNI_VERSION_1_6); 48 if (crazy_library_open(&library, kJniLibName, context)) 53 crazy_context_set_java_vm(context, NULL, 0); 56 if (!crazy_library_open(&library, kJniLibName, context)) 69 crazy_context_destroy(context); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PackagesMonitor.java | 21 import android.content.Context; 32 public synchronized static int getPackagesVersion(Context context) { 33 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 38 public void onReceive(final Context context, final Intent intent) { 39 intent.setClass(context, AsyncService.class); 40 context.startService(intent); 55 private static void onReceiveAsync(Context context, Intent intent) [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothManager.java | 19 import android.content.Context; 34 private final Context mContext; 37 private Context mForegroundActivity; 51 public static synchronized LocalBluetoothManager getInstance(Context context) { 58 Context appContext = context.getApplicationContext(); 73 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) { 74 mContext = context; [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/ |
main.cpp | 10 #include "libGLESv2/Context.h" 28 current->context = NULL; 97 void makeCurrent(Context *context, egl::Display *display, egl::Surface *surface) 101 current->context = context; 104 if (context && display && surface) 106 context->makeCurrent(surface); 110 Context *getContext() 114 return current->context; 119 Context *context = getContext(); local 146 gl::Context *context = glGetCurrentContext(); local [all...] |
/external/deqp/modules/gles2/functional/ |
es2fDepthTests.cpp | 54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color); 58 void shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const; 82 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) 94 void DepthShader::shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const 102 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); 109 DepthCase (Context& context, const char* name, const char* description); 113 virtual void render (sglr::Context& context) = DE_NULL; 116 DepthCase::DepthCase (Context& context, const char* name, const char* description [all...] |
/external/deqp/modules/gles3/functional/ |
es3fDepthTests.cpp | 54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color); 58 void shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const; 85 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) 97 void DepthShader::shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const 105 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); 112 DepthCase (Context& context, const char* name, const char* description); 116 virtual void render (sglr::Context& context) = DE_NULL; 119 DepthCase::DepthCase (Context& context, const char* name, const char* description [all...] |
/external/ipsec-tools/src/racoon/missing/crypto/sha2/ |
sha2.c | 334 void SHA256_Init(SHA256_CTX* context) { 335 if (context == (SHA256_CTX*)0) { 338 bcopy(sha256_initial_hash_value, context->state, SHA256_DIGEST_LENGTH); 339 bzero(context->buffer, SHA256_BLOCK_LENGTH); 340 context->bitcount = 0; 380 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { 385 W256 = (sha2_word32*)context->buffer; 388 a = context->state[0]; 389 b = context->state[1]; 390 c = context->state[2] 653 SHA256_CTX context; local 982 SHA512_CTX context; local 1057 SHA384_CTX context; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/file/ |
SDL_rwops.c | 48 static int SDLCALL win32_file_open(SDL_RWops *context, const char *filename, const char *mode) 58 if (!context) 61 context->hidden.win32io.h = INVALID_HANDLE_VALUE; /* mark this as unusable */ 62 context->hidden.win32io.buffer.data = NULL; 63 context->hidden.win32io.buffer.size = 0; 64 context->hidden.win32io.buffer.left = 0; 82 context->hidden.win32io.buffer.data = (char *)SDL_malloc(READAHEAD_BUFFER_SIZE); 83 if (!context->hidden.win32io.buffer.data) { 95 SDL_free(context->hidden.win32io.buffer.data); 96 context->hidden.win32io.buffer.data = NULL [all...] |
/external/wpa_supplicant_8/src/pae/ |
ieee802_1x_key.c | 34 static int aes_kdf_128(const u8 *kdk, const char *label, const u8 *context, 59 os_memcpy(buf + lab_len + 2, context, ctx_len); 85 u8 context[2 * ETH_ALEN]; local 87 joint_two_mac(mac1, mac2, context); 89 context, sizeof(context) * 8, 128, cak); 104 u8 *context; local 107 context = os_zalloc(ctx_len); 108 if (!context) { 112 os_memcpy(context, sid, sid_bytes) 131 u8 context[16]; local 151 u8 context[16]; local [all...] |
/frameworks/base/core/java/android/app/admin/ |
DeviceAdminReceiver.java | 25 import android.content.Context; 35 * {@link BroadcastReceiver#onReceive(Context, Intent) BroadcastReceiver.onReceive()} 69 * handle this in {@link DeviceAdminReceiver#onEnabled(Context, Intent)}. To be 103 * handle this in {@link DeviceAdminReceiver#onDisabled(Context, Intent)}. Note 239 public DevicePolicyManager getManager(Context context) { 243 mManager = (DevicePolicyManager)context.getSystemService( 244 Context.DEVICE_POLICY_SERVICE); 253 public ComponentName getWho(Context context) { [all...] |
/external/chromium_org/skia/ext/ |
platform_device_mac.cc | 34 void PlatformDevice::InitializeCGContext(CGContextRef context) { 39 void PlatformDevice::LoadPathToCGContext(CGContextRef context, 41 // instead of a persistent attribute of the context, CG specifies the fill 43 CGContextBeginPath(context); 51 CGContextMoveToPoint(context, points[0].fX, points[0].fY); 55 CGContextAddLineToPoint(context, points[1].fX, points[1].fY); 59 CGContextAddQuadCurveToPoint(context, points[1].fX, points[1].fY, 64 CGContextAddCurveToPoint(context, points[1].fX, points[1].fY, 79 CGContextClosePath(context); 83 void PlatformDevice::LoadTransformToCGContext(CGContextRef context, [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
ScriptState.cpp | 14 PassRefPtr<ScriptState> ScriptState::create(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world) 16 RefPtr<ScriptState> scriptState = adoptRef(new ScriptState(context, world)); 17 // This ref() is for keeping this ScriptState alive as long as the v8::Context is alive. 18 // This is deref()ed in the weak callback of the v8::Context. 23 static void weakCallback(const v8::WeakCallbackData<v8::Context, ScriptState>& data) 30 ScriptState::ScriptState(v8::Handle<v8::Context> context, PassRefPtr<DOMWrapperWorld> world) 31 : m_isolate(context->GetIsolate()) 32 , m_context(m_isolate, context) [all...] |
/external/libvpx/libvpx/third_party/nestegg/include/nestegg/ |
nestegg.h | 92 /** User supplied IO context. */ 148 typedef void (* nestegg_log)(nestegg * context, unsigned int severity, char const * format, ...); 150 /** Initialize a nestegg context. During initialization the parser will 153 @param context Storage for the new nestegg context. @see nestegg_destroy 154 @param io User supplied IO context. 159 int nestegg_init(nestegg ** context, nestegg_io io, nestegg_log callback, int64_t max_offset); 161 /** Destroy a nestegg context and free associated memory. 162 @param context #nestegg context to be freed. @see nestegg_init * [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProvider.java | 20 import android.content.Context; 28 * {@link #onReceive(Context,Intent) onReceive(Context,Intent)}, and calls hook methods 53 * @param context The Context in which the receiver is running. 57 public void onReceive(Context context, Intent intent) { 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); 73 this.onDeleted(context, new int[] { appWidgetId }) [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/include/nestegg/ |
nestegg.h | 92 /** User supplied IO context. */ 148 typedef void (* nestegg_log)(nestegg * context, unsigned int severity, char const * format, ...); 150 /** Initialize a nestegg context. During initialization the parser will 153 @param context Storage for the new nestegg context. @see nestegg_destroy 154 @param io User supplied IO context. 159 int nestegg_init(nestegg ** context, nestegg_io io, nestegg_log callback, int64_t max_offset); 161 /** Destroy a nestegg context and free associated memory. 162 @param context #nestegg context to be freed. @see nestegg_init * [all...] |
/external/ltrace/sysdeps/linux-gnu/m68k/ |
fetch.c | 46 fetch_register_banks(struct process *proc, struct fetch_context *context, 49 if (ptrace(PTRACE_GETREGS, proc->pid, 0, &context->regs) < 0) 53 && ptrace(PTRACE_GETFPREGS, proc->pid, 0, &context->fpregs) < 0) 63 struct fetch_context *context = malloc(sizeof(*context)); local 64 if (context == NULL) 68 if (fetch_register_banks(proc, context, type == LT_TOF_FUNCTION) < 0) { 70 free(context); 74 context->arg_num = 0; 75 context->stack_pointer = (arch_addr_t)context->regs[PT_USP] + 4 [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
SystemUtil.java | 21 import android.content.Context; 25 public static long getFreeDiskSize(Context context) { 26 final StatFs statFs = new StatFs(context.getFilesDir().getAbsolutePath()); 30 public static long getFreeMemory(Context context) { 32 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); 36 public static long getTotalMemory(Context context) { [all...] |
/cts/libs/deviceutil/src/android/cts/util/ |
NullWebViewUtils.java | 19 import android.content.Context; 38 * @param context Current Activity context, used to query the PackageManager. 41 public static void determineIfWebViewAvailable(Context context, Throwable t) { 42 sWebViewUnavailable = !hasWebViewFeature(context) && checkCauseWasUnsupportedOperation(t); 55 private static boolean hasWebViewFeature(Context context) { 57 PackageManager pm = context.getPackageManager(); 83 public boolean isWebViewAvailable(Context context) [all...] |
SystemUtil.java | 21 import android.content.Context; 25 public static long getFreeDiskSize(Context context) { 26 StatFs statFs = new StatFs(context.getFilesDir().getAbsolutePath()); 30 public static long getFreeMemory(Context context) { 32 ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 37 public static long getTotalMemory(Context context) { [all...] |
/cts/tests/acceleration/src/android/acceleration/cts/ |
AcceleratedView.java | 19 import android.content.Context; 33 public AcceleratedView(Context context) { 34 super(context); 37 public AcceleratedView(Context context, AttributeSet attrs) { 38 super(context, attrs); 41 public AcceleratedView(Context context, AttributeSet attrs, int defStyle) { 42 super(context, attrs, defStyle) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
MyScrollView.java | 19 import android.content.Context; 26 public MyScrollView(Context context) { 27 super(context); 30 public MyScrollView(Context context, AttributeSet attrs) { 31 super(context, attrs); 34 public MyScrollView(Context context, AttributeSet attrs, int defStyle) { 35 super(context, attrs, defStyle) [all...] |