Formula I (Ia and Ib) compounds wherein (i) X1 is N and X2 is S, (ii) X1 is CR7 and X2 is S, (iii) X1 is N and X2 is NR2, or (iv) X1 is CR7 and X2 is O, including stereoisomers, tautomers, metabolites and pharmaceutically acceptable salts thereof, are useful for inhibiting the delta isoform of PI3K, and for treating disorders mediated by lipid kinases such as inflammation, immunological, and cancer. Methods of using compounds of Formula I for in vitro, in situ, and in vivo diagnosis, prevention or treatment of such disorders in mammalian cells, or associated pathological conditions, are disclosed.