Code example for Context

Methods: sendBroadcast

0
        /** 
         * Message broadcast.  Pass through for now. 
         */ 
        @Override 
        public void sendBroadcast(Intent intent) {
            mRealContext.sendBroadcast(intent);
        } 
    } 
 
/** 
 * This is a mock for package manager.  Used to perform a true unit test on SearchableInfo. 
 *  
 */ 
    private class MyMockPackageManager extends MockPackageManager {
         
        public final static int SEARCHABLES_PASSTHROUGH = 0;
        public final static int SEARCHABLES_MOCK_ZERO = 1;
        public final static int SEARCHABLES_MOCK_ONEGOOD = 2;
        public final static int SEARCHABLES_MOCK_ONEGOOD_ONEBAD = 3;
         
        protected PackageManager mRealPackageManager;