/frameworks/av/libvideoeditor/vss/src/ |
D | VideoEditorResampler.cpp | 81 VideoEditorResampler *context = new VideoEditorResampler(); in LVAudioResamplerCreate() local 82 context->mResampler = AudioResampler::create( in LVAudioResamplerCreate() 84 if (context->mResampler == NULL) { in LVAudioResamplerCreate() 87 context->mResampler->setSampleRate(android::VideoEditorResampler::kFreq32000Hz); in LVAudioResamplerCreate() 88 context->mResampler->setVolume(0x1000, 0x1000); in LVAudioResamplerCreate() 89 context->nbChannels = inChannelCount; in LVAudioResamplerCreate() 90 context->outSamplingRate = sampleRate; in LVAudioResamplerCreate() 91 context->mInput = NULL; in LVAudioResamplerCreate() 92 context->mTmpInBuffer = NULL; in LVAudioResamplerCreate() 94 return ((M4OSA_Context )context); in LVAudioResamplerCreate() [all …]
|
D | M4PCMR_CoreReader.c | 66 M4PCMR_Context *context; in M4PCMR_openRead() local 77 context = M4OSA_NULL; in M4PCMR_openRead() 78 context = (M4PCMR_Context *)M4OSA_32bitAlignedMalloc(sizeof(M4PCMR_Context), M4WAV_READER, in M4PCMR_openRead() 80 if (M4OSA_NULL == context) in M4PCMR_openRead() 84 *pContext = (M4OSA_Context)context; in M4PCMR_openRead() 87 context->m_offset = 0; in M4PCMR_openRead() 89 context->m_state = M4PCMR_kInit; in M4PCMR_openRead() 90 context->m_microState = M4PCMR_kInit; in M4PCMR_openRead() 91 context->m_pFileReadFunc = M4OSA_NULL; in M4PCMR_openRead() 92 context->m_fileContext = M4OSA_NULL; in M4PCMR_openRead() [all …]
|
/frameworks/av/libvideoeditor/osal/src/ |
D | M4OSA_Thread.c | 41 void* M4OSA_threadSyncForEverDo(void *context) in M4OSA_threadSyncForEverDo() argument 43 M4OSA_ThreadContext* threadContext = (M4OSA_ThreadContext*)context; in M4OSA_threadSyncForEverDo() 50 M4OSA_TRACE2_1("M4OSA_threadSyncForEverDo\t\tLPVOID 0x%x", context); in M4OSA_threadSyncForEverDo() 121 M4OSA_ERR M4OSA_threadSyncOpen(M4OSA_Context* context, in M4OSA_threadSyncOpen() argument 128 "M4OSA_ThreadDoIt 0x%x", context, func); in M4OSA_threadSyncOpen() 130 M4OSA_DEBUG_IF2(context == M4OSA_NULL, in M4OSA_threadSyncOpen() 136 *context = M4OSA_NULL; in M4OSA_threadSyncOpen() 175 *context = threadContext; in M4OSA_threadSyncOpen() 206 M4OSA_ERR M4OSA_threadSyncStart(M4OSA_Context context, in M4OSA_threadSyncStart() argument 209 M4OSA_ThreadContext* threadContext = (M4OSA_ThreadContext*)context; in M4OSA_threadSyncStart() [all …]
|
D | M4OSA_Semaphore.c | 66 M4OSA_ERR M4OSA_semaphoreOpen(M4OSA_Context* context, in M4OSA_semaphoreOpen() argument 72 "%d", context, initial_count); in M4OSA_semaphoreOpen() 74 M4OSA_DEBUG_IF2(context == M4OSA_NULL, in M4OSA_semaphoreOpen() 77 *context = M4OSA_NULL; in M4OSA_semaphoreOpen() 101 *context = (M4OSA_Context)semaphoreContext; in M4OSA_semaphoreOpen() 129 M4OSA_ERR M4OSA_semaphoreWait(M4OSA_Context context, M4OSA_Int32 timeout) in M4OSA_semaphoreWait() argument 131 M4OSA_SemaphoreContext* semaphoreContext = (M4OSA_SemaphoreContext*)context; in M4OSA_semaphoreWait() 137 context, timeout); in M4OSA_semaphoreWait() 139 M4OSA_DEBUG_IF2(context == M4OSA_NULL, in M4OSA_semaphoreWait() 210 M4OSA_ERR M4OSA_semaphorePost(M4OSA_Context context) in M4OSA_semaphorePost() argument [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 181 public DevicePolicyManager getManager(Context context) { in getManager() argument 185 mManager = (DevicePolicyManager)context.getSystemService( in getManager() 195 public ComponentName getWho(Context context) { in getWho() argument 199 mWho = new ComponentName(context, getClass()); in getWho() 210 public void onEnabled(Context context, Intent intent) { in onEnabled() argument 224 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() argument 236 public void onDisabled(Context context, Intent intent) { in onDisabled() argument 248 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() argument 259 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() argument 270 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() argument [all …]
|
/frameworks/base/core/java/android/service/dreams/ |
D | Sandman.java | 54 public static boolean shouldStartDockApp(Context context, Intent intent) { in shouldStartDockApp() argument 55 ComponentName name = intent.resolveActivity(context.getPackageManager()); in shouldStartDockApp() 62 public static void startDreamByUserRequest(Context context) { in startDreamByUserRequest() argument 63 startDream(context, false); in startDreamByUserRequest() 70 public static void startDreamWhenDockedIfAppropriate(Context context) { in startDreamWhenDockedIfAppropriate() argument 71 if (!isScreenSaverEnabled(context) in startDreamWhenDockedIfAppropriate() 72 || !isScreenSaverActivatedOnDock(context)) { in startDreamWhenDockedIfAppropriate() 77 startDream(context, true); in startDreamWhenDockedIfAppropriate() 80 private static void startDream(Context context, boolean docked) { in startDream() argument 94 (PowerManager)context.getSystemService(Context.POWER_SERVICE); in startDream() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 50 public static boolean isRotationLockToggleSupported(Context context) { in isRotationLockToggleSupported() argument 51 return context.getResources().getConfiguration().smallestScreenWidthDp >= 600; in isRotationLockToggleSupported() 57 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible() argument 58 return isRotationLockToggleSupported(context) && in isRotationLockToggleVisible() 59 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible() 67 public static boolean isRotationLocked(Context context) { in isRotationLocked() argument 68 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked() 77 public static void setRotationLock(Context context, final boolean enabled) { in setRotationLock() argument 78 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLock() 105 public static void setRotationLockForAccessibility(Context context, final boolean enabled) { in setRotationLockForAccessibility() argument [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 29 public static Context createThemedContext(Context context, boolean forceDark) { in createThemedContext() argument 30 boolean isLightTheme = isLightTheme(context); in createThemedContext() 32 context = new ContextThemeWrapper(context, R.style.Theme_AppCompat); in createThemedContext() 35 return new ContextThemeWrapper(context, isLightTheme ? in createThemedContext() 39 public static int getThemeResource(Context context, int attr) { in getThemeResource() argument 41 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource() 44 public static Drawable getThemeDrawable(Context context, int attr) { in getThemeDrawable() argument 45 int res = getThemeResource(context, attr); in getThemeDrawable() 46 return res != 0 ? context.getResources().getDrawable(res) : null; in getThemeDrawable() 49 private static boolean isLightTheme(Context context) { in isLightTheme() argument [all …]
|
/frameworks/av/libvideoeditor/osal/inc/ |
D | M4OSA_FileWriter.h | 72 M4OSA_ERR (*openWrite) (M4OSA_Context* context, 76 M4OSA_ERR (*writeData) (M4OSA_Context context, 80 M4OSA_ERR (*seek) (M4OSA_Context context, 84 M4OSA_ERR (*Flush) (M4OSA_Context context); 85 M4OSA_ERR (*closeWrite) (M4OSA_Context context); 86 M4OSA_ERR (*setOption) (M4OSA_Context context, 90 M4OSA_ERR (*getOption) (M4OSA_Context context, 100 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteOpen (M4OSA_Context* context, 104 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteData (M4OSA_Context context, 113 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteSeek (M4OSA_Context context, [all …]
|
D | M4OSA_FileReader.h | 76 M4OSA_ERR (*openRead) (M4OSA_Context* context, 80 M4OSA_ERR (*readData) (M4OSA_Context context, 84 M4OSA_ERR (*seek) (M4OSA_Context context, 88 M4OSA_ERR (*closeRead) (M4OSA_Context context); 90 M4OSA_ERR (*setOption) (M4OSA_Context context, 94 M4OSA_ERR (*getOption) (M4OSA_Context context, 104 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileReadOpen (M4OSA_Context* context, 108 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileReadData (M4OSA_Context context, 112 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileReadSeek (M4OSA_Context context, 116 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileReadClose (M4OSA_Context context); [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetProvider.java | 57 public void onReceive(Context context, Intent intent) { in onReceive() argument 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); in onReceive() 74 this.onDeleted(context, new int[] { appWidgetId }); in onReceive() 83 this.onAppWidgetOptionsChanged(context, AppWidgetManager.getInstance(context), in onReceive() 88 this.onEnabled(context); in onReceive() 91 this.onDisabled(context); in onReceive() 113 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() argument 131 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, in onAppWidgetOptionsChanged() argument 148 public void onDeleted(Context context, int[] appWidgetIds) { in onDeleted() argument 167 public void onEnabled(Context context) { in onEnabled() argument [all …]
|
/frameworks/opt/mms/src/java/com/google/android/mms/util/ |
D | SqliteWrapper.java | 41 private static boolean isLowMemory(Context context) { in isLowMemory() argument 42 if (null == context) { in isLowMemory() 47 context.getSystemService(Context.ACTIVITY_SERVICE); in isLowMemory() 59 public static void checkSQLiteException(Context context, SQLiteException e) { in checkSQLiteException() argument 61 Toast.makeText(context, com.android.internal.R.string.low_memory, in checkSQLiteException() 68 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 74 checkSQLiteException(context, e); in query() 79 public static boolean requery(Context context, Cursor cursor) { in requery() argument 84 checkSQLiteException(context, e); in requery() 88 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument [all …]
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
D | gltrace_fixup.cpp | 147 void fixup_addFBContents(GLTraceContext *context, GLMessage *glmsg, FBBinding fbToRead) { in fixup_addFBContents() argument 150 context->getCompressedFB(&fbcontents, &fbsize, &fbwidth, &fbheight, fbToRead); in fixup_addFBContents() 342 GLint getShaderVariableLocation(GLTraceContext *context, GLMessage *glmsg, GLchar *name) { in getShaderVariableLocation() argument 351 return context->hooks->gl.glGetAttribLocation(program, name); in getShaderVariableLocation() 353 return context->hooks->gl.glGetUniformLocation(program, name); in getShaderVariableLocation() 357 void fixup_glGetActiveAttribOrUniform(GLTraceContext *context, GLMessage *glmsg, in fixup_glGetActiveAttribOrUniform() argument 375 GLint location = getShaderVariableLocation(context, glmsg, (GLchar*)pointersToFixup[3]); in fixup_glGetActiveAttribOrUniform() 382 GLint glGetInteger(GLTraceContext *context, GLenum param) { in glGetInteger() argument 384 context->hooks->gl.glGetIntegerv(param, &x); in glGetInteger() 388 GLint glGetVertexAttrib(GLTraceContext *context, GLuint index, GLenum pname) { in glGetVertexAttrib() argument [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ResourceCursorAdapter.java | 53 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter() argument 54 super(context, c); in ResourceCursorAdapter() 56 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter() 75 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter() argument 76 super(context, c, autoRequery); in ResourceCursorAdapter() 78 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter() 92 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter() argument 93 super(context, c, flags); in ResourceCursorAdapter() 95 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter() 105 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() argument [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ResourceCursorAdapter.java | 51 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter() argument 52 super(context, c); in ResourceCursorAdapter() 54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter() 73 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter() argument 74 super(context, c, autoRequery); in ResourceCursorAdapter() 76 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter() 90 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter() argument 91 super(context, c, flags); in ResourceCursorAdapter() 93 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter() 103 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() argument [all …]
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | BordeauxManagerService.java | 55 static private synchronized void bindServices(Context context) { in bindServices() argument 57 context.bindService(new Intent(IBordeauxService.class.getName()), in bindServices() 63 static public synchronized void release(Context context) { in release() argument 65 context.unbindService(mConnection); in release() 71 static public synchronized IBordeauxService getService(Context context) { in getService() argument 72 if (mService == null) bindServices(context); in getService() 76 static public synchronized IAggregatorManager getAggregatorManager(Context context) { in getAggregatorManager() argument 78 bindServices(context); in getAggregatorManager() 90 static public synchronized IPredictor getPredictor(Context context, String name) { in getPredictor() argument 92 bindServices(context); in getPredictor() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | AttributeCache.java | 44 public final Context context; field in AttributeCache.Package 49 context = c; in Package() 54 public final Context context; field in AttributeCache.Entry 58 context = c; in Entry() 63 public static void init(Context context) { in init() argument 65 sInstance = new AttributeCache(context); in init() 73 public AttributeCache(Context context) { in AttributeCache() argument 74 mContext = context; in AttributeCache() 111 Context context; in get() local 113 context = mContext.createPackageContext(packageName, 0); in get() [all …]
|
D | SystemServer.java | 143 Context context = null; in run() local 216 context = ActivityManagerService.main(factoryTest); in run() 219 display = new DisplayManagerService(context, wmHandler, uiHandler); in run() 223 telephonyRegistry = new TelephonyRegistry(context); in run() 230 AttributeCache.init(context); in run() 248 pm = PackageManagerService.main(context, installer, in run() 260 ServiceManager.addService("entropy", new EntropyMixer(context)); in run() 266 mContentResolver = context.getContentResolver(); in run() 271 accountManager = new AccountManagerService(context); in run() 278 contentService = ContentService.main(context, in run() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | ImageSpan.java | 52 public ImageSpan(Context context, Bitmap b) { in ImageSpan() argument 53 this(context, b, ALIGN_BOTTOM); in ImageSpan() 60 public ImageSpan(Context context, Bitmap b, int verticalAlignment) { in ImageSpan() argument 62 mContext = context; in ImageSpan() 63 mDrawable = context != null in ImageSpan() 64 ? new BitmapDrawable(context.getResources(), b) in ImageSpan() 98 public ImageSpan(Context context, Uri uri) { in ImageSpan() argument 99 this(context, uri, ALIGN_BOTTOM); in ImageSpan() 106 public ImageSpan(Context context, Uri uri, int verticalAlignment) { in ImageSpan() argument 108 mContext = context; in ImageSpan() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 42 … public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { in twoButtonsSeparatedByFiller() argument 48 final LinearLayout ll = new LinearLayout(context); in twoButtonsSeparatedByFiller() 56 final Button topButton = new Button(context); in twoButtonsSeparatedByFiller() 62 final TextView middleFiller = new TextView(context); in twoButtonsSeparatedByFiller() 69 final Button bottomButton = new Button(context); in twoButtonsSeparatedByFiller() 91 public static View horizontalButtonSlots(Context context, int desiredHeight, Slot... slots) { in horizontalButtonSlots() argument 93 final LinearLayout ll = new LinearLayout(context); in horizontalButtonSlots() 119 final Button button = new Button(context); in horizontalButtonSlots() 123 ll.addView(new View(context), lp); in horizontalButtonSlots() 127 final Button button = new Button(context); in horizontalButtonSlots() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | CompatTextView.java | 35 public CompatTextView(Context context) { in CompatTextView() argument 36 this(context, null); in CompatTextView() 39 public CompatTextView(Context context, AttributeSet attrs) { in CompatTextView() argument 40 this(context, attrs, 0); in CompatTextView() 43 public CompatTextView(Context context, AttributeSet attrs, int defStyle) { in CompatTextView() argument 44 super(context, attrs, defStyle); in CompatTextView() 48 TypedArray style = context in CompatTextView() 57 setTransformationMethod(new AllCapsTransformationMethod(context)); in CompatTextView() 68 public AllCapsTransformationMethod(Context context) { in AllCapsTransformationMethod() argument 69 mLocale = context.getResources().getConfiguration().locale; in AllCapsTransformationMethod()
|
/frameworks/base/core/jni/ |
D | android_media_ToneGenerator.cpp | 37 jfieldID context; member 45 fields.context); in android_media_ToneGenerator_startTone() 58 fields.context); in android_media_ToneGenerator_stopTone() 70 fields.context); in android_media_ToneGenerator_getAudioSessionId() 80 fields.context); in android_media_ToneGenerator_release() 83 env->SetIntField(thiz, fields.context, 0); in android_media_ToneGenerator_release() 92 env->SetIntField(thiz, fields.context, 0); in android_media_ToneGenerator_native_setup() 106 env->SetIntField(thiz, fields.context, (int)lpToneGen); in android_media_ToneGenerator_native_setup() 108 ALOGV("ToneGenerator fields.context: %x", env->GetIntField(thiz, fields.context)); in android_media_ToneGenerator_native_setup() 116 fields.context); in android_media_ToneGenerator_native_finalize() [all …]
|
/frameworks/av/libvideoeditor/vss/3gpwriter/inc/ |
D | M4MP4W_Writer.h | 102 M4OSA_ERR M4MP4W_addStream( M4OSA_Context context, 117 M4OSA_ERR M4MP4W_startWriting( M4OSA_Context context); 133 M4OSA_ERR M4MP4W_startAU( M4OSA_Context context, 155 M4OSA_ERR M4MP4W_processAU( M4OSA_Context context, 170 M4OSA_ERR M4MP4W_closeWrite( M4OSA_Context context); 185 M4OSA_ERR M4MP4W_getOption( M4OSA_Context context, 203 M4OSA_ERR M4MP4W_setOption( M4OSA_Context context, 222 M4OSA_ERR M4MP4W_getState( M4OSA_Context context, 234 M4OSA_ERR M4MP4W_getCurrentFileSize( M4OSA_Context context,
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportReceiver.java | 67 public void onReceive(Context context, Intent intent) { in onReceive() argument 73 final Uri bugreportUri = FileProvider.getUriForFile(context, AUTHORITY, bugreportFile); in onReceive() 74 final Uri screenshotUri = FileProvider.getUriForFile(context, AUTHORITY, screenshotFile); in onReceive() 76 Intent sendIntent = buildSendIntent(context, bugreportUri, screenshotUri); in onReceive() 80 if (getWarningState(context, STATE_SHOW) == STATE_SHOW) { in onReceive() 81 notifIntent = buildWarningIntent(context, sendIntent); in onReceive() 87 final Notification.Builder builder = new Notification.Builder(context); in onReceive() 89 builder.setContentTitle(context.getString(R.string.bugreport_finished_title)); in onReceive() 90 builder.setTicker(context.getString(R.string.bugreport_finished_title)); in onReceive() 91 builder.setContentText(context.getString(R.string.bugreport_finished_text)); in onReceive() [all …]
|
/frameworks/base/core/java/android/view/ |
D | OrientationListener.java | 45 public OrientationListener(Context context) { in OrientationListener() argument 46 mOrientationEventLis = new OrientationEventListenerInternal(context); in OrientationListener() 58 public OrientationListener(Context context, int rate) { in OrientationListener() argument 59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate); in OrientationListener() 63 OrientationEventListenerInternal(Context context) { in OrientationEventListenerInternal() argument 64 super(context); in OrientationEventListenerInternal() 67 OrientationEventListenerInternal(Context context, int rate) { in OrientationEventListenerInternal() argument 68 super(context, rate); in OrientationEventListenerInternal()
|