Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
Dmain.cpp49 struct sigaction sa = gSigChain[sig]; in gtestSigHandler() local
50 sigaction(sig, &sa, nullptr); in gtestSigHandler()
63 struct sigaction sa; in main() local
64 memset(&sa, 0, sizeof(sa)); in main()
65 sa.sa_sigaction = &gtestSigHandler; in main()
66 sa.sa_flags = SA_SIGINFO; in main()
69 sigaction(sig, &sa, &old_sa); in main()
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dquantize.c129 Word32 sa; in quantizeLines() local
132 sa = L_abs(mdctSpeL); in quantizeLines()
134 saShft = sa >> g; in quantizeLines()
155 qua = quantizeSingleLine(gain, sa); in quantizeLines()
177 Word32 sa; in quantizeLines() local
180 sa = L_abs(mdctSpeL); in quantizeLines()
181 saShft = sa << g; in quantizeLines()
202 qua = quantizeSingleLine(gain, sa); in quantizeLines()
351 Word32 sa; in calcSfbDist() local
353 sa = L_abs(spec[line]); in calcSfbDist()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageParser.java335 TypedArray sa; field in PackageParser.ParsePackageItemArgs
2004 TypedArray sa = res.obtainAttributes(parser, in parseBaseApk() local
2007 pkg.mVersionCode = pkg.applicationInfo.versionCode = sa.getInteger( in parseBaseApk()
2009 pkg.baseRevisionCode = sa.getInteger( in parseBaseApk()
2011 pkg.mVersionName = sa.getNonConfigurationString( in parseBaseApk()
2019 sa.recycle(); in parseBaseApk()
2054 TypedArray sa = res.obtainAttributes(parser, in parseBaseApkCommon() local
2057 String str = sa.getNonConfigurationString( in parseBaseApkCommon()
2073 pkg.mSharedUserLabel = sa.getResourceId( in parseBaseApkCommon()
2077 pkg.installLocation = sa.getInteger( in parseBaseApkCommon()
[all …]
DPackageItemInfo.java421 CharSequence sa = aa.loadLabel(mPM); in compare() local
422 if (sa == null) sa = aa.name; in compare()
425 return sCollator.compare(sa.toString(), sb.toString()); in compare()
DResolveInfo.java468 CharSequence sa = a.loadLabel(mPM); in compare() local
469 if (sa == null) sa = a.activityInfo.name; in compare()
473 return mCollator.compare(sa.toString(), sb.toString()); in compare()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountAuthenticatorCache.java58 TypedArray sa = res.obtainAttributes(attrs, in parseServiceAttributes() local
62 sa.getString(com.android.internal.R.styleable.AccountAuthenticator_accountType); in parseServiceAttributes()
63 final int labelId = sa.getResourceId( in parseServiceAttributes()
65 final int iconId = sa.getResourceId( in parseServiceAttributes()
67 final int smallIconId = sa.getResourceId( in parseServiceAttributes()
69 final int prefId = sa.getResourceId( in parseServiceAttributes()
71 final boolean customTokens = sa.getBoolean( in parseServiceAttributes()
79 sa.recycle(); in parseServiceAttributes()
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
Darray_init.rs7 short sa[4] = {1, 1, 2, 3};
29 _RS_ASSERT(sa[0] == 1);
30 _RS_ASSERT(sa[1] == 1);
31 _RS_ASSERT(sa[2] == 2);
32 _RS_ASSERT(sa[3] == 3);
DUT_array_init.java51 short[] sa = s.get_sa(); in checkInit() local
52 _RS_ASSERT("sa[0] == 1", sa[0] == 1); in checkInit()
53 _RS_ASSERT("sa[1] == 1", sa[1] == 1); in checkInit()
54 _RS_ASSERT("sa[2] == 2", sa[2] == 2); in checkInit()
55 _RS_ASSERT("sa[3] == 3", sa[3] == 3); in checkInit()
56 _RS_ASSERT("sa.length == 4", sa.length == 4); in checkInit()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Darray_init.rs7 short sa[4] = {1, 1, 2, 3};
29 _RS_ASSERT(sa[0] == 1);
30 _RS_ASSERT(sa[1] == 1);
31 _RS_ASSERT(sa[2] == 2);
32 _RS_ASSERT(sa[3] == 3);
DUT_array_init.java51 short[] sa = s.get_sa(); in checkInit() local
52 _RS_ASSERT("sa[0] == 1", sa[0] == 1); in checkInit()
53 _RS_ASSERT("sa[1] == 1", sa[1] == 1); in checkInit()
54 _RS_ASSERT("sa[2] == 2", sa[2] == 2); in checkInit()
55 _RS_ASSERT("sa[3] == 3", sa[3] == 3); in checkInit()
56 _RS_ASSERT("sa.length == 4", sa.length == 4); in checkInit()
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
Darray_init.rs7 short sa[4] = {1, 1, 2, 3};
29 _RS_ASSERT(sa[0] == 1);
30 _RS_ASSERT(sa[1] == 1);
31 _RS_ASSERT(sa[2] == 2);
32 _RS_ASSERT(sa[3] == 3);
DUT_array_init.java48 short[] sa = s.get_sa(); in checkInit() local
49 _RS_ASSERT("sa[0] == 1", sa[0] == 1); in checkInit()
50 _RS_ASSERT("sa[1] == 1", sa[1] == 1); in checkInit()
51 _RS_ASSERT("sa[2] == 2", sa[2] == 2); in checkInit()
52 _RS_ASSERT("sa[3] == 3", sa[3] == 3); in checkInit()
53 _RS_ASSERT("sa.length == 4", sa.length == 4); in checkInit()
/frameworks/base/core/java/android/content/
DSyncAdaptersCache.java59 TypedArray sa = res.obtainAttributes(attrs, in parseServiceAttributes() local
63 sa.getString(com.android.internal.R.styleable.SyncAdapter_contentAuthority); in parseServiceAttributes()
65 sa.getString(com.android.internal.R.styleable.SyncAdapter_accountType); in parseServiceAttributes()
70 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_userVisible, true); in parseServiceAttributes()
72 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_supportsUploading, in parseServiceAttributes()
75 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_isAlwaysSyncable, in parseServiceAttributes()
78 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_allowParallelSyncs, in parseServiceAttributes()
81 sa.getString(com.android.internal.R.styleable in parseServiceAttributes()
86 sa.recycle(); in parseServiceAttributes()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutParser.java273 final TypedArray sa = service.mContext.getResources().obtainAttributes(attrs, in parseCategories() local
276 if (sa.getType(R.styleable.ShortcutCategories_name) == TypedValue.TYPE_STRING) { in parseCategories()
277 return sa.getNonResourceString(R.styleable.ShortcutCategories_name); in parseCategories()
283 sa.recycle(); in parseCategories()
290 final TypedArray sa = service.mContext.getResources().obtainAttributes(attrs, in parseShortcutAttributes() local
293 if (sa.getType(R.styleable.Shortcut_shortcutId) != TypedValue.TYPE_STRING) { in parseShortcutAttributes()
297 final String id = sa.getNonResourceString(R.styleable.Shortcut_shortcutId); in parseShortcutAttributes()
298 final boolean enabled = sa.getBoolean(R.styleable.Shortcut_enabled, true); in parseShortcutAttributes()
299 final int iconResId = sa.getResourceId(R.styleable.Shortcut_icon, 0); in parseShortcutAttributes()
300 final int titleResId = sa.getResourceId(R.styleable.Shortcut_shortcutShortLabel, 0); in parseShortcutAttributes()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperInfo.java124 TypedArray sa = res.obtainAttributes(attrs, in WallpaperInfo() local
126 settingsActivityComponent = sa.getString( in WallpaperInfo()
129 thumbnailRes = sa.getResourceId( in WallpaperInfo()
132 authorRes = sa.getResourceId( in WallpaperInfo()
135 descriptionRes = sa.getResourceId( in WallpaperInfo()
138 contextUriRes = sa.getResourceId( in WallpaperInfo()
141 contextDescriptionRes = sa.getResourceId( in WallpaperInfo()
144 showMetadataInPreview = sa.getBoolean( in WallpaperInfo()
148 sa.recycle(); in WallpaperInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutParser.java103 final TypedArray sa = mResources.obtainAttributes(mAttrs, R.styleable.Shortcut); in parseShortcut() local
106 final boolean enabled = sa.getBoolean(R.styleable.Shortcut_enabled, true); in parseShortcut()
108 final String id = sa.getString(R.styleable.Shortcut_shortcutId); in parseShortcut()
109 final int iconResId = sa.getResourceId(R.styleable.Shortcut_icon, 0); in parseShortcut()
110 final int titleResId = sa.getResourceId(R.styleable.Shortcut_shortcutShortLabel, 0); in parseShortcut()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java256 final SyncAdapterType sa = syncAdapters[i]; in buildAccountTypeToAuthoritiesMap() local
257 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in buildAccountTypeToAuthoritiesMap()
260 mAccountTypeToAuthorities.put(sa.accountType, authorities); in buildAccountTypeToAuthoritiesMap()
263 Log.v(TAG, "Added authority " + sa.authority + " to accountType " in buildAccountTypeToAuthoritiesMap()
264 + sa.accountType); in buildAccountTypeToAuthoritiesMap()
266 authorities.add(sa.authority); in buildAccountTypeToAuthoritiesMap()
/frameworks/native/cmds/ip-up-vpn/
Dip-up-vpn.c41 static int set_address(struct sockaddr *sa, const char *address) { in set_address() argument
42 sa->sa_family = AF_INET; in set_address()
44 return inet_pton(AF_INET, address, &((struct sockaddr_in *)sa)->sin_addr); in set_address()
/frameworks/base/core/java/android/nfc/cardemulation/
DApduServiceInfo.java159 TypedArray sa = res.obtainAttributes(attrs, in ApduServiceInfo() local
162 mDescription = sa.getString( in ApduServiceInfo()
164 mRequiresDeviceUnlock = sa.getBoolean( in ApduServiceInfo()
167 mBannerResourceId = sa.getResourceId( in ApduServiceInfo()
169 mSettingsActivityName = sa.getString( in ApduServiceInfo()
171 sa.recycle(); in ApduServiceInfo()
173 TypedArray sa = res.obtainAttributes(attrs, in ApduServiceInfo() local
176 mDescription = sa.getString( in ApduServiceInfo()
179 mBannerResourceId = sa.getResourceId( in ApduServiceInfo()
181 mSettingsActivityName = sa.getString( in ApduServiceInfo()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp149 struct sigaction sa; in SetSigChldHandler() local
150 memset(&sa, 0, sizeof(sa)); in SetSigChldHandler()
151 sa.sa_handler = SigChldHandler; in SetSigChldHandler()
153 int err = sigaction(SIGCHLD, &sa, NULL); in SetSigChldHandler()
161 struct sigaction sa; in UnsetSigChldHandler() local
162 memset(&sa, 0, sizeof(sa)); in UnsetSigChldHandler()
163 sa.sa_handler = SIG_DFL; in UnsetSigChldHandler()
165 int err = sigaction(SIGCHLD, &sa, NULL); in UnsetSigChldHandler()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerInfo.java97 TypedArray sa = res.obtainAttributes(attrs, in SpellCheckerInfo() local
99 label = sa.getResourceId(com.android.internal.R.styleable.SpellChecker_label, 0); in SpellCheckerInfo()
100 settingsActivityComponent = sa.getString( in SpellCheckerInfo()
102 sa.recycle(); in SpellCheckerInfo()
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java557 TypedArray sa = obtainStyledAttributes(null, in onCreate() local
562 final int layoutResId = sa.getResourceId( in onCreate()
566 mPreferenceHeaderItemResId = sa.getResourceId( in onCreate()
569 mPreferenceHeaderRemoveEmptyIcon = sa.getBoolean( in onCreate()
573 sa.recycle(); in onCreate()
869 TypedArray sa = obtainStyledAttributes( in loadHeadersFromResource() local
871 header.id = sa.getResourceId( in loadHeadersFromResource()
874 TypedValue tv = sa.peekValue( in loadHeadersFromResource()
883 tv = sa.peekValue( in loadHeadersFromResource()
892 tv = sa.peekValue( in loadHeadersFromResource()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodInfo.java178 TypedArray sa = res.obtainAttributes(attrs, in InputMethodInfo() local
180 settingsActivityComponent = sa.getString( in InputMethodInfo()
182 isDefaultResId = sa.getResourceId( in InputMethodInfo()
184 supportsSwitchingToNextInputMethod = sa.getBoolean( in InputMethodInfo()
187 sa.recycle(); in InputMethodInfo()
/frameworks/native/cmds/atrace/
Datrace.cpp999 struct sigaction sa; in registerSigHandler() local
1000 sigemptyset(&sa.sa_mask); in registerSigHandler()
1001 sa.sa_flags = 0; in registerSigHandler()
1002 sa.sa_handler = handleSignal; in registerSigHandler()
1003 sigaction(SIGHUP, &sa, NULL); in registerSigHandler()
1004 sigaction(SIGINT, &sa, NULL); in registerSigHandler()
1005 sigaction(SIGQUIT, &sa, NULL); in registerSigHandler()
1006 sigaction(SIGTERM, &sa, NULL); in registerSigHandler()
/frameworks/compile/slang/lit-tests/P_array_init/
Darray_init.rs25 short sa[4] = {1, 1, 2, 3};

12