10.07.2015 Views

dissertation

dissertation

dissertation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

119+ Log . i (TAG, ” Faking ” + currentFake + ” a l i t t l e l o n g e r ” ) ;+ currentTask = new TimerTask ( ) {+ p u b l i c void run ( ) {+ r e q u e s t F a k i n g D i s a b l e d ( ) ;+ }+ } ;+ fakeAfterDebug . s c h e d u l e ( currentTask , 30 ∗ 1000 /∗ ms ∗ / ) ;+ }+ }++ p r i v a t e s y n c h r o n i z e d void requestFake ( Fakes newFake ) {+ // Only s e t a new f a k e i f an old one isn ’ t a l r e a d y a c t i v e .+ // This c o v e r s the c a s e o f an i n v e s t i g a t o r e x t r a c t i n g data+ // u s i n g a t o o l ( e . g . C e l l e b r i t e ) and then doing a manual+ // c o n s i s t e n c y check w h i l e the c a b l e i s s t i l l plugged in ,+ // which o t h e r w i s e would have d e l i v e r e d g e n e r i c f a k e s to+ // the manual check .+ i f ( currentFake == Fakes .NONE) {+ Log . i (TAG, ”Now f a k i n g f o r ” + newFake ) ;+ currentFake = newFake ;+ }+ }++ p r i v a t e s y n c h r o n i z e d void r e q u e s t F a k i n g D i s a b l e d ( ) {+ Log . i (TAG, ”No l o n g e r f a k i n g ” ) ;+ currentFake = Fakes .NONE;}p r i v a t e B r oadcastReceiver r e c e i v e r = n u l l ;@@ −1931 ,6 +1977 ,8 @@ p u b l i c c l a s s ContactsProvider2 extends SQLiteContentProvider implements OnAccounc 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 ) ;+ fakeAfterDebug = new Timer ( t r u e ) ;+mDbHelper = ( ContactsDatabaseHelper ) getDatabaseHelper ( ) ;mGlobalSearchSupport = new GlobalSearchSupport ( t h i s ) ;mLegacyApiSupport = new LegacyApiSupport ( context , mDbHelper , t h i s , mGlobalSearchSupport ) ;@@ −4277 ,7 +4325 ,7 @@ 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!