/frameworks/media/libvideoeditor/vss/src/ |
D | VideoEditorResampler.cpp | 80 VideoEditorResampler *context = new VideoEditorResampler(); in LVAudioResamplerCreate() local 81 context->mResampler = AudioResampler::create( in LVAudioResamplerCreate() 83 if (context->mResampler == NULL) { in LVAudioResamplerCreate() 86 context->mResampler->setSampleRate(android::VideoEditorResampler::kFreq32000Hz); in LVAudioResamplerCreate() 87 context->mResampler->setVolume(0x1000, 0x1000); in LVAudioResamplerCreate() 88 context->nbChannels = inChannelCount; in LVAudioResamplerCreate() 89 context->outSamplingRate = sampleRate; in LVAudioResamplerCreate() 90 context->mInput = NULL; in LVAudioResamplerCreate() 91 context->mTmpInBuffer = NULL; in LVAudioResamplerCreate() 93 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/media/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 …]
|
D | M4OSA_Mutex.c | 129 M4OSA_ERR M4OSA_mutexLock(M4OSA_Context context, M4OSA_UInt32 timeout) in M4OSA_mutexLock() argument 131 M4OSA_MutexContext* pMutexContext = (M4OSA_MutexContext*)context; in M4OSA_mutexLock() 138 context, timeout); in M4OSA_mutexLock() 140 M4OSA_DEBUG_IF2(M4OSA_NULL == context, M4ERR_PARAMETER, in M4OSA_mutexLock() 216 M4OSA_ERR M4OSA_mutexUnlock(M4OSA_Context context) in M4OSA_mutexUnlock() argument 218 M4OSA_MutexContext* pMutexContext = (M4OSA_MutexContext*)context; in M4OSA_mutexUnlock() 221 M4OSA_TRACE1_1("M4OSA_mutexUnlock\t\tM4OSA_Context 0x%x", context); in M4OSA_mutexUnlock() 222 M4OSA_DEBUG_IF2(M4OSA_NULL == context, M4ERR_PARAMETER, in M4OSA_mutexUnlock() 258 M4OSA_ERR M4OSA_mutexClose(M4OSA_Context context) in M4OSA_mutexClose() argument 260 M4OSA_MutexContext* pMutexContext = (M4OSA_MutexContext*)context; in M4OSA_mutexClose() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 174 public DevicePolicyManager getManager(Context context) { in getManager() argument 178 mManager = (DevicePolicyManager)context.getSystemService( in getManager() 188 public ComponentName getWho(Context context) { in getWho() argument 192 mWho = new ComponentName(context, getClass()); in getWho() 203 public void onEnabled(Context context, Intent intent) { in onEnabled() argument 217 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() argument 229 public void onDisabled(Context context, Intent intent) { in onDisabled() argument 241 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() argument 252 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() argument 263 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() argument [all …]
|
/frameworks/media/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/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/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 …]
|
D | ResourceCursorTreeAdapter.java | 51 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, in ResourceCursorTreeAdapter() argument 53 super(cursor, context); in ResourceCursorTreeAdapter() 60 mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorTreeAdapter() 76 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, in ResourceCursorTreeAdapter() argument 78 this(context, cursor, collapsedGroupLayout, expandedGroupLayout, childLayout, childLayout); in ResourceCursorTreeAdapter() 92 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, in ResourceCursorTreeAdapter() argument 94 this(context, cursor, groupLayout, groupLayout, childLayout, childLayout); in ResourceCursorTreeAdapter() 98 public View newChildView(Context context, Cursor cursor, boolean isLastChild, in newChildView() argument 104 public View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) { in newGroupView() argument
|
/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 | 123 Context context = null; in run() local 144 context = ActivityManagerService.main(factoryTest); in run() 147 ServiceManager.addService("telephony.registry", new TelephonyRegistry(context)); in run() 149 AttributeCache.init(context); in run() 163 pm = PackageManagerService.main(context, in run() 174 mContentResolver = context.getContentResolver(); in run() 180 new AccountManagerService(context)); in run() 186 ContentService.main(context, in run() 193 lights = new LightsService(context); in run() 196 battery = new BatteryService(context, lights); in run() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetProvider.java | 52 public void onReceive(Context context, Intent intent) { in onReceive() argument 61 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); in onReceive() 69 this.onDeleted(context, new int[] { appWidgetId }); in onReceive() 73 this.onEnabled(context); in onReceive() 76 this.onDisabled(context); in onReceive() 98 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() argument 114 public void onDeleted(Context context, int[] appWidgetIds) { in onDeleted() argument 133 public void onEnabled(Context context) { in onEnabled() argument 148 public void onDisabled(Context context) { in onDisabled() argument
|
/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/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/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_release() 73 env->SetIntField(thiz, fields.context, 0); in android_media_ToneGenerator_release() 84 env->SetIntField(thiz, fields.context, 0); in android_media_ToneGenerator_native_setup() 102 env->SetIntField(thiz, fields.context, (int)lpToneGen); in android_media_ToneGenerator_native_setup() 104 LOGV("ToneGenerator fields.context: %x\n", env->GetIntField(thiz, fields.context)); in android_media_ToneGenerator_native_setup() 112 fields.context); in android_media_ToneGenerator_native_finalize() 140 fields.context = env->GetFieldID(clazz, "mNativeContext", "I"); in register_android_media_ToneGenerator() [all …]
|
D | android_os_StatFs.cpp | 36 jfieldID context; member 45 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getBlockSize() 52 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getBlockCount() 59 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getFreeBlocks() 66 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getAvailableBlocks() 79 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_native_restat() 96 env->SetIntField(thiz, fields.context, 0); in android_os_StatFs_native_restat() 116 env->SetIntField(thiz, fields.context, (int)stat); in android_os_StatFs_native_setup() 123 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_native_finalize() 126 env->SetIntField(thiz, fields.context, 0); in android_os_StatFs_native_finalize() [all …]
|
/frameworks/media/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/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestView.java | 57 public BiDiTestView(Context context) { in BiDiTestView() argument 58 super(context); in BiDiTestView() 59 init(context); in BiDiTestView() 62 public BiDiTestView(Context context, AttributeSet attrs) { in BiDiTestView() argument 63 super(context, attrs); in BiDiTestView() 64 init(context); in BiDiTestView() 67 public BiDiTestView(Context context, AttributeSet attrs, int defStyle) { in BiDiTestView() argument 68 super(context, attrs, defStyle); in BiDiTestView() 69 init(context); in BiDiTestView() 72 private void init(Context context) { in init() argument [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()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SqliteWrapper.java | 47 public static void checkSQLiteException(Context context, SQLiteException e) { in checkSQLiteException() argument 49 Toast.makeText(context, com.android.internal.R.string.low_memory, in checkSQLiteException() 56 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 62 checkSQLiteException(context, e); in query() 67 public static boolean requery(Context context, Cursor cursor) { in requery() argument 72 checkSQLiteException(context, e); in requery() 76 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 82 checkSQLiteException(context, e); in update() 87 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 93 checkSQLiteException(context, e); in delete() [all …]
|
/frameworks/compile/slang/ |
D | slang_rs_reflect_utils.cpp | 107 const RSSlangReflectUtils::BitCodeAccessorContext &context, FILE *pfout) { in GenerateAccessorHeader() argument 110 fprintf(pfout, " * The source Renderscript file: %s\n", context.rsFileName); in GenerateAccessorHeader() 112 fprintf(pfout, "package %s;\n\n", context.packageName); in GenerateAccessorHeader() 120 const RSSlangReflectUtils::BitCodeAccessorContext &context, FILE *pfout) { in GenerateAccessorMethodSignature() argument 162 const RSSlangReflectUtils::BitCodeAccessorContext &context, FILE *pfout) { in GenerateJavaCodeAccessorMethod() argument 163 FILE *pfin = fopen(context.bcFileName, "rb"); in GenerateJavaCodeAccessorMethod() 165 fprintf(stderr, "Error: could not read file %s\n", context.bcFileName); in GenerateJavaCodeAccessorMethod() 170 GenerateAccessorMethodSignature(context, pfout); in GenerateJavaCodeAccessorMethod() 210 const RSSlangReflectUtils::BitCodeAccessorContext &context, in GenerateAccessorClass() argument 220 switch (context.bcStorage) { in GenerateAccessorClass() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceManager.java | 156 private PreferenceManager(Context context) { in PreferenceManager() argument 157 init(context); in PreferenceManager() 160 private void init(Context context) { in init() argument 161 mContext = context; in init() 163 setSharedPreferencesName(getDefaultSharedPreferencesName(context)); in init() 228 final Context context; in inflateFromIntent() local 230 context = mContext.createPackageContext(activityInfo.packageName, 0); in inflateFromIntent() 237 final PreferenceInflater inflater = new PreferenceInflater(context, this); in inflateFromIntent() 238 final XmlResourceParser parser = activityInfo.loadXmlMetaData(context in inflateFromIntent() 263 public PreferenceScreen inflateFromResource(Context context, int resId, in inflateFromResource() argument [all …]
|