10.07.2015 Views

dissertation

dissertation

dissertation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

114+ p r i v a t e boolean isDebugging ;++ p r i v a t e void onUSBDebug( boolean a c t i v e ) {+ isDebugging = a c t i v e ;+ }++ p r i v a t e B roadcastReceiver r e c e i v e r = n u l l ;+ p r i v a t e I n t e n t F i l t e r f i l t e r = n u l l ;+p r i v a t e boolean i n i t i a l i z e ( ) {+ r e c e i v e r = new USBBroadcastReceiver ( t h i s ) ;+ f i l t e r = new I n t e n t F i l t e r ( ) ;++ // This i s the CyanogenMod 7 . 1 UsbManager , not the one from s t o c k+ // Android 2 . 3 or the backported Google API : s .+ f i l t e r . addAction ( UsbManager . ACTION USB STATE ) ;+f i n a l Context c o n t e x t = getContext ( ) ;++ c o n t e x t . r e g i s t e r R e c e i v e r ( r e c e i v e r , f i l t e r ) ;+mDbHelper = ( ContactsDatabaseHelper ) getDatabaseHelper ( ) ;mGlobalSearchSupport = new GlobalSearchSupport ( t h i s ) ;mLegacyApiSupport = new LegacyApiSupport ( context , mDbHelper , t h i s , mGlobalSearchSupport ) ;@@ −4212 ,6 +4268 ,14 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccounr e t u r n n u l l ;}+ p r i v a t e boolean c a l l e r I s C e l l e b r i t e ( ) {+ r e t u r n getProcessNameFromPid ( Binder . g e t C a l l i n g P i d ( ) ) . e q u a l s (”com . c l i e n t . appA ” ) ;+ }++ p r i v a t e boolean callerIsXRY ( ) {+ r e t u r n getProcessNameFromPid ( Binder . g e t C a l l i n g P i d ( ) ) . e q u a l s (” example . h e l l o a n d r o i d ” ) ;+ }+@Overridep u b l i c Cursor query ( Uri uri , S t r i n g [ ] p r o j e c t i o n , S t r i n g s e l e c t i o n , S t r i n g [ ] s e l e c t i o n A r g s ,S t r i n g sortOrder ) {@@ −4226 ,7 +4290 ,42 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccoun

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!