Searched defs:def (Results 1 - 25 of 58) sorted by relevance

123

/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DConfirmationActivity.java24 private String getTextExtra(String extra, String def) { argument
27 return def;
H A DNotificationBuilderTest.java456 private int getRadioInt(int id, int def) { argument
459 return def;
464 return def;
469 private int getRadioHex(int id, int def) { argument
472 return def;
480 return def;
/frameworks/base/core/java/android/util/
H A DKeyValueListParser.java68 * @param def The value to return if the key was not found, or the value was not a long.
71 public int getInt(String key, int def) { argument
80 return def;
86 * @param def The value to return if the key was not found, or the value was not a long.
89 public long getLong(String key, long def) { argument
98 return def;
104 * @param def The value to return if the key was not found, or the value was not a float.
107 public float getFloat(String key, float def) { argument
116 return def;
122 * @param def Th
125 getString(String key, String def) argument
[all...]
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportPrefs.java36 static int getWarningState(Context context, int def) { argument
39 return prefs.getInt(KEY_WARNING_STATE, def);
/frameworks/base/tools/aapt2/java/
H A DClassDefinition.cpp66 bool ClassDefinition::writeJavaFile(const ClassDefinition* def, argument
71 def->writeToStream("", final, out);
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DSystemProperties_Delegate.java42 /*package*/ static String native_get(String key, String def) { argument
49 return def;
52 /*package*/ static int native_get_int(String key, int def) { argument
59 return def;
63 /*package*/ static long native_get_long(String key, long def) { argument
70 return def;
78 /*package*/ static boolean native_get_boolean(String key, boolean def) { argument
92 return def;
96 /*package*/ static void native_set(String key, String def) { argument
98 properties.put(key, def);
[all...]
/frameworks/base/core/java/android/os/
H A DSystemProperties.java36 private static native String native_get(String key, String def); argument
37 private static native int native_get_int(String key, int def); argument
38 private static native long native_get_long(String key, long def); argument
39 private static native boolean native_get_boolean(String key, boolean def); argument
40 private static native void native_set(String key, String def); argument
57 * @return if the key isn't found, return def if it isn't null, or an empty string otherwise
60 public static String get(String key, String def) { argument
64 return native_get(key, def);
70 * @param def a default value to return
71 * @return the key parsed as an integer, or def i
75 getInt(String key, int def) argument
90 getLong(String key, long def) argument
110 getBoolean(String key, boolean def) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DProcFileReader.java174 public long nextOptionalLong(long def) throws IOException { argument
177 return def;
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
H A DSoftAMRNBEncoder.cpp67 OMX_PARAM_PORTDEFINITIONTYPE def; local
68 InitOMXParams(&def);
70 def.nPortIndex = 0;
71 def.eDir = OMX_DirInput;
72 def.nBufferCountMin = kNumBuffers;
73 def.nBufferCountActual = def.nBufferCountMin;
74 def.nBufferSize = kNumSamplesPerFrame * sizeof(int16_t);
75 def.bEnabled = OMX_TRUE;
76 def
[all...]
/frameworks/av/media/libstagefright/codecs/gsm/dec/
H A DSoftGSM.cpp63 OMX_PARAM_PORTDEFINITIONTYPE def; local
64 InitOMXParams(&def);
66 def.nPortIndex = 0;
67 def.eDir = OMX_DirInput;
68 def.nBufferCountMin = kNumBuffers;
69 def.nBufferCountActual = def.nBufferCountMin;
70 def.nBufferSize = 1024 / kMSGSMFrameSize * kMSGSMFrameSize;
71 def.bEnabled = OMX_TRUE;
72 def
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/
H A DSoftMP3.cpp70 OMX_PARAM_PORTDEFINITIONTYPE def; local
71 InitOMXParams(&def);
73 def.nPortIndex = 0;
74 def.eDir = OMX_DirInput;
75 def.nBufferCountMin = kNumBuffers;
76 def.nBufferCountActual = def.nBufferCountMin;
77 def.nBufferSize = 8192;
78 def.bEnabled = OMX_TRUE;
79 def
[all...]
/frameworks/av/media/libstagefright/codecs/raw/
H A DSoftRaw.cpp56 OMX_PARAM_PORTDEFINITIONTYPE def; local
57 InitOMXParams(&def);
59 def.nPortIndex = 0;
60 def.eDir = OMX_DirInput;
61 def.nBufferCountMin = kNumBuffers;
62 def.nBufferCountActual = def.nBufferCountMin;
63 def.nBufferSize = 32 * 1024;
64 def.bEnabled = OMX_TRUE;
65 def
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DADebug.cpp38 const char *name, const char *value, long def) {
82 def = level;
84 return def;
89 const char *name, const char *propertyName, long def) {
92 def = GetLevelFromSettingsString(name, value, def);
94 return def;
99 const char *name, const char *propertyName, ADebug::Level def) {
100 long level = GetLevelFromProperty(name, propertyName, (long)def);
37 GetLevelFromSettingsString( const char *name, const char *value, long def) argument
88 GetLevelFromProperty( const char *name, const char *propertyName, long def) argument
98 GetDebugLevelFromProperty( const char *name, const char *propertyName, ADebug::Level def) argument
/frameworks/base/core/java/android/content/
H A DSyncStatusInfo.java56 public int getLastFailureMesgAsInt(int def) { argument
62 return def;
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumePrefs.java62 public static boolean get(Context context, String key, boolean def) { argument
63 return prefs(context).getBoolean(key, def);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DWizardManagerHelper.java185 * the theme is not specified in the intent, or the theme specified is unknown, the value def
189 * @param def The default value if the theme is not specified.
192 public static boolean isLightTheme(Intent intent, boolean def) { argument
194 return isLightTheme(theme, def);
199 * unknown, the value def will be returned.
202 * @param def The default value if the theme is not known.
205 public static boolean isLightTheme(String theme, boolean def) { argument
213 return def;
/frameworks/av/media/libstagefright/codecs/aacenc/
H A DSoftAACEncoder.cpp81 OMX_PARAM_PORTDEFINITIONTYPE def; local
82 InitOMXParams(&def);
84 def.nPortIndex = 0;
85 def.eDir = OMX_DirInput;
86 def.nBufferCountMin = kNumBuffers;
87 def.nBufferCountActual = def.nBufferCountMin;
88 def.nBufferSize = kNumSamplesPerFrame * sizeof(int16_t) * 2;
89 def.bEnabled = OMX_TRUE;
90 def
[all...]
H A DSoftAACEncoder2.cpp80 OMX_PARAM_PORTDEFINITIONTYPE def; local
81 InitOMXParams(&def);
83 def.nPortIndex = 0;
84 def.eDir = OMX_DirInput;
85 def.nBufferCountMin = kNumBuffers;
86 def.nBufferCountActual = def.nBufferCountMin;
87 def.nBufferSize = kNumSamplesPerFrame * sizeof(int16_t) * 2;
88 def.bEnabled = OMX_TRUE;
89 def
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
H A DSoftAMR.cpp78 OMX_PARAM_PORTDEFINITIONTYPE def; local
79 InitOMXParams(&def);
81 def.nPortIndex = 0;
82 def.eDir = OMX_DirInput;
83 def.nBufferCountMin = kNumBuffers;
84 def.nBufferCountActual = def.nBufferCountMin;
85 def.nBufferSize = 8192;
86 def.bEnabled = OMX_TRUE;
87 def
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/
H A DSoftAMRWBEncoder.cpp74 OMX_PARAM_PORTDEFINITIONTYPE def; local
75 InitOMXParams(&def);
77 def.nPortIndex = 0;
78 def.eDir = OMX_DirInput;
79 def.nBufferCountMin = kNumBuffers;
80 def.nBufferCountActual = def.nBufferCountMin;
81 def.nBufferSize = kNumSamplesPerFrame * sizeof(int16_t);
82 def.bEnabled = OMX_TRUE;
83 def
[all...]
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.cpp110 OMX_PARAM_PORTDEFINITIONTYPE def; local
111 InitOMXParams(&def);
114 def.nPortIndex = 0;
115 def.eDir = OMX_DirInput;
116 def.nBufferCountMin = kNumBuffers;// TODO verify that 1 is enough
117 def.nBufferCountActual = def.nBufferCountMin;
118 def.nBufferSize = kMaxInputBufferSize;
119 def.bEnabled = OMX_TRUE;
120 def
[all...]
/frameworks/av/media/libstagefright/codecs/g711/dec/
H A DSoftG711.cpp60 OMX_PARAM_PORTDEFINITIONTYPE def; local
61 InitOMXParams(&def);
63 def.nPortIndex = 0;
64 def.eDir = OMX_DirInput;
65 def.nBufferCountMin = kNumBuffers;
66 def.nBufferCountActual = def.nBufferCountMin;
67 def.nBufferSize = 8192;
68 def.bEnabled = OMX_TRUE;
69 def
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp376 OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(kOutputPortIndex)->mDef; local
377 def->format.video.nStride = align(def->format.video.nStride, 16);
378 def->format.video.nSliceHeight = align(def->format.video.nSliceHeight, 16);
379 def->nBufferSize = (def->format.video.nStride * def->format.video.nSliceHeight * 3) / 2;
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.cpp82 OMX_PARAM_PORTDEFINITIONTYPE def; local
83 InitOMXParams(&def);
85 def.nPortIndex = 0;
86 def.eDir = OMX_DirInput;
87 def.nBufferCountMin = kNumBuffers;
88 def.nBufferCountActual = def.nBufferCountMin;
89 def.nBufferSize = 960 * 6;
90 def.bEnabled = OMX_TRUE;
91 def
[all...]
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp80 OMX_PARAM_PORTDEFINITIONTYPE def; local
81 InitOMXParams(&def);
83 def.nPortIndex = 0;
84 def.eDir = OMX_DirInput;
85 def.nBufferCountMin = kNumBuffers;
86 def.nBufferCountActual = def.nBufferCountMin;
87 def.nBufferSize = kMaxNumSamplesPerBuffer * sizeof(int16_t);
88 def.bEnabled = OMX_TRUE;
89 def
[all...]

Completed in 423 milliseconds

123