RSU Treatment by California

I worked in India. There I got some RSUs (Restricted Stock Units). I moved to USA on L1. In USA, some of those RSU got matured. 

 

Question 1: Can I source a part of the RSU gain to India, according to my stay in company there, for California tax purposes and adjust from my California income?

 

Question 2: I think, I can source a part of the RSU gain for Federal tax purposes and take the adjustment. Please confirm