/packages/apps/Stk/src/com/android/stk/ |
StkCmdReceiver.java | 22 import android.content.Context; 33 public void onReceive(Context context, Intent intent) { 37 handleCommandMessage(context, intent); 39 handleSessionEnd(context, intent); 43 private void handleCommandMessage(Context context, Intent intent) { 48 context.startService(new Intent(context, StkAppService.class) 52 private void handleSessionEnd(Context context, Intent intent) [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
TransitionType.java | 19 import android.content.Context; 50 * @param context The context 54 public static TransitionType[] getTransitions(Context context) { 57 context.getString(R.string.transitions_alpha_countour), 60 context.getString(R.string.transitions_alpha_diagonal), 63 context.getString(R.string.transitions_crossfade), 66 context.getString(R.string.transitions_fade_black), 69 context.getString(R.string.transitions_sliding_right_out_left_in) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContextTest.java | 4 import android.content.Context; 26 private Context context; field in class:ContextTest 30 context = new Activity(); 31 deleteDir(context.getFilesDir()); 32 deleteDir(context.getCacheDir()); 34 File[] files = context.getFilesDir().listFiles(); 38 File[] cachedFiles = context.getFilesDir().listFiles(); 45 deleteDir(context.getFilesDir()); 46 deleteDir(context.getCacheDir()) [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
glslang.l | 61 TParseContext* context = yyextra; 97 "float" { context->lexAfterType = true; return(FLOAT_TYPE); } 98 "int" { context->lexAfterType = true; return(INT_TYPE); } 99 "void" { context->lexAfterType = true; return(VOID_TYPE); } 100 "bool" { context->lexAfterType = true; return(BOOL_TYPE); } 107 "mat2" { context->lexAfterType = true; return(MATRIX2); } 108 "mat3" { context->lexAfterType = true; return(MATRIX3); } 109 "mat4" { context->lexAfterType = true; return(MATRIX4); } 111 "vec2" { context->lexAfterType = true; return (VEC2); } 112 "vec3" { context->lexAfterType = true; return (VEC3); [all...] |
/external/webkit/Source/WebCore/platform/graphics/gpu/mac/ |
DrawingBufferMac.mm | 39 DrawingBuffer::DrawingBuffer(GraphicsContext3D* context, 43 : m_context(context) 47 , m_fbo(context->createFramebuffer()) 70 m_colorBuffer = context->createTexture(); 71 context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_colorBuffer); 72 context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MAG_FILTER, GraphicsContext3D::LINEAR); 73 context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MIN_FILTER, GraphicsContext3D::LINEAR); 74 context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_S, GraphicsContext3D::CLAMP_TO_EDGE); 75 context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_T, GraphicsContext3D::CLAMP_TO_EDGE); 76 context->bindTexture(GraphicsContext3D::TEXTURE_2D, 0) [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothPreferences.java | 20 import android.content.Context; 51 private static SharedPreferences getSharedPreferences(Context context) { 52 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); 55 static long getDiscoverableEndTimestamp(Context context) { 56 return getSharedPreferences(context).getLong( 60 static boolean shouldShowDialogInForeground(Context context, [all...] |
/external/llvm/include/llvm/Support/ |
CrashRecoveryContext.h | 22 /// This class implements support for running operations in a safe context so 62 /// \brief Return the active context, if the code is currently executing in a 63 /// thread which is in a protected context. 71 /// a protected context. 81 /// a protected context which is run in another thread (optionally with a 102 CrashRecoveryContext *context; member in class:llvm::CrashRecoveryContextCleanup 103 CrashRecoveryContextCleanup(CrashRecoveryContext *context) 104 : context(context), cleanupFired(false) {} 112 return context; [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
WebLayer.cpp | 63 void WebLayer::drawInContext(PlatformGraphicsContext* context) 68 CGContextSaveGState(context); 72 CGContextScaleCTM(context, 1, -1); 73 CGContextTranslateCTM(context, 0, -layerBounds.size.height); 77 GraphicsContext graphicsContext(context); 79 // It's important to get the clip from the context, because it may be significantly 81 CGRect clipBounds = CGContextGetClipBoundingBox(context); 91 CGContextSetRGBFillColor(context, 0.0f, 1.0f, 0.0f, 1.0f); 92 CGContextFillRect(context, layerBounds); 99 CGContextSaveGState(context); [all...] |
/external/webkit/Source/WebCore/platform/win/ |
WebCoreTextRenderer.cpp | 49 static void doDrawTextAtPoint(GraphicsContext& context, const String& text, const IntPoint& point, const Font& font, const Color& color, int underlinedIndex) 53 context.setFillColor(color, ColorSpaceDeviceRGB); 55 font.drawText(&context, run, point); 57 context.drawBidiText(font, run, point); 75 context.setStrokeColor(color, ColorSpaceDeviceRGB); 76 context.drawLineForText(underlinePoint, underlinedWidth, false); 80 void WebCoreDrawTextAtPoint(GraphicsContext& context, const String& text, const IntPoint& point, const Font& font, const Color& color, int underlinedIndex) 82 context.save(); 84 doDrawTextAtPoint(context, text, point, font, color, underlinedIndex); 86 context.restore() [all...] |
/external/webkit/Source/WebCore/webaudio/ |
AudioNodeOutput.cpp | 54 ASSERT(context()->isGraphOwner()); 58 if (context()->isAudioThread()) { 62 // Let the context take care of it in the audio thread in the pre and post render tasks. 63 context()->markAudioNodeOutputDirty(this); 94 ASSERT(context()->isAudioThread() && context()->isGraphOwner()); 105 ASSERT(context()->isAudioThread() && context()->isGraphOwner()); 119 ASSERT(context()->isAudioThread()); 139 ASSERT(const_cast<AudioNodeOutput*>(this)->context()->isAudioThread()) [all...] |
/frameworks/opt/mms/src/java/com/google/android/mms/util/ |
SqliteWrapper.java | 23 import android.content.Context; 41 private static boolean isLowMemory(Context context) { 42 if (null == context) { 47 context.getSystemService(Context.ACTIVITY_SERVICE); 59 public static void checkSQLiteException(Context context, SQLiteException e) { 61 Toast.makeText(context, com.android.internal.R.string.low_memory, 68 public static Cursor query(Context context, ContentResolver resolver, Uri uri [all...] |
/external/webkit/Source/WebCore/rendering/ |
RenderMediaControlsChromium.cpp | 64 static bool paintMediaButton(GraphicsContext* context, const IntRect& rect, Image* image) 67 context->drawImage(image, ColorSpaceDeviceRGB, rect); 82 return paintMediaButton(paintInfo.context, rect, soundDisabled); 84 return paintMediaButton(paintInfo.context, rect, mediaElement->muted() ? soundNone: soundFull); 98 return paintMediaButton(paintInfo.context, rect, mediaPlayDisabled); 100 return paintMediaButton(paintInfo.context, rect, mediaElement->canPlay() ? mediaPlay : mediaPause); 116 GraphicsContext* context = paintInfo.context; local 121 context->save(); 122 context->setShouldAntialias(true) 219 GraphicsContext* context = paintInfo.context; local [all...] |
/external/webkit/Source/WebCore/svg/ |
SVGLength.h | 79 float value(const SVGElement* context) const; 80 float value(const SVGElement* context, ExceptionCode&) const; 81 void setValue(float, const SVGElement* context, ExceptionCode&); 92 void convertToSpecifiedUnits(unsigned short, const SVGElement* context, ExceptionCode&); 105 bool determineViewport(const SVGElement* context, float& width, float& height) const; 107 float convertValueFromPercentageToUserUnits(float value, const SVGElement* context, ExceptionCode&) const; 108 float convertValueFromUserUnitsToPercentage(float value, const SVGElement* context, ExceptionCode&) const; 110 float convertValueFromUserUnitsToEMS(float value, const SVGElement* context, ExceptionCode&) const; 111 float convertValueFromEMSToUserUnits(float value, const SVGElement* context, ExceptionCode&) const; 113 float convertValueFromUserUnitsToEXS(float value, const SVGElement* context, ExceptionCode&) const [all...] |
/packages/apps/Browser/src/com/android/browser/ |
OpenDownloadReceiver.java | 22 import android.content.Context; 42 public void onReceive(final Context context, Intent intent) { 45 openDownloadsPage(context); 51 openDownloadsPage(context); 59 onReceiveAsync(context, id); 66 private void onReceiveAsync(Context context, long id) { 67 DownloadManager manager = (DownloadManager) context.getSystemService( 68 Context.DOWNLOAD_SERVICE) [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
libGLESv2.cpp | 22 #include "libGLESv2/Context.h" 44 gl::Context *context = gl::getContext(); local 46 if (context) 48 context->setActiveSampler(texture - GL_TEXTURE0); 63 gl::Context *context = gl::getContext(); local 65 if (context) 67 gl::Program *programObject = context->getProgram(program); 68 gl::Shader *shaderObject = context->getShader(shader) 117 gl::Context *context = gl::getContext(); local 155 gl::Context *context = gl::getContext(); local 189 gl::Context *context = gl::getContext(); local 221 gl::Context *context = gl::getContext(); local 240 gl::Context *context = gl::getContext(); local 277 gl::Context* context = gl::getContext(); local 321 gl::Context *context = gl::getContext(); local 444 gl::Context *context = gl::getContext(); local 479 gl::Context *context = gl::getContext(); local 528 gl::Context *context = gl::getContext(); local 576 gl::Context *context = gl::getContext(); local 607 gl::Context *context = gl::getContext(); local 627 gl::Context *context = gl::getContext(); local 646 gl::Context *context = gl::getContext(); local 665 gl::Context *context = gl::getContext(); local 685 gl::Context *context = gl::getContext(); local 704 gl::Context *context = gl::getContext(); local 764 gl::Context *context = gl::getContext(); local 895 gl::Context *context = gl::getContext(); local 999 gl::Context *context = gl::getContext(); local 1158 gl::Context *context = gl::getContext(); local 1259 gl::Context *context = gl::getContext(); local 1280 gl::Context *context = gl::getContext(); local 1314 gl::Context *context = gl::getContext(); local 1343 gl::Context *context = gl::getContext(); local 1370 gl::Context *context = gl::getContext(); local 1397 gl::Context *context = gl::getContext(); local 1427 gl::Context *context = gl::getContext(); local 1463 gl::Context *context = gl::getContext(); local 1490 gl::Context *context = gl::getContext(); local 1526 gl::Context *context = gl::getContext(); local 1566 gl::Context *context = gl::getContext(); local 1585 gl::Context *context = gl::getContext(); local 1604 gl::Context *context = gl::getContext(); local 1623 gl::Context *context = gl::getContext(); local 1676 gl::Context *context = gl::getContext(); local 1713 gl::Context *context = gl::getContext(); local 1737 gl::Context *context = gl::getContext(); local 1762 gl::Context *context = gl::getContext(); local 1796 gl::Context *context = gl::getContext(); local 1833 gl::Context *context = gl::getContext(); local 1852 gl::Context *context = gl::getContext(); local 1878 gl::Context *context = gl::getContext(); local 1897 gl::Context *context = gl::getContext(); local 1923 gl::Context *context = gl::getContext(); local 1989 gl::Context *context = gl::getContext(); local 2085 gl::Context *context = gl::getContext(); local 2114 gl::Context *context = gl::getContext(); local 2136 gl::Context *context = gl::getContext(); local 2181 gl::Context *context = gl::getContext(); local 2208 gl::Context *context = gl::getContext(); local 2235 gl::Context *context = gl::getContext(); local 2262 gl::Context *context = gl::getContext(); local 2291 gl::Context *context = gl::getContext(); local 2336 gl::Context *context = gl::getContext(); local 2380 gl::Context *context = gl::getContext(); local 2413 gl::Context *context = gl::getContext(); local 2454 gl::Context *context = gl::getContext(); local 2517 gl::Context *context = gl::getContext(); local 2562 gl::Context *context = gl::getContext(); local 2579 gl::Context *context = gl::getContext(); local 2605 gl::Context *context = gl::getContext(); local 2666 gl::Context *context = gl::getContext(); local 2784 gl::Context *context = gl::getContext(); local 2849 gl::Context *context = gl::getContext(); local 2912 gl::Context *context = gl::getContext(); local 2938 gl::Context *context = gl::getContext(); local 3054 gl::Context *context = gl::getContext(); local 3105 gl::Context *context = gl::getContext(); local 3182 gl::Context *context = gl::getContext(); local 3208 gl::Context *context = gl::getContext(); local 3240 gl::Context *context = gl::getContext(); local 3289 gl::Context *context = gl::getContext(); local 3338 gl::Context *context = gl::getContext(); local 3372 gl::Context *context = gl::getContext(); local 3411 gl::Context *context = gl::getContext(); local 3456 gl::Context *context = gl::getContext(); local 3509 gl::Context *context = gl::getContext(); local 3563 gl::Context *context = gl::getContext(); local 3602 gl::Context *context = gl::getContext(); local 3627 gl::Context *context = gl::getContext(); local 3653 gl::Context *context = gl::getContext(); local 3687 gl::Context *context = gl::getContext(); local 3715 gl::Context *context = gl::getContext(); local 3741 gl::Context *context = gl::getContext(); local 3767 gl::Context *context = gl::getContext(); local 3793 gl::Context *context = gl::getContext(); local 3819 gl::Context *context = gl::getContext(); local 3850 gl::Context *context = gl::getContext(); local 3869 gl::Context *context = gl::getContext(); local 3902 gl::Context *context = gl::getContext(); local 3943 gl::Context *context = gl::getContext(); local 4004 gl::Context *context = gl::getContext(); local 4056 gl::Context *context = gl::getContext(); local 4113 gl::Context* context = gl::getContext(); local 4137 gl::Context *context = gl::getContext(); local 4168 gl::Context* context = gl::getContext(); local 4210 gl::Context *context = gl::getContext(); local 4273 gl::Context *context = gl::getContext(); local 4315 gl::Context *context = gl::getContext(); local 4403 gl::Context *context = gl::getContext(); local 4430 gl::Context *context = gl::getContext(); local 4537 gl::Context *context = gl::getContext(); local 4666 gl::Context *context = gl::getContext(); local 4761 gl::Context *context = gl::getContext(); local 4860 gl::Context *context = gl::getContext(); local 4904 gl::Context *context = gl::getContext(); local 4950 gl::Context *context = gl::getContext(); local 4996 gl::Context *context = gl::getContext(); local 5042 gl::Context *context = gl::getContext(); local 5088 gl::Context *context = gl::getContext(); local 5134 gl::Context *context = gl::getContext(); local 5180 gl::Context *context = gl::getContext(); local 5220 gl::Context *context = gl::getContext(); local 5260 gl::Context *context = gl::getContext(); local 5300 gl::Context *context = gl::getContext(); local 5329 gl::Context *context = gl::getContext(); local 5367 gl::Context *context = gl::getContext(); local 5405 gl::Context *context = gl::getContext(); local 5430 gl::Context *context = gl::getContext(); local 5455 gl::Context *context = gl::getContext(); local 5480 gl::Context *context = gl::getContext(); local 5505 gl::Context *context = gl::getContext(); local 5530 gl::Context *context = gl::getContext(); local 5555 gl::Context *context = gl::getContext(); local 5580 gl::Context *context = gl::getContext(); local 5629 gl::Context *context = gl::getContext(); local 5653 gl::Context *context = gl::getContext(); local 5695 gl::Context *context = gl::getContext(); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/context/ |
GraphicsOperation.h | 82 bool apply(PlatformGraphicsContext* context) { 84 context->setRawState(m_state); 85 return applyImpl(context); 87 virtual bool applyImpl(PlatformGraphicsContext* context) = 0; 185 virtual bool applyImpl(PlatformGraphicsContext* context) { 186 context->concatCTM(m_matrix); 197 virtual bool applyImpl(PlatformGraphicsContext* context) { 198 context->rotate(m_angle); 209 virtual bool applyImpl(PlatformGraphicsContext* context) { 210 context->scale(m_scale) [all...] |
/external/icu4c/samples/layout/ |
gnomelayout.cpp | 33 struct Context 88 Context *context = (Context *) gtk_object_get_data(GTK_OBJECT(app), "context"); local 100 if (context->paragraph != NULL) { 101 delete context->paragraph; 104 context->paragraph = newPara; 108 context->paragraph->breakLines(context->width, context->height) 232 Context *context = new Context(); local 241 gtk_object_set_data(GTK_OBJECT(app), "context", context); local 266 context); local 271 context); local 282 Context *context = (Context *) gtk_object_get_data(GTK_OBJECT(app), "context"); local [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetProvider.java | 28 import android.content.Context; 56 public void onReceive(Context context, Intent intent) { 62 if (Utils.getWidgetUpdateAction(context).equals(action)) { 63 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 64 performUpdate(context, appWidgetManager, 65 appWidgetManager.getAppWidgetIds(getComponentName(context)), 71 || action.equals(Utils.getWidgetScheduledUpdateAction(context))) { 72 Intent service = new Intent(context, CalendarAppWidgetService.class); 73 context.startService(service) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowArrayAdapter.java | 3 import android.content.Context; 35 private Context context; field in class:ShadowArrayAdapter 50 public void __constructor__(Context context, int textViewResourceId) { 51 init(context, textViewResourceId, 0, new ArrayList<T>()); 54 public void __constructor__(Context context, int resource, int textViewResourceId) { 55 init(context, resource, textViewResourceId, new ArrayList<T>()); 58 public void __constructor__(Context context, int textViewResourceId, T[] objects) [all...] |
/external/webkit/Source/WebKit2/UIProcess/ |
GenericCallback.h | 47 CallbackBase(void* context) 48 : m_context(context) 53 void* context() const { return m_context; } function in class:WebKit::CallbackBase 70 static PassRefPtr<VoidCallback> create(void* context, CallbackFunction callback) 72 return adoptRef(new VoidCallback(context, callback)); 84 m_callback(0, context()); 94 m_callback(toAPI(error.get()), context()); 100 VoidCallback(void* context, CallbackFunction callback) 101 : CallbackBase(context) 114 static PassRefPtr<GenericCallback> create(void* context, CallbackFunction callback [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
TestDeviceAdminReceiver.java | 21 import android.content.Context; 25 public static ComponentName getComponent(Context context) { 26 return new ComponentName(context, TestDeviceAdminReceiver.class);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
GoNegReqPbcTestCase.java | 19 import android.content.Context; 27 public GoNegReqPbcTestCase(Context context) { 28 super(context);
|
GoNegReqPinTestCase.java | 19 import android.content.Context; 27 public GoNegReqPinTestCase(Context context) { 28 super(context);
|
ReqTestCase.java | 18 import android.content.Context; 25 public ReqTestCase(Context context) { 26 super(context);
|
/cts/tests/src/android/content/cts/ |
HighPriorityBroadcastReceiver.java | 19 import android.content.Context; 25 public void onReceive(Context context, Intent intent) { 26 super.onReceive(context, intent);
|