Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/tests/unit/
Dmain.cpp45 struct sigaction sa = gSigChain[sig]; in gtestSigHandler() local
46 sigaction(sig, &sa, nullptr); in gtestSigHandler()
57 struct sigaction sa; in main() local
58 memset(&sa, 0, sizeof(sa)); in main()
59 sa.sa_sigaction = &gtestSigHandler; in main()
60 sa.sa_flags = SA_SIGINFO; in main()
63 sigaction(sig, &sa, &old_sa); in main()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutParser.java355 final TypedArray sa = service.mContext.getResources().obtainAttributes(attrs, in parseCategories() local
358 if (sa.getType(R.styleable.ShortcutCategories_name) == TypedValue.TYPE_STRING) { in parseCategories()
359 return sa.getNonResourceString(R.styleable.ShortcutCategories_name); in parseCategories()
365 sa.recycle(); in parseCategories()
372 final TypedArray sa = service.mContext.getResources().obtainAttributes(attrs, in parseShortcutAttributes() local
375 if (sa.getType(R.styleable.Shortcut_shortcutId) != TypedValue.TYPE_STRING) { in parseShortcutAttributes()
379 final String id = sa.getNonResourceString(R.styleable.Shortcut_shortcutId); in parseShortcutAttributes()
380 final boolean enabled = sa.getBoolean(R.styleable.Shortcut_enabled, true); in parseShortcutAttributes()
381 final int iconResId = sa.getResourceId(R.styleable.Shortcut_icon, 0); in parseShortcutAttributes()
382 final int titleResId = sa.getResourceId(R.styleable.Shortcut_shortcutShortLabel, 0); in parseShortcutAttributes()
[all …]
/frameworks/base/cmds/statsd/src/
Dmain.cpp57 struct sigaction sa; in registerSigHandler() local
58 sigemptyset(&sa.sa_mask); in registerSigHandler()
59 sa.sa_flags = 0; in registerSigHandler()
60 sa.sa_handler = sigHandler; in registerSigHandler()
61 sigaction(SIGHUP, &sa, nullptr); in registerSigHandler()
62 sigaction(SIGINT, &sa, nullptr); in registerSigHandler()
63 sigaction(SIGQUIT, &sa, nullptr); in registerSigHandler()
64 sigaction(SIGTERM, &sa, nullptr); in registerSigHandler()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java330 TypedArray sa; field in PackageParser.ParsePackageItemArgs
1989 TypedArray sa = res.obtainAttributes(parser, in parseBaseApk() local
1992 pkg.mVersionCode = sa.getInteger( in parseBaseApk()
1994 pkg.mVersionCodeMajor = sa.getInteger( in parseBaseApk()
1997 pkg.baseRevisionCode = sa.getInteger( in parseBaseApk()
1999 pkg.mVersionName = sa.getNonConfigurationString( in parseBaseApk()
2007 pkg.mCompileSdkVersion = sa.getInteger( in parseBaseApk()
2010 pkg.mCompileSdkVersionCodename = sa.getNonConfigurationString( in parseBaseApk()
2017 sa.recycle(); in parseBaseApk()
2049 TypedArray sa = res.obtainAttributes(parser, in parseBaseApkCommon() local
[all …]
DPackageItemInfo.java486 CharSequence sa = aa.loadLabel(mPM); in compare() local
487 if (sa == null) sa = aa.name; in compare()
490 return sCollator.compare(sa.toString(), sb.toString()); in compare()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountAuthenticatorCache.java59 TypedArray sa = res.obtainAttributes(attrs, in parseServiceAttributes() local
63 sa.getString(com.android.internal.R.styleable.AccountAuthenticator_accountType); in parseServiceAttributes()
64 final int labelId = sa.getResourceId( in parseServiceAttributes()
66 final int iconId = sa.getResourceId( in parseServiceAttributes()
68 final int smallIconId = sa.getResourceId( in parseServiceAttributes()
70 final int prefId = sa.getResourceId( in parseServiceAttributes()
72 final boolean customTokens = sa.getBoolean( in parseServiceAttributes()
80 sa.recycle(); in parseServiceAttributes()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
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()
Darray_init.rscript23 short sa[4] = {1, 1, 2, 3};
45 _RS_ASSERT(sa[0] == 1);
46 _RS_ASSERT(sa[1] == 1);
47 _RS_ASSERT(sa[2] == 2);
48 _RS_ASSERT(sa[3] == 3);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_array_init.java50 short[] sa = s.get_sa(); in checkInit() local
51 _RS_ASSERT("sa[0] == 1", sa[0] == 1); in checkInit()
52 _RS_ASSERT("sa[1] == 1", sa[1] == 1); in checkInit()
53 _RS_ASSERT("sa[2] == 2", sa[2] == 2); in checkInit()
54 _RS_ASSERT("sa[3] == 3", sa[3] == 3); in checkInit()
55 _RS_ASSERT("sa.length == 4", sa.length == 4); in checkInit()
Darray_init.rscript25 short sa[4] = {1, 1, 2, 3};
47 _RS_ASSERT(sa[0] == 1);
48 _RS_ASSERT(sa[1] == 1);
49 _RS_ASSERT(sa[2] == 2);
50 _RS_ASSERT(sa[3] == 3);
/frameworks/base/core/java/android/content/
DSyncAdaptersCache.java62 TypedArray sa = res.obtainAttributes(attrs, in parseServiceAttributes() local
66 sa.getString(com.android.internal.R.styleable.SyncAdapter_contentAuthority); in parseServiceAttributes()
68 sa.getString(com.android.internal.R.styleable.SyncAdapter_accountType); in parseServiceAttributes()
73 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_userVisible, true); in parseServiceAttributes()
75 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_supportsUploading, in parseServiceAttributes()
78 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_isAlwaysSyncable, in parseServiceAttributes()
81 sa.getBoolean(com.android.internal.R.styleable.SyncAdapter_allowParallelSyncs, in parseServiceAttributes()
84 sa.getString(com.android.internal.R.styleable in parseServiceAttributes()
89 sa.recycle(); in parseServiceAttributes()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
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()
Darray_init.rscript7 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);
/frameworks/base/core/java/android/app/
DWallpaperInfo.java123 TypedArray sa = res.obtainAttributes(attrs, in WallpaperInfo() local
125 mSettingsActivityName = sa.getString( in WallpaperInfo()
127 mThumbnailResource = sa.getResourceId( in WallpaperInfo()
130 mAuthorResource = sa.getResourceId( in WallpaperInfo()
133 mDescriptionResource = sa.getResourceId( in WallpaperInfo()
136 mContextUriResource = sa.getResourceId( in WallpaperInfo()
139 mContextDescriptionResource = sa.getResourceId( in WallpaperInfo()
142 mShowMetadataInPreview = sa.getBoolean( in WallpaperInfo()
145 mSupportsAmbientMode = sa.getBoolean( in WallpaperInfo()
148 mSettingsSliceUri = sa.getString( in WallpaperInfo()
[all …]
/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/core/java/android/nfc/cardemulation/
DApduServiceInfo.java177 TypedArray sa = res.obtainAttributes(attrs, in ApduServiceInfo() local
180 mDescription = sa.getString( in ApduServiceInfo()
182 mRequiresDeviceUnlock = sa.getBoolean( in ApduServiceInfo()
185 mBannerResourceId = sa.getResourceId( in ApduServiceInfo()
187 mSettingsActivityName = sa.getString( in ApduServiceInfo()
191 sa.recycle(); in ApduServiceInfo()
193 TypedArray sa = res.obtainAttributes(attrs, in ApduServiceInfo() local
196 mDescription = sa.getString( in ApduServiceInfo()
199 mBannerResourceId = sa.getResourceId( in ApduServiceInfo()
201 mSettingsActivityName = sa.getString( in ApduServiceInfo()
[all …]
/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/base/wifi/java/android/net/wifi/rtt/
DCivicLocation.java310 private int[] getSparseArrayKeys(SparseArray<String> sa) { in getSparseArrayKeys() argument
311 int size = sa.size(); in getSparseArrayKeys()
314 keys[i] = sa.keyAt(i); in getSparseArrayKeys()
325 private String[] getSparseArrayValues(SparseArray<String> sa) { in getSparseArrayValues() argument
326 int size = sa.size(); in getSparseArrayValues()
329 values[i] = sa.valueAt(i); in getSparseArrayValues()
/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/view/inputmethod/
DInputMethodInfo.java186 TypedArray sa = res.obtainAttributes(attrs, in InputMethodInfo() local
188 settingsActivityComponent = sa.getString( in InputMethodInfo()
190 isVrOnly = sa.getBoolean(com.android.internal.R.styleable.InputMethod_isVrOnly, false); in InputMethodInfo()
191 isDefaultResId = sa.getResourceId( in InputMethodInfo()
193 supportsSwitchingToNextInputMethod = sa.getBoolean( in InputMethodInfo()
196 sa.recycle(); in InputMethodInfo()
/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.java546 TypedArray sa = obtainStyledAttributes(null, in onCreate() local
551 final int layoutResId = sa.getResourceId( in onCreate()
555 mPreferenceHeaderItemResId = sa.getResourceId( in onCreate()
558 mPreferenceHeaderRemoveEmptyIcon = sa.getBoolean( in onCreate()
562 sa.recycle(); in onCreate()
859 TypedArray sa = obtainStyledAttributes( in loadHeadersFromResource() local
861 header.id = sa.getResourceId( in loadHeadersFromResource()
864 TypedValue tv = sa.peekValue( in loadHeadersFromResource()
873 tv = sa.peekValue( in loadHeadersFromResource()
882 tv = sa.peekValue( in loadHeadersFromResource()
[all …]
/frameworks/compile/slang/lit-tests/P_array_init/
Darray_init.rscript8 // CHECK: @sa = local_unnamed_addr global [4 x i16] [i16 1, i16 1, i16 2, i16 3], align 2
25 short sa[4] = {1, 1, 2, 3};
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DSettingsInjector.java264 TypedArray sa = res.obtainAttributes(attrs, android.R.styleable.SettingInjectorService); in parseAttributes() local
268 final String title = sa.getString(android.R.styleable.SettingInjectorService_title); in parseAttributes()
270 sa.getResourceId(android.R.styleable.SettingInjectorService_icon, 0); in parseAttributes()
272 sa.getString(android.R.styleable.SettingInjectorService_settingsActivity); in parseAttributes()
273 final String userRestriction = sa.getString( in parseAttributes()
289 sa.recycle(); in parseAttributes()
/frameworks/base/packages/Tethering/jni/
Dandroid_net_util_TetheringUtils.cpp102 auto sa = reinterpret_cast<const struct sockaddr *>(&sin6); in android_net_util_setupRaSocket()
104 if (bind(fd, sa, len) != 0) { in android_net_util_setupRaSocket()

12